HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TypeSystem Class Reference

#include <TypeDesc.h>

Public Member Functions

void registerType (TypeDesc type)
 Register an existing type decription. More...
 
void registerType (const string &name, uint8_t basetype, uint8_t semantic, uint16_t size, StructMemberDescVecPtr members=nullptr)
 Create and register a new type description. More...
 
TypeDesc getType (const string &name) const
 
const TypeDescVecgetTypes () const
 Return all registered type descriptions. More...
 

Static Public Member Functions

static TypeSystemPtr create ()
 Create a new type system. More...
 

Protected Member Functions

 TypeSystem ()
 

Detailed Description

Class handling registration, storage and query of type descriptions.

Definition at line 223 of file TypeDesc.h.

Constructor & Destructor Documentation

TypeSystem::TypeSystem ( )
protected

Member Function Documentation

static TypeSystemPtr TypeSystem::create ( )
static

Create a new type system.

TypeDesc TypeSystem::getType ( const string name) const

Return a type description by name. If no type is found Type::NONE is returned.

const TypeDescVec& TypeSystem::getTypes ( ) const
inline

Return all registered type descriptions.

Definition at line 240 of file TypeDesc.h.

void TypeSystem::registerType ( TypeDesc  type)

Register an existing type decription.

void TypeSystem::registerType ( const string name,
uint8_t  basetype,
uint8_t  semantic,
uint16_t  size,
StructMemberDescVecPtr  members = nullptr 
)

Create and register a new type description.


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