NLAIAGENT::CStringVarName Class Reference

#include <agent_string.h>

Inheritance diagram for NLAIAGENT::CStringVarName:

NLAIAGENT::IVarName NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable

Detailed Description

Basic concret class for string manipulation with NLAIC::IBasicInterface format.

Author:
Chafik sameh

Nevrax France

Date:
2000

Definition at line 132 of file agent_string.h.

Public Member Functions

const char * addString (const IVarName &s) const
 Adding two string.

const NLAIC::IBasicTypeclone () const
 CStringVarName (NLMISC::IStream &is)
 CStringVarName (const CStringVarName &s)
 CStringVarName (const char *name)
sint32 decRef ()
 Decrement the reference of an object.

void getDebugString (std::string &text) const
virtual const std::string getInfo ()
const sint32getRef () const
 get the refence count.

virtual const char * getString () const
 Get the string stored in the instance.

const NLAIC::CIdentTypegetType () const
void incRef ()
 Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list.

void load (NLMISC::IStream &is)
const NLAIC::IBasicTypenewInstance () const
IVarNameoperator+= (const IVarName &s)
IVarNameoperator-= (const IVarName &s)
CStringVarNameoperator= (const CStringVarName &v)
IVarNameoperator= (const IVarName &v)
virtual void release ()
 Release allow to release the pointer. The last release when the _Ref is nul delete the object.

void save (NLMISC::IStream &os)
virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
const char * subString (const IVarName &s) const
 Extract an string from an ather.

virtual ~CStringVarName ()
Compare methode.
bool operator< (const IVarName &v) const
bool operator== (const IVarName &v) const
bool operator> (const IVarName &v) const
Compare methode.
bool operator< (const IVarName &v) const
bool operator== (const IVarName &v) const
bool operator> (const IVarName &v) const
Compare methode.
bool operator< (const IVarName &v) const
bool operator== (const IVarName &v) const
bool operator> (const IVarName &v) const

Static Public Attributes

const NLAIC::CIdentType IdStringVarName

Private Attributes

char * _Name


Constructor & Destructor Documentation

NLAIAGENT::CStringVarName::CStringVarName const char *  name  )  [inline]
 

Definition at line 139 of file agent_string.h.

References sint32.

Referenced by clone().

00140                 {
00141                         sint32 i = strlen(name) + 1;
00142                         _Name =  new char [i];
00143                         if(i == 1)
00144                         {
00145                                 _Name[0] = 0;
00146                         }                       
00147                         else memcpy(_Name,name,i);
00148                 }

NLAIAGENT::CStringVarName::CStringVarName const CStringVarName s  )  [inline]
 

Definition at line 150 of file agent_string.h.

References s, and sint32.

00151                 {
00152                         sint32 i = strlen(s._Name) + 1;
00153                         _Name =  new char [i];
00154                         if(i == 1)
00155                         {
00156                                 _Name[0] = 0;
00157                         }                       
00158                         else memcpy(_Name,s._Name,i);
00159                 }

NLAIAGENT::CStringVarName::CStringVarName NLMISC::IStream is  )  [inline]
 

Definition at line 161 of file agent_string.h.

References load().

00161                                                  :_Name(NULL)
00162                 {
00163                         load(is);
00164                 }

virtual NLAIAGENT::CStringVarName::~CStringVarName  )  [inline, virtual]
 

Definition at line 167 of file agent_string.h.

00168                 {
00169                         delete []_Name;
00170                 }       


Member Function Documentation

const char* NLAIAGENT::IVarName::addString const IVarName s  )  const [inline, inherited]
 

Adding two string.

Definition at line 80 of file agent_string.h.

References NLAIAGENT::IVarName::getString(), and s.

Referenced by operator+=(), and NLAIAGENT::CIndexedVarName::operator+=().

00081                 {
00082                         char *nameTmp,*str = (char *)s.getString();             
00083                         nameTmp = (char *)getString();  
00084                         char *name = new char [strlen(str) + strlen(nameTmp) + 2];
00085                         sprintf(name,"%s%s",nameTmp,str);                       
00086                         return name;
00087                 }

const NLAIC::IBasicType* NLAIAGENT::CStringVarName::clone  )  const [inline, virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Implements NLAIC::IBasicType.

Definition at line 236 of file agent_string.h.

References CStringVarName().

Referenced by NLAIAGENT::CIndexedVarName::insert(), newInstance(), NLAISCRIPT::CAgentClass::registerComponent(), and NLAISCRIPT::COperatorClass::setGoal().

00237                 {
00238                         NLAIC::IBasicInterface *m = new CStringVarName(_Name);
00239                         return m;
00240                 }

sint32 NLAIC::IPointerGestion::decRef  )  [inline, inherited]
 

Decrement the reference of an object.

Definition at line 93 of file abstract_interface.h.

References NLAIC::IPointerGestion::_Ref, and sint32.

Referenced by NLAIC::IPointerGestion::release(), and NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().

00094                 {
00095                         return --_Ref;
00096                 }

virtual std::string NLAIC::IPointerGestion::getClassName  )  [inline, virtual, inherited]
 

Implements NLMISC::IClassable.

Reimplemented in NLAIC::CIdentType.

Definition at line 116 of file abstract_interface.h.

Referenced by NLAISCRIPT::CAgentClass::isClassInheritedFrom().

00117                 {
00118                         return std::string("<unnamed>");
00119                 }

void NLAIAGENT::CStringVarName::getDebugString std::string &  text  )  const [inline, virtual]
 

This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user.

Implements NLAIC::IBasicType.

Definition at line 247 of file agent_string.h.

References NLAIC::stringGetBuild().

00248                 {
00249                         text = NLAIC::stringGetBuild("'%s'",_Name);                     
00250                 }

virtual const std::string NLAIC::IBasicType::getInfo  )  [inline, virtual, inherited]
 

Definition at line 292 of file abstract_interface.h.

References NLAIC::IBasicType::getDebugString(), and s.

00293                 {
00294                         std::string s;
00295                         getDebugString(s);
00296                         return s;
00297                 }

const sint32& NLAIC::IPointerGestion::getRef  )  const [inline, inherited]
 

get the refence count.

Definition at line 99 of file abstract_interface.h.

References NLAIC::IPointerGestion::_Ref, and sint32.

Referenced by NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().

00100                 {
00101                         return _Ref;
00102                 }

virtual const char* NLAIAGENT::CStringVarName::getString  )  const [inline, virtual]
 

Get the string stored in the instance.

Implements NLAIAGENT::IVarName.

Definition at line 172 of file agent_string.h.

Referenced by NLAISCRIPT::CCompilateur::getValidateHierarchyBase(), NLAISCRIPT::CCodeBrancheRunDebug::printVariable(), and NLAISCRIPT::CCompilateur::processingVar().

00173                 {
00174                         return _Name;
00175                 }               

const NLAIC::CIdentType & NLAIAGENT::CStringVarName::getType  )  const [virtual]
 

getType return a unique string how represente the class, it can be the name of the class. This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Implements NLAIC::IBasicType.

Definition at line 28 of file agent_string.cpp.

References IdStringVarName.

00029         {               
00030                 return IdStringVarName;
00031         }

void NLAIC::IPointerGestion::incRef  )  [inline, inherited]
 

Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list.

Definition at line 80 of file abstract_interface.h.

References NLAIC::IPointerGestion::_Ref.

Referenced by NLAIAGENT::CSeqFsmScript::activate(), NLAILOGIC::CFactBase::addAssert(), NLAIAGENT::IAgentComposite::addChild(), NLAILOGIC::IBaseAssert::addInput(), NLAILOGIC::CBoolOperator::addPostcondition(), NLAILOGIC::CBoolOperator::addPrecondition(), NLAILOGIC::CInternalGoal::addPredecessor(), NLAILOGIC::CGoal::addPredecessor(), NLAIFUZZY::CFuzzyVar::addSet(), NLAISCRIPT::CCompilateur::affectation(), NLAILOGIC::CFact::asValueSet(), NLAIAGENT::CAgentWatchTimer::attach(), NLAISCRIPT::CCompilateur::buildObject(), NLAISCRIPT::CAgentClass::buildVMethode(), NLAIAGENT::CAgentOperation::CAgentOperation(), NLAIAGENT::CAgentTimerHandle::CAgentTimerHandle(), NLAISCRIPT::CCompilateur::callFunction(), NLAISCRIPT::CClassInterpretFactory::CClassInterpretFactory(), NLAISCRIPT::CCodeBrancheRunDebug::CCodeBrancheRunDebug(), NLAISCRIPT::CCompilateur::CCompilateur(), NLAISCRIPT::CFactorType::CFactorType(), NLAISCRIPT::CFunctionTag::CFunctionTag(), NLAIAGENT::COperatorScript::checkTrigMsg(), NLAIC::CIdentType::CIdentType(), NLAIAGENT::CIdMethod::CIdMethod(), NLAIAGENT::CKeyObject::CKeyObject(), NLAISCRIPT::CFindRunMsg::clone(), NLAISCRIPT::CObjectUnknown::clone(), NLAISCRIPT::CConstraintStackComp::clone(), NLAISCRIPT::CConstraintFindRun::clone(), NLAISCRIPT::CConstraintMethode::clone(), NLAILINK::IOTrace::clone(), NLAISCRIPT::CMethodeName::CMethodeName(), NLAISCRIPT::CAgentClass::CMethodType::CMethodType(), NLAISCRIPT::CObjectUnknown::CObjectUnknown(), NLAIAGENT::CPairType::CPairType(), NLAISCRIPT::CAgentClass::createComponents(), NLAILOGIC::CValueSet::CValueSet(), NLAILOGIC::CVar::CVar(), NLAILOGIC::CValueSet::forward(), NLAIAGENT::IMessageBase::IMessageBase(), NLAIAGENT::CAgentScript::initAgentScript(), NLAISCRIPT::CCompilateur::initMessageManager(), NLAISCRIPT::COperatorClass::isValidFonc(), NLAILOGIC::CValueSet::load(), NLAILOGIC::IBaseOperator::load(), NLAISCRIPT::CAgentClass::load(), NLAISCRIPT::CComponent::load(), NLAISCRIPT::CMethodeName::load(), NLAIAGENT::CVectorGroupType::operator+(), NLAIAGENT::CGroupType::operator+(), NLAISCRIPT::CPramContainer::operator+=(), NLAIAGENT::IMessageBase::operator=(), NLAIAGENT::CKeyObject::operator=(), NLAISCRIPT::CAgentClass::CMethodType::operator=(), NLAISCRIPT::CFunctionTag::operator=(), NLAIAGENT::CIdMethod::operator=(), NLAISCRIPT::CCompilateur::processingVar(), NLAIAGENT::CAgentScript::processMessages(), NLAISCRIPT::CCompilateur::pushParamExpression(), NLAISCRIPT::CConstraintFindRun::run(), NLAIAGENT::IBasicAgent::run(), NLAIAGENT::CAgentScript::runAskGetValue(), NLAIAGENT::IAgent::runChildren(), NLAIAGENT::CMainAgentScript::runExec(), NLAIAGENT::CAgentScript::runInitComponent(), NLAIAGENT::CAgentOperation::runMethodBase(), NLAIAGENT::CAgentWatchTimer::runMethodBase(), NLAIAGENT::CAgentScript::runMethodBase(), NLAIAGENT::CActorScript::runMethodBase(), NLAIAGENT::IMessageBase::runMethodeMember(), NLAIAGENT::IBaseGroupType::runMethodeMember(), NLAIAGENT::IBasicAgent::runMethodeMember(), NLAISCRIPT::CLdbRefOpCode::runOpCode(), NLAISCRIPT::CLdbMemberiOpCode::runOpCode(), NLAISCRIPT::CLdbHeapMemberiOpCode::runOpCode(), NLAISCRIPT::CLdbStackMemberiOpCode::runOpCode(), NLAISCRIPT::CCallStackMethodi::runOpCode(), NLAISCRIPT::CCallStackNewMethodi::runOpCode(), NLAISCRIPT::CLibStackNewMemberMethod::runOpCode(), NLAISCRIPT::CLibStackMemberMethod::runOpCode(), NLAISCRIPT::CAffOpCode::runOpCode(), NLAISCRIPT::CAddParamNameDebug::runOpCode(), NLAISCRIPT::CAffOpCodeDebug::runOpCode(), NLAISCRIPT::CAffHeapMemberiOpCode::runOpCode(), NLAISCRIPT::CAffMemberOpCode::runOpCode(), NLAISCRIPT::CAffMemberiOpCode::runOpCode(), NLAIAGENT::CAgentScript::runTellComponent(), NLAIAGENT::CAgentScript::runTellSetValue(), NLAISCRIPT::CMethodContextDebug::saveContext(), NLAISCRIPT::CMethodContext::saveContext(), NLAIAGENT::CAgentScript::sendBroadCast(), NLAIAGENT::IListManager::sendMessage(), NLAIAGENT::CAgentScript::sendMethodCompoment(), NLAIAGENT::CVolatilMemmory::sendUpdateMessage(), NLAISCRIPT::CFactorType::set(), NLAILOGIC::IBaseOperator::setGoal(), NLAISCRIPT::CCompilateur::setImediateVarNill(), NLAISCRIPT::CCompilateur::setMethodVar(), NLAISCRIPT::CCompilateur::setParamVarName(), NLAISCRIPT::CFunctionTag::setTypeObject(), NLAILOGIC::CVar::setValue(), NLAILOGIC::CValueSet::setValue(), NLAIAGENT::CAgentWatchTimer::tellBroker(), NLAISCRIPT::CCompilateur::typeOfMethod(), NLAILOGIC::CVar::unify(), NLAILOGIC::CValueSet::unify(), and NLAIAGENT::CAgentOperation::update().

00081                 {
00082                         _Ref ++;
00083                 }

void NLAIAGENT::CStringVarName::load NLMISC::IStream is  )  [inline, virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 188 of file agent_string.h.

References NLMISC::IStream::serial(), and uint32.

Referenced by CStringVarName().

00189                 {
00190                         uint32 i;               
00191                         is.serial(i);
00192                         if(_Name != NULL) delete []_Name;
00193                         _Name =  new char [i];
00194                         std::string name;
00195                         is.serial( name );      
00196                         strcpy(_Name, name.c_str() );
00197                 }               

const NLAIC::IBasicType* NLAIAGENT::CStringVarName::newInstance  )  const [inline, virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Implements NLAIC::IBasicType.

Definition at line 242 of file agent_string.h.

References clone().

00243                 {                       
00244                         return clone();
00245                 }

IVarName& NLAIAGENT::CStringVarName::operator+= const IVarName s  )  [inline, virtual]
 

Implements NLAIAGENT::IVarName.

Definition at line 199 of file agent_string.h.

References NLAIAGENT::IVarName::addString(), and s.

00200                 {
00201                         char *nameTmp = (char *)addString(s);
00202                         delete _Name;
00203                         _Name = nameTmp;                        
00204                         return *this;
00205                 }               

IVarName& NLAIAGENT::CStringVarName::operator-= const IVarName s  )  [inline, virtual]
 

Implements NLAIAGENT::IVarName.

Definition at line 207 of file agent_string.h.

References s, and NLAIAGENT::IVarName::subString().

00208                 {                       
00209                         char *n = (char *)subString(s);
00210                         if(n)
00211                         {
00212                                 delete _Name;
00213                                 _Name = n;
00214                         }                               
00215                         return *this;
00216                 }

bool NLAIAGENT::IVarName::operator< const IVarName v  )  const [inline, inherited]
 

Definition at line 52 of file agent_string.h.

References NLAIAGENT::IVarName::getString(), and v.

00053                 {                       
00054                         const char *name1 = getString();
00055                         const char *name2 = v.getString();
00056                         if(name1[0] < name2[0]) return true;
00057                         else return strcmp(name1,name2) < 0;                    
00058                 }

CStringVarName& NLAIAGENT::CStringVarName::operator= const CStringVarName v  )  [inline]
 

Definition at line 227 of file agent_string.h.

References sint32, and v.

00228                 {
00229                         delete _Name;
00230                         sint32 i = strlen(v.getString()) + 1;
00231                         _Name =  new char [i];
00232                         memcpy(_Name,v.getString(),i);
00233                         return *this;
00234                 }

IVarName& NLAIAGENT::CStringVarName::operator= const IVarName v  )  [inline, virtual]
 

Implements NLAIAGENT::IVarName.

Definition at line 218 of file agent_string.h.

References sint32, and v.

00219                 {
00220                         delete _Name;
00221                         sint32 i = strlen(v.getString()) + 1;
00222                         _Name =  new char [i];
00223                         memcpy(_Name,v.getString(),i);
00224                         return *this;
00225                 }

bool NLAIAGENT::IVarName::operator== const IVarName v  )  const [inline, inherited]
 

Definition at line 69 of file agent_string.h.

References NLAIAGENT::IVarName::getString(), and v.

00070                 {
00071                         const char *name1 = getString();
00072                         const char *name2 = v.getString();
00073                         if(name1[0] == name2[0]) return strcmp(name1,name2) == 0;
00074                         
00075                         return false;
00076                 }

bool NLAIAGENT::IVarName::operator> const IVarName v  )  const [inline, inherited]
 

Definition at line 60 of file agent_string.h.

References NLAIAGENT::IVarName::getString(), and v.

00061                 {                       
00062                         const char *name1 = getString();
00063                         const char *name2 = v.getString();
00064                         if(name1[0] > name2[0]) return true;
00065                         else return strcmp(name1,name2) > 0;
00066                 }

virtual void NLAIC::IPointerGestion::release void   )  [inline, virtual, inherited]
 

Release allow to release the pointer. The last release when the _Ref is nul delete the object.

Definition at line 86 of file abstract_interface.h.

References NLAIC::IPointerGestion::decRef().

Referenced by NLAIAGENT::CSeqFsmScript::activate(), NLAISCRIPT::CAgentClass::addBrancheCode(), NLAISCRIPT::CConstraintDebug::addIndex(), NLAISCRIPT::CCompilateur::affectation(), NLAISCRIPT::CCompilateur::affectationMember(), NLAISCRIPT::COperatorClass::backward(), NLAILOGIC::CFirstOrderOperator::backward(), NLAILOGIC::CFirstOrderAssert::backward(), NLAISCRIPT::CCompilateur::buildObject(), NLAILINK::buildScript(), NLAISCRIPT::CCompilateur::callFunction(), NLAIC::CIdentType::CIdentType(), NLAISCRIPT::CCompilateur::clean(), NLAISCRIPT::CParam::clear(), NLAIAGENT::CVectorGroupType::clear(), NLAIAGENT::CGroupType::clear(), NLAIAGENT::CVolatilMemmory::CVolatilMemmory(), NLAISCRIPT::CFactorType::del(), NLAIAGENT::IAgentComposite::deleteListe(), NLAIPYSERVER::endPythonInterface(), NLAIAGENT::CVectorGroupType::erase(), NLAIAGENT::CGroupType::erase(), NLAIAGENT::CVectorGroupType::eraseAll(), NLAIAGENT::CGroupType::eraseAll(), NLAISCRIPT::CCompilateur::errorMethodConstraint(), NLAISCRIPT::CCompilateur::errorTypeConstraint(), NLAISCRIPT::CCompilateur::findMethode(), NLAISCRIPT::COperatorClass::forward(), NLAILOGIC::CFirstOrderOperator::forward(), NLAIAGENT::CComponentHandle::getComponent(), NLAIAGENT::COperatorScript::getDebugString(), NLAIAGENT::CAgentScript::getDebugString(), NLAILOGIC::IBaseOperator::IBaseOperator(), NLAISCRIPT::CCompilateur::ifInterrogation(), NLAISCRIPT::CCompilateur::ifInterrogationEnd(), NLAILOGIC::CFactPattern::init(), NLAILOGIC::CRule::init(), NLAIFUZZY::CTrapezeFuzzySet::init(), NLAIFUZZY::CLeftFuzzySet::init(), NLAIFUZZY::CTriangleFuzzySet::init(), NLAIFUZZY::CRightFuzzySet::init(), NLAIFUZZY::CFuzzyInterval::init(), NLAIFUZZY::CFuzzyRule::init(), NLAIFUZZY::CSimpleFuzzyCond::init(), NLAISCRIPT::CCompilateur::interrogationEnd(), NLAISCRIPT::COperatorClass::isValidFonc(), NLAIAGENT::IAgent::Kill(), NLAILOGIC::CVar::load(), NLAILOGIC::CValueSet::load(), NLAISCRIPT::CLdbOpCode::load(), NLAISCRIPT::CLibCallMethodi::load(), NLAISCRIPT::CLibCallInheritedMethod::load(), NLAISCRIPT::CLibCallMethod::load(), NLAISCRIPT::CLdbNewOpCode::load(), NLAISCRIPT::CAddParamNameDebug::load(), NLAISCRIPT::CFindRunMsg::load(), NLAIAGENT::IListBasicManager::load(), NLAIAGENT::CVectorGroupType::load(), NLAIAGENT::CGroupType::load(), NLAIAGENT::CAgentScript::load(), NLAIAGENT::CStringType::load(), NLAIAGENT::CLocalAgentMail::load(), NLAISCRIPT::CMethodContextDebug::loadContext(), NLAISCRIPT::CCompilateur::onEndClass(), NLAIAGENT::CLocalMailBox::onKill(), NLAIAGENT::IAgent::onKill(), NLAIAGENT::CLocalAgentMail::onKill(), NLAIAGENT::CVectorGroupType::operator-(), NLAIAGENT::CGroupType::operator-(), NLAIAGENT::CKeyObject::operator=(), NLAISCRIPT::CFunctionTag::operator=(), NLAIAGENT::CIdMethod::operator=(), NLAISCRIPT::CCompilateur::PrivateError(), NLAISCRIPT::CCompilateur::processingVar(), NLAIAGENT::CAgentScript::processMessages(), NLAIAGENT::IRefrence::refLoadStream(), NLAISCRIPT::CCompilateur::registerMethod(), NLAIAGENT::IAgentComposite::removeChild(), NLAILOGIC::CFirstOrderAssert::removeFact(), NLAISCRIPT::CConstraintStackComp::run(), NLAISCRIPT::CConstraintFindRun::run(), NLAISCRIPT::CConstraintMethode::run(), NLAIAGENT::IBasicAgent::run(), NLAIAGENT::CAgentScript::runInitComponent(), NLAIAGENT::CVolatilMemmory::runMessage(), NLAIAGENT::CAgentOperation::runMethodBase(), NLAISCRIPT::CCompilateur::runMethodConstraint(), NLAILOGIC::CInternalGoal::runMethodeMember(), NLAILOGIC::CGoal::runMethodeMember(), NLAILOGIC::CFact::runMethodeMember(), NLAIAGENT::IObjectIA::runMethodeMember(), NLAISCRIPT::CLdbStackMemberiOpCode::runOpCode(), NLAISCRIPT::CCallStackMethodi::runOpCode(), NLAISCRIPT::CLibHeapMemberMethod::runOpCode(), NLAISCRIPT::CAffOpCode::runOpCode(), NLAISCRIPT::CJFalseOpCode::runOpCode(), NLAISCRIPT::CAffOpCodeDebug::runOpCode(), NLAISCRIPT::CDiffOpCode::runOpCode(), NLAISCRIPT::CInfEqOpCode::runOpCode(), NLAISCRIPT::CSupEqOpCode::runOpCode(), NLAISCRIPT::CEqOpCode::runOpCode(), NLAISCRIPT::CInfOpCode::runOpCode(), NLAISCRIPT::CSupOpCode::runOpCode(), NLAISCRIPT::CMulOpCode::runOpCode(), NLAISCRIPT::CDivOpCode::runOpCode(), NLAISCRIPT::CSubOpCode::runOpCode(), NLAISCRIPT::CAddOpCode::runOpCode(), NLAISCRIPT::CNegOpCode::runOpCode(), NLAIAGENT::CAgentScript::runTellParentNotify(), NLAISCRIPT::CCompilateur::runTypeConstraint(), NLAIAGENT::CHashTimerManager::sendMessage(), NLAIAGENT::CVolatilMemmory::sendMessage(), NLAIAGENT::CLocalMailBox::sendMessage(), NLAIAGENT::IListManager::sendMessage(), NLAIAGENT::CAgentTimerHandle::sendMessage(), NLAIAGENT::CAgentScript::sendMessage(), NLAIAGENT::CAgentScript::sendMethod(), NLAISCRIPT::COperandSimple::serial(), NLAISCRIPT::CObjectUnknown::setBaseType(), NLAISCRIPT::CCompilateur::setChaineVar(), NLAISCRIPT::CClassInterpretFactory::setClass(), NLAIC::CSelfClassFactory::setClass(), NLAISCRIPT::IClassInterpret::setClassName(), NLAISCRIPT::CObjectUnknown::setClassType(), NLAIAGENT::IMessageBase::setContinuation(), NLAILOGIC::IBaseOperator::setGoal(), NLAISCRIPT::COperatorClass::setGoal(), NLAISCRIPT::CCompilateur::setImediateVar(), NLAISCRIPT::CCompilateur::setImediateVarNill(), NLAISCRIPT::CParam::setInfo(), NLAISCRIPT::CAgentClass::setInheritanceName(), NLAISCRIPT::CCompilateur::setListVar(), NLAIAGENT::IMessageBase::setMessageGroup(), NLAISCRIPT::CCompilateur::setMethodVar(), NLAILOGIC::IBaseVar::setName(), NLAIAGENT::CAgentOperation::setName(), NLAISCRIPT::CMethodeName::setName(), NLAIAGENT::IRefrence::setNumRef(), NLAISCRIPT::CConstraintFindRun::setOpCode(), NLAISCRIPT::CConstraintMethode::setOpCode(), NLAISCRIPT::CCompilateur::setPerformative(), NLAILOGIC::CInternalGoal::setProperty(), NLAIAGENT::IMessageBase::setReceiver(), NLAIAGENT::IMessageBase::setSender(), NLAILOGIC::CValueSet::setSize(), NLAISCRIPT::CCompilateur::setStackVar(), NLAIAGENT::CMessageScript::setStaticMember(), NLAIAGENT::CAgentScript::setStaticMember(), NLAISCRIPT::IClassInterpret::setType(), NLAISCRIPT::CFunctionTag::setTypeObject(), NLAISCRIPT::CMethodeName::setTypeOfMethode(), NLAILOGIC::CVar::setValue(), NLAIAGENT::CAgentOperation::setValue(), NLAIAGENT::IAgentInput::setValue(), NLAILOGIC::CValueSet::unify(), NLAISCRIPT::COperatorClass::unifyBackward(), NLAILOGIC::CFirstOrderOperator::unifyBackward(), NLAISCRIPT::COperatorClass::unifyForward(), NLAILOGIC::CFirstOrderOperator::unifyForward(), NLAILOGIC::CRule::unifyLiaisonBack(), NLAISCRIPT::CAddParamNameDebug::~CAddParamNameDebug(), NLAISCRIPT::CAgentClass::~CAgentClass(), NLAIAGENT::CAgentOperation::~CAgentOperation(), NLAIAGENT::CAgentScript::~CAgentScript(), NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle(), NLAIAGENT::CAgentWatchTimer::~CAgentWatchTimer(), NLAISCRIPT::CClassInterpretFactory::~CClassInterpretFactory(), NLAISCRIPT::CCodeBrancheRunDebug::~CCodeBrancheRunDebug(), NLAISCRIPT::CCompilateur::~CCompilateur(), NLAIAGENT::CComponentHandle::~CComponentHandle(), NLAISCRIPT::CConstraintChkMethodeType::~CConstraintChkMethodeType(), NLAISCRIPT::CConstraintMethode::~CConstraintMethode(), NLAISCRIPT::CConstraintStackComp::~CConstraintStackComp(), NLAILOGIC::CFact::~CFact(), NLAISCRIPT::CFindRunMsg::~CFindRunMsg(), NLAILOGIC::CFirstOrderAssert::~CFirstOrderAssert(), NLAISCRIPT::CFunctionTag::~CFunctionTag(), NLAIC::CIdentType::~CIdentType(), NLAIAGENT::CIdMethod::~CIdMethod(), NLAILOGIC::CInternalGoal::~CInternalGoal(), NLAIAGENT::CKeyObject::~CKeyObject(), NLAISCRIPT::CLdbNewOpCode::~CLdbNewOpCode(), NLAISCRIPT::CLdbOpCode::~CLdbOpCode(), NLAISCRIPT::CLibCallInheritedMethod::~CLibCallInheritedMethod(), NLAISCRIPT::CLibCallMethod::~CLibCallMethod(), NLAISCRIPT::CLibCallMethodi::~CLibCallMethodi(), NLAIAGENT::CLocalMailBox::~CLocalMailBox(), NLAIAGENT::CMainAgentScript::~CMainAgentScript(), NLAISCRIPT::CLibTest::CMethodCall::~CMethodCall(), NLAIAGENT::CAgentScript::CMethodCall::~CMethodCall(), NLAISCRIPT::CMethodeName::~CMethodeName(), NLAISCRIPT::CAgentClass::CMethodType::~CMethodType(), NLAISCRIPT::CObjectUnknown::~CObjectUnknown(), NLAISCRIPT::COperandSimple::~COperandSimple(), NLAISCRIPT::COperandUnknown::~COperandUnknown(), NLAISCRIPT::COperationType::~COperationType(), NLAISCRIPT::COperationTypeGD::~COperationTypeGD(), NLAISCRIPT::COperatorClass::~COperatorClass(), NLAIAGENT::CPairType::~CPairType(), NLAIC::CSelfClassFactory::~CSelfClassFactory(), NLAIAGENT::CStringType::~CStringType(), NLAILOGIC::CValueSet::~CValueSet(), NLAILOGIC::CVar::~CVar(), NLAIAGENT::CVolatilMemmory::~CVolatilMemmory(), NLAIAGENT::IAgentInput::~IAgentInput(), NLAILOGIC::IBaseAssert::~IBaseAssert(), NLAILOGIC::IBaseOperator::~IBaseOperator(), NLAILOGIC::IBaseVar::~IBaseVar(), NLAIAGENT::IBasicAgent::~IBasicAgent(), NLAISCRIPT::IBlock::~IBlock(), NLAISCRIPT::IClassInterpret::~IClassInterpret(), NLAILOGIC::IGoal::~IGoal(), NLAIAGENT::IListBasicManager::~IListBasicManager(), NLAIAGENT::IMessageBase::~IMessageBase(), NLAIAGENT::IRefrence::~IRefrence(), and NLAICHARACTER::IZone::~IZone().

00087                 {
00088                         if(decRef() == 0) 
00089                                         delete this;
00090                 }

void NLAIAGENT::CStringVarName::save NLMISC::IStream os  )  [inline, virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 180 of file agent_string.h.

References NLMISC::IStream::serial(), size, uint32, and x.

00181                 {                       
00182                         uint32 size = strlen(_Name) + 1;
00183                         os.serial( size );
00184                         std::string x = std::string(_Name);
00185                         os.serial( x );
00186                 }

virtual void NLAIC::IBasicInterface::serial NLMISC::IStream f  )  throw (NLMISC::EStream) [inline, virtual, inherited]
 

Reimplemented from NLAIC::IPointerGestion.

Definition at line 328 of file abstract_interface.h.

References NLAIC::IBasicInterface::load(), and NLAIC::IBasicInterface::save().

00329                 {
00330                         if ( f.isReading() )
00331                                 load( f );
00332                         else
00333                                 save( f );
00334                 }

const char* NLAIAGENT::IVarName::subString const IVarName s  )  const [inline, inherited]
 

Extract an string from an ather.

Definition at line 90 of file agent_string.h.

References NLAIAGENT::IVarName::getString(), s, and sint32.

Referenced by operator-=(), and NLAIAGENT::CIndexedVarName::operator-=().

00091                 {
00092                         char *nameTmp,*str = (char *)s.getString();             
00093                         nameTmp = (char *)getString();  
00094 
00095                         sint32 k = strlen(nameTmp);
00096 
00097                         for(sint32 i = 0; i < k; i ++)
00098                         {
00099                                 if(!strcmp(&nameTmp[i],str))
00100                                 {
00101                                         sint32 l,n = strlen(str);
00102                                         char *name = new char [(l = (k - n + 1))];
00103                                         memcpy(name,nameTmp,i);
00104                                         memcpy(&name[i],nameTmp + n,l);
00105                                         return name;
00106                                 }
00107                         }
00108                         return NULL;
00109                 }


Field Documentation

char* NLAIAGENT::CStringVarName::_Name [private]
 

Definition at line 137 of file agent_string.h.

const NLAIC::CIdentType CStringVarName::IdStringVarName [static]
 

Referenced by getType().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 09:45:43 2004 for NeL by doxygen 1.3.6