MIRA
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
CompoundMeta Class Reference

Meta information for complex compounds, like classes and structs. More...

#include <serialization/MetaSerializer.h>

Classes

struct  Member
 A single member of the compound. More...
 

Public Types

typedef serialization::VersionType VersionType
 

Public Member Functions

template<typename Reflector >
void reflect (Reflector &r)
 
template<typename BinaryStream >
void reflect (ConcreteBinarySerializer< BinaryStream, 0 > &r)
 
void addMember (const ReflectMemberMeta &memberMeta, TypeMetaPtr type)
 
void addMember (const std::string &name, TypeMetaPtr type)
 
void addMember (const std::string &name, const std::string &comment, TypeMetaPtr type)
 
void insertMember (const std::string &name, TypeMetaPtr type, int index)
 
void insertMember (const std::string &name, TypeMetaPtr type, const std::string &before)
 
void addInterface (const std::string &iface)
 
void addMethod (const MethodMetaPtr &method)
 
void setVersion (VersionType version)
 
void setVersion (const std::string &type, VersionType version)
 
std::string toString () const
 

Public Attributes

std::map< std::string, VersionTypeversion
 The version(s) of the described type's serialization format. More...
 
std::list< Membermembers
 The members of the compound. More...
 
std::list< std::string > interfaces
 The reflected interfaces. More...
 
std::list< MethodMetaPtrmethods
 The reflected methods (RPC methods) More...
 

Detailed Description

Meta information for complex compounds, like classes and structs.

Contains information on version, members, RPC interfaces and RPC methods.

Member Typedef Documentation

◆ VersionType

Member Function Documentation

◆ reflect() [1/2]

void reflect ( Reflector &  r)
inline

◆ reflect() [2/2]

void reflect ( ConcreteBinarySerializer< BinaryStream, 0 > &  r)
inline

◆ addMember() [1/3]

void addMember ( const ReflectMemberMeta memberMeta,
TypeMetaPtr  type 
)
inline

◆ addMember() [2/3]

void addMember ( const std::string &  name,
TypeMetaPtr  type 
)
inline

◆ addMember() [3/3]

void addMember ( const std::string &  name,
const std::string &  comment,
TypeMetaPtr  type 
)
inline

◆ insertMember() [1/2]

void insertMember ( const std::string &  name,
TypeMetaPtr  type,
int  index 
)
inline

◆ insertMember() [2/2]

void insertMember ( const std::string &  name,
TypeMetaPtr  type,
const std::string &  before 
)
inline

◆ addInterface()

void addInterface ( const std::string &  iface)
inline

◆ addMethod()

void addMethod ( const MethodMetaPtr method)
inline

◆ setVersion() [1/2]

void setVersion ( VersionType  version)
inline

◆ setVersion() [2/2]

void setVersion ( const std::string &  type,
VersionType  version 
)
inline

◆ toString()

std::string toString ( ) const

Member Data Documentation

◆ version

std::map<std::string, VersionType> version

The version(s) of the described type's serialization format.

◆ members

std::list<Member> members

The members of the compound.

◆ interfaces

std::list<std::string> interfaces

The reflected interfaces.

◆ methods

std::list<MethodMetaPtr> methods

The reflected methods (RPC methods)


The documentation for this class was generated from the following file: