#include <schema_impl.hpp>
Define a serialization schema based on compile-time information about a type being serialized. This is then consumed by typescript to make bindings.
Definition at line 18 of file schema_impl.hpp.
◆ MsgpackSchemaPacker()
MsgpackSchemaPacker::MsgpackSchemaPacker |
( |
msgpack::sbuffer & |
stream | ) |
|
|
inline |
◆ pack_alias()
void MsgpackSchemaPacker::pack_alias |
( |
const std::string & |
schema_name, |
|
|
const std::string & |
msgpack_name |
|
) |
| |
|
inline |
Pack a type indicating it is an alias of a certain msgpack type Packs in the form ["alias", [schema_name, msgpack_name]]
- Parameters
-
schema_name | The CPP type. |
msgpack_name | The msgpack type. |
Definition at line 40 of file schema_impl.hpp.
◆ pack_schema()
template<typename T >
void MsgpackSchemaPacker::pack_schema |
( |
const T & |
obj | ) |
|
|
inline |
Pack the schema of a given object.
- Template Parameters
-
- Parameters
-
Definition at line 56 of file schema_impl.hpp.
◆ pack_template_type()
template<typename... Args>
void MsgpackSchemaPacker::pack_template_type |
( |
const std::string & |
schema_name | ) |
|
|
inline |
◆ pack_with_name()
void MsgpackSchemaPacker::pack_with_name |
( |
const std::string & |
type, |
|
|
T const & |
object |
|
) |
| |
|
inline |
Encode a type that defines msgpack based on its key value pairs.
- Template Parameters
-
- Parameters
-
packer | Our special packer. |
object | The object in question. |
Definition at line 78 of file schema_impl.hpp.
◆ set_emitted()
bool MsgpackSchemaPacker::set_emitted |
( |
const std::string & |
type | ) |
|
|
inline |
◆ emitted_types
std::set<std::string> MsgpackSchemaPacker::emitted_types |
The documentation for this struct was generated from the following file: