# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAIAGENT::CStringVarName Class Reference

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

#include <agent_string.h>

Inheritance diagram for NLAIAGENT::CStringVarName:

NLAIAGENT::IVarName NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CStringVarName (const char *name)
 CStringVarName (const CStringVarName &s)
 CStringVarName (NLMISC::IStream &is)
virtual ~CStringVarName ()
virtual const char * getString () const
 Get the string stored in the instance. More...

const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

void save (NLMISC::IStream &os)
 Save the class in a stream. More...

void load (NLMISC::IStream &is)
 Load the class from a stream. More...

IVarNameoperator+= (const IVarName &s)
IVarNameoperator-= (const IVarName &s)
IVarNameoperator= (const IVarName &v)
CStringVarName & operator= (const CStringVarName &v)
const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

void getDebugString (std::string &text) const
 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. More...


Static Public Attributes

const NLAIC::CIdentType IdStringVarName

Private Attributes

char * _Name

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.


Constructor & Destructor Documentation

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

Definition at line 139 of file agent_string.h.

References _Name.

Referenced by clone, CStringVarName, and operator=.

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

Definition at line 150 of file agent_string.h.

References _Name, CStringVarName, and s.

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

Definition at line 161 of file agent_string.h.

References _Name, and load.

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

Definition at line 167 of file agent_string.h.

References _Name.


Member Function Documentation

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 _Name, and CStringVarName.

Referenced by newInstance, NLAISCRIPT::CAgentClass::registerComponent, and NLAISCRIPT::COperatorClass::setGoal.

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 _Name, and NLAIC::stringGetBuild.

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.

References _Name.

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

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.

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 _Name, and NLMISC::IStream::serial.

Referenced by CStringVarName.

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.

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

Implements NLAIAGENT::IVarName.

Definition at line 199 of file agent_string.h.

References _Name, NLAIAGENT::IVarName::addString, NLAIAGENT::IVarName::IVarName, and s.

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

Implements NLAIAGENT::IVarName.

Definition at line 207 of file agent_string.h.

References _Name, NLAIAGENT::IVarName::IVarName, s, and NLAIAGENT::IVarName::subString.

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

Definition at line 227 of file agent_string.h.

References _Name, CStringVarName, and v.

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

Implements NLAIAGENT::IVarName.

Definition at line 218 of file agent_string.h.

References _Name, NLAIAGENT::IVarName::IVarName, and v.

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 _Name, NLMISC::IStream::serial, and x.


Member Data Documentation

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

Definition at line 137 of file agent_string.h.

Referenced by clone, CStringVarName, getDebugString, getString, load, operator+=, operator-=, operator=, save, and ~CStringVarName.

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

Referenced by getType, and NLAISCRIPT::CCodeBrancheRunDebug::printVariable.


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