nlib
|
MessagePackのシリアライザが記述されています。 [詳解]
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "nn/nlib/msgpack/MpObject.h"
#include "nn/nlib/OutputStream.h"
#include "nn/nlib/BinaryWriter.h"
#include "nn/nlib/Cstring.h"
#include "nn/nlib/Nlist.h"
クラス | |
class | nn::nlib::msgpack::MpWriter |
MessagePack形式のデータをストリームに書き込みます。 [詳解] | |
名前空間 | |
nn::nlib | |
共通して使われる機能やプラットフォームへの依存度が高い機能が実装されます。 nlib Platform APIs も御覧ください。nlib_ns はエイリアスです。 | |
nn::nlib::msgpack | |
MessagePackのシリアライザ及びJSONパーサー/ライター, CSVパーサーが実装されています。 | |
関数 | |
template<class T1 , class T2 > | |
uint32_t uint64_t nlib_ulong_compatible_t bool | nn::nlib::msgpack::MpWrite (MpWriter *w, const std::pair< T1, T2 > &v) |
v の内容をMpWriter 経由で書き込みます。 | |
bool | nn::nlib::msgpack::MpWrite (MpWriter *w, const char *str) |
str をMpWriter 経由で書き込みます。 | |
template<class T , class Alloc > | |
bool | nn::nlib::msgpack::MpWrite (MpWriter *w, const std::vector< T, Alloc > &vec) |
vec をMpWriter 経由で書き込みます。 | |
template<class T , class Alloc > | |
bool | nn::nlib::msgpack::MpWrite (MpWriter *w, const Nlist< T, Alloc > &vec) |
vec をMpWriter 経由で書き込みます。 | |
template<class K , class V , class Pr , class Alloc > | |
bool | nn::nlib::msgpack::MpWrite (MpWriter *w, const std::map< K, V, Pr, Alloc > &m) |
m をMpWriter 経由で書き込みます。 | |
MpWrite | |
| |
template<class T > | |
bool | nn::nlib::msgpack::MpWrite (MpWriter *obj, const T &v) |
この関数テンプレートを特殊化してユーザー型のMessagePackへのシリアライズを定義することが可能です。 [詳解] | |
MessagePackのシリアライザが記述されています。
MpWriter.h に定義があります。
© 2013, 2014, 2015 Nintendo Co., Ltd. All rights reserved.