Component.h File Reference
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Components.h"
#include "simulation2/system/ComponentManager.h"
#include "simulation2/system/IComponent.h"
#include "simulation2/system/ParamNode.h"
#include "simulation2/system/SimContext.h"
#include "simulation2/serialization/ISerializer.h"
#include "simulation2/serialization/IDeserializer.h"
Go to the source code of this file.
Define Documentation
| #define DEFAULT_COMPONENT_ALLOCATOR |
( |
cname |
|
) |
|
| #define DEFAULT_MOCK_COMPONENT |
( |
|
) |
|
| #define DEFAULT_SCRIPT_WRAPPER |
( |
cname |
|
) |
|
| #define REGISTER_COMPONENT_SCRIPT_WRAPPER |
( |
cname |
|
) |
|
Value:void RegisterComponentType_##cname(CComponentManager& mgr) \
{ \
mgr.RegisterComponentTypeScriptWrapper(CCmp##cname::GetInterfaceId(), CID_##cname, CCmp##cname::Allocate, CCmp##cname::Deallocate, #cname, CCmp##cname::GetSchema()); \
CCmp##cname::ClassInit(mgr); \
}
| #define REGISTER_COMPONENT_TYPE |
( |
cname |
|
) |
|
Value:void RegisterComponentType_##cname(CComponentManager& mgr) \
{ \
mgr.RegisterComponentType(CCmp##cname::GetInterfaceId(), CID_##cname, CCmp##cname::Allocate, CCmp##cname::Deallocate, #cname, CCmp##cname::GetSchema()); \
CCmp##cname::ClassInit(mgr); \
}