NLAILINK Namespace Reference


Data Structures

class  IOTrace

Functions

void buildScript (const std::string &scriptSrc, const std::string &name)
uint8 getLocalServerID ()
void initIALib ()
void releaseIALib ()
void releaseMainManager ()
void setLocalServerID (uint8 u)
void setMainManager (NLAIAGENT::IMainAgent *manager)

Variables

char LaseErrorCodeOrdreInterprete [32 *1024]


Function Documentation

void NLAILINK::buildScript const std::string &  scriptSrc,
const std::string &  name
 

Definition at line 161 of file ai.cpp.

References NLAISCRIPT::CCompilateur::Compile(), r, and NLAIC::IPointerGestion::release().

Referenced by NLAIAGENT::CAgentScript::initAgentScript(), NLAIAGENT::CVolatilMemmory::initClass(), and NLAIAGENT::CAgentWatchTimer::initMsgClass().

00162         {
00163                 NLAISCRIPT::IScriptDebugSource *sourceCode = new NLAISCRIPT::CScriptDebugSourceFile(name.c_str());
00164                 IOTrace Interface;
00165                 NLAISCRIPT::CCompilateur *comp = new NLAISCRIPT::CCompilateur(Interface, scriptSrc.c_str(), scriptSrc.size(), sourceCode);
00166                 NLAIAGENT::IObjectIA::CProcessResult r = comp->Compile();               
00167 #ifdef NL_DEBUG
00168                 if ( r.ResultState == NLAIAGENT::processError )
00169                         throw;
00170 #endif
00171                 sourceCode->release();
00172                 delete comp;
00173         }

uint8 NLAILINK::getLocalServerID  ) 
 

Definition at line 79 of file ai.cpp.

References NLNET::IService::getInstance(), and uint8.

00080         {
00081           return NLNET::IService::getInstance()->getServiceId ();
00082         }

void NLAILINK::initIALib  ) 
 

Definition at line 24 of file ai.cpp.

References NLAIAGENT::CAgentScript::initAgentScript(), NLAIAGENT::CAgentManagerTimer::initClass(), NLAICHARACTER::CCharacterChild::initClass(), NLAICHARACTER::CCharacterNoeud::initClass(), NLAISCRIPT::CLibTest::initClass(), NLAIAGENT::CProxyAgentMail::initClass(), NLAIAGENT::CActorScript::initClass(), NLAISCRIPT::initExternalLib(), NLAIC::initRegistry(), registerLibClass(), and staticInitAgent().

00025         {
00026                 staticInitAgent();
00027                 registerLibClass();
00028                 NLAIC::initRegistry();
00029                 NLAISCRIPT::initExternalLib();          
00030                 NLAIAGENT::CAgentScript::initAgentScript();
00031                 NLAIAGENT::CActorScript::initClass();
00032                 NLAIAGENT::CProxyAgentMail::initClass();
00033                 NLAISCRIPT::CLibTest::initClass();
00034 
00035                 NLAICHARACTER::CCharacterNoeud::initClass();
00036                 NLAICHARACTER::CCharacterChild::initClass();
00037 
00038                 NLAIAGENT::CAgentManagerTimer::initClass();
00039                 CLibTimerManager::initClass();
00040                 CAgentWatchTimer::initClass();
00041                 CAgentClockTimer::initClass();
00042                 CVolatilMemmory::initClass();
00043                 CHashTimerManager::initClass();         
00044                 CAgentOperation::initClass();
00045         }

void NLAILINK::releaseIALib  ) 
 

Definition at line 47 of file ai.cpp.

References NLAIAGENT::CAgentScript::releaseAgentScript(), NLAICHARACTER::CCharacterChild::releaseClass(), NLAICHARACTER::CCharacterNoeud::releaseClass(), NLAISCRIPT::CLibTest::releaseClass(), NLAIAGENT::CProxyAgentMail::releaseClass(), NLAIAGENT::CActorScript::releaseClass(), NLAIAGENT::CIndexedVarName::releaseClass(), NLAIAGENT::CAgentManagerTimer::releaseClass(), NLAIC::releaseRegistry(), and staticReleaseLibClass().

00048         {       
00049                 NLAIAGENT::CAgentManagerTimer::releaseClass();
00050                 CLibTimerManager::releaseClass();
00051                 CAgentClockTimer::releaseClass();
00052                 CAgentWatchTimer::releaseClass();
00053 
00054                 NLAIAGENT::CIndexedVarName::releaseClass();
00055                 NLAIC::releaseRegistry();
00056                 //NLAIAGENT::CLocWordNumRef::clear();
00057                 NLAIAGENT::CAgentScript::releaseAgentScript();
00058                 NLAIAGENT::CFsmScript::releaseClass();
00059                 
00060                 NLAIAGENT::CProxyAgentMail::releaseClass();
00061                 NLAISCRIPT::CLibTest::releaseClass();
00062                 NLAICHARACTER::CCharacterNoeud::releaseClass();
00063                 NLAICHARACTER::CCharacterChild::releaseClass();
00064                 CVolatilMemmory::releaseClass();
00065                 CHashTimerManager::releaseClass();
00066                 CAgentOperation::releaseClass();
00067 
00068                 staticReleaseLibClass();
00069         }

void NLAILINK::releaseMainManager  ) 
 

Definition at line 90 of file ai.cpp.

00091         {
00092                 if(NLAIAGENT::CProxyAgentMail::MainAgent != NULL) 
00093                 {
00094                         NLAIAGENT::CProxyAgentMail::MainAgent->release();
00095                 }
00096         }

void NLAILINK::setLocalServerID uint8  u  ) 
 

Definition at line 72 of file ai.cpp.

References NLMISC::CEntityId::setCreatorId(), NLMISC::CEntityId::setDynamicId(), NLMISC::CEntityId::setServiceId(), and uint8.

00073         {
00074                 NLAIAGENT::CAgentNumber::setServiceId(u);
00075                 NLAIAGENT::CNumericIndex::_I.setCreatorId( u );
00076                 NLAIAGENT::CNumericIndex::_I.setDynamicId( u );
00077         }

void NLAILINK::setMainManager NLAIAGENT::IMainAgent manager  ) 
 

Definition at line 84 of file ai.cpp.

00085         {
00086                 NLAIAGENT::CProxyAgentMail::MainAgent = manager;
00087                 //NLAIAGENT::CProxyAgentMail::MainAgent->incRef();
00088         }


Variable Documentation

char NLAILINK::LaseErrorCodeOrdreInterprete[32*1024] [static]
 

Definition at line 98 of file ai.cpp.

Referenced by NLAILINK::IOTrace::Echo().


Generated on Tue Mar 16 10:38:04 2004 for NeL by doxygen 1.3.6