NLAISCRIPT::CComponent Struct Reference

#include <interpret_object.h>


Detailed Description

Struct CComponent.

This structer is used for define a component characteristic.

Author:
Chafik sameh

Nevrax France

Date:
2000

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::IVarNameObjectName
 Name of the Component.

NLAIAGENT::IVarNameRegisterName
 Component type name.

bool Static
NLAIAGENT::IObjectIAStaticValue
 Static value if the component is a static one.


Constructor & Destructor Documentation

NLAISCRIPT::CComponent::CComponent  )  [inline]
 

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                 }


Member Function Documentation

void NLAISCRIPT::CComponent::load NLMISC::IStream  )  [virtual]
 

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         }

void NLAISCRIPT::CComponent::save NLMISC::IStream  )  [virtual]
 

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         }


Field Documentation

bool NLAISCRIPT::CComponent::Local
 

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().

NLAIAGENT::IVarName* NLAISCRIPT::CComponent::ObjectName
 

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().

NLAIAGENT::IVarName* NLAISCRIPT::CComponent::RegisterName
 

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().

bool NLAISCRIPT::CComponent::Static
 

Definition at line 60 of file interpret_object.h.

Referenced by CComponent(), and NLAISCRIPT::CAgentClass::createComponents().

NLAIAGENT::IObjectIA* NLAISCRIPT::CComponent::StaticValue
 

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().


The documentation for this struct was generated from the following files:
Generated on Tue Mar 16 11:26:52 2004 for NeL by doxygen 1.3.6