#include <interpret_object.h>
This structer is used for define a component characteristic.
Nevrax France
Definition at line 44 of file interpret_object.h.
Public Member Functions | |
CComponent () | |
virtual void | load (NLMISC::IStream &) |
virtual void | save (NLMISC::IStream &) |
Data Fields | |
bool | Local |
NLAIAGENT::IVarName * | ObjectName |
Name of the Component. | |
NLAIAGENT::IVarName * | RegisterName |
Component type name. | |
bool | Static |
NLAIAGENT::IObjectIA * | StaticValue |
Static value if the component is a static one. |
|
Definition at line 61 of file interpret_object.h. References Local, ObjectName, RegisterName, Static, and StaticValue.
00062 { 00063 RegisterName = NULL; // name of the type of component in the registry 00064 ObjectName = NULL; // name of the member component in the class 00065 Local = false; // true if the object is not accessible from a remote machine 00066 Static = false; // true if the component is static (defined and stored in the class) 00067 StaticValue = NULL; // static value of the component, NULL if non static 00068 } |
|
Load component characteristic. Definition at line 38 of file interpret_object.cpp. References NLAIC::IPointerGestion::incRef(), NLAIC::IBasicInterface::load(), ObjectName, RegisterName, and NLMISC::IStream::serial(). Referenced by NLAISCRIPT::CAgentClass::load().
00039 { 00040 NLAIC::CIdentTypeAlloc id; 00041 is.serial( id ); 00042 RegisterName = (NLAIAGENT::IVarName *) id.allocClass(); 00043 RegisterName->load( is ); 00044 RegisterName->incRef(); 00045 00046 is.serial( id ); 00047 ObjectName = (NLAIAGENT::IVarName *) id.allocClass(); 00048 ObjectName->load( is ); 00049 ObjectName->incRef(); 00050 } |
|
Save component characteristic. Definition at line 30 of file interpret_object.cpp. References NLAIC::IBasicType::getType(), ObjectName, RegisterName, NLAIC::IBasicInterface::save(), and NLMISC::IStream::serial().
00031 { 00032 os.serial( (NLAIC::CIdentType &) RegisterName->getType() ); 00033 RegisterName->save( os ); 00034 os.serial( (NLAIC::CIdentType &) ObjectName->getType() ); 00035 ObjectName->save( os ); 00036 } |
|
Local define the distribution type. If it true then the component is all time local. If it false the component can be just distributed in the server. And we can't manipulate directly but by message. Definition at line 59 of file interpret_object.h. Referenced by CComponent(). |
|
Name of the Component.
Definition at line 49 of file interpret_object.h. Referenced by CComponent(), NLAISCRIPT::CAgentClass::createComponents(), NLAISCRIPT::CAgentClass::getComponentName(), NLAISCRIPT::CAgentClass::getStaticMemberIndex(), load(), NLAISCRIPT::CAgentClass::registerComponent(), save(), NLAISCRIPT::CAgentClass::setStaticMember(), NLAISCRIPT::CAgentClass::updateStaticMember(), and NLAISCRIPT::CAgentClass::~CAgentClass(). |
|
Component type name.
Definition at line 47 of file interpret_object.h. Referenced by CComponent(), NLAISCRIPT::CAgentClass::createComponents(), NLAISCRIPT::CAgentClass::getStaticMember(), load(), NLAISCRIPT::CAgentClass::registerComponent(), save(), NLAISCRIPT::CAgentClass::setStaticMember(), NLAISCRIPT::CAgentClass::updateStaticMember(), and NLAISCRIPT::CAgentClass::~CAgentClass(). |
|
Definition at line 60 of file interpret_object.h. Referenced by CComponent(), and NLAISCRIPT::CAgentClass::createComponents(). |
|
Static value if the component is a static one.
Definition at line 51 of file interpret_object.h. Referenced by CComponent(), NLAISCRIPT::CAgentClass::createComponents(), NLAISCRIPT::CAgentClass::getStaticComponentValue(), NLAISCRIPT::CAgentClass::setStaticMember(), and NLAISCRIPT::CAgentClass::updateStaticMember(). |