Data Structures | |
| class | CBinaryType |
| class | CIdentType |
| class | CIdentTypeAlloc |
| class | CPyTemplateDef |
| class | CRegistry |
| struct | CRegistry::CRegistryClass |
| Private structure to store data in the std::map. More... | |
| class | CSelfClassFactory |
| class | CTypeOfObject |
| class | CTypeOfOperator |
| class | IBasicInterface |
| class | IBasicType |
| class | IClassFactory |
| class | IIO |
| class | IPointerGestion |
Basic stream method utility. | |
| NLMISC::IStream & | operator<< (NLMISC::IStream &os, IBasicInterface &o) |
| Write an IBasicInterface to a stream. | |
| NLMISC::IStream & | operator<< (NLMISC::IStream &os, CIdentType &o) |
| Read an CIdentType from a stream. | |
| NLMISC::IStream & | operator>> (NLMISC::IStream &is, IBasicInterface &o) |
| read an IBasicInterface from a stream. | |
| NLMISC::IStream & | operator>> (NLMISC::IStream &is, CIdentTypeAlloc &o) |
| Read an CIdentTypeAlloc from a stream. | |
Enumerations | |
| enum | PyMemDeleteType { unDeleteMemory, deleteMemory } |
Functions | |
| IBasicInterface * | createInstance (const CIdentType &ident) |
| Creat new instance from the CRegistry static object. | |
| template<class T> CPyTemplateDef< T > * | CreatePyObjectInstance (T *o, PyTypeObject *defType) |
| const IIO * | getDefaultIIO () |
| CRegistry * | getRegistry () |
| Get the local static CRegistry object define for all object. | |
| void | initRegistry () |
| Initialize the CRegistry static object. That mean: if not null create new one else delete old one and build new one. | |
| void | Out (const char *str,...) |
| sint32 | registerClass (const CIdentType &ident, const IClassFactory &factoryClass) |
| Register an object in the CRegistry static object. | |
| void | releaseRegistry () |
| Remove the static CRegistry object. | |
| void | setDefaultIIO (const IIO *io) |
| char * | stringBuild (const char *str,...) |
| this method give an char pointer hows it contents a string define by a const char* same as printf. It use for initialise string objects. | |
| std::string | stringGetBuild (const char *str,...) |
| this method give an char pointer hows it contents a string define by a const char* same as printf. It use for initialise string objects. | |
Variables | |
| const IIO * | DefaultIIO = NULL |
| CRegistry * | registry = NULL |
|
|
Definition at line 37 of file python_export.h.
00037 {unDeleteMemory,deleteMemory};
|
|
|
Creat new instance from the CRegistry static object.
Definition at line 49 of file registry_class.cpp. References NLAIC::CRegistry::createInstance(), and registry. Referenced by NLAISCRIPT::CCompilateur::buildObject().
00050 {
00051 return registry->createInstance(ident);
00052 }
|
|
||||||||||||||||
|
Template method allow to have a pointer to a class C++ under Python, this is nead to export C++ class to python class. Definition at line 74 of file python_export.h. References NLAIC::CPyTemplateDef< T >::Instance.
00075 {
00076 CPyTemplateDef<T> *ThisClass;
00077 ThisClass = new CPyTemplateDef<T>(o);
00078 if(ThisClass == NULL) return NULL;
00079 ThisClass->Instance = o;
00080 ThisClass->ob_type = defType;
00081 _Py_NewReference((PyObject *)ThisClass);
00082 return ThisClass;
00083 }
|
|
|
Definition at line 58 of file ident_type.cpp. References DefaultIIO.
00059 {
00060 return DefaultIIO;
00061 }
|
|
|
Get the local static CRegistry object define for all object.
Definition at line 34 of file registry_class.cpp. References registry. Referenced by NLAIC::CIdentType::allocClass(), NLAIC::CIdentType::CIdentType(), NLAISCRIPT::CAgentClass::createComponents(), NLAISCRIPT::CAgentClass::getBaseClass(), NLAISCRIPT::CAgentClass::getComputeBaseClass(), NLAIC::CIdentType::getFactory(), NLAISCRIPT::CCompilateur::getTypeOfClass(), and NLAIC::CIdentType::serial().
|
|
|
Initialize the CRegistry static object. That mean: if not null create new one else delete old one and build new one.
Definition at line 54 of file registry_class.cpp. References registry. Referenced by NLAILINK::initIALib().
|
|
||||||||||||
|
Write an IBasicInterface to a stream.
Definition at line 525 of file abstract_interface.h. References NLAIC::IBasicInterface::save().
00526 {
00527 o.save(os);
00528 return os;
00529 }
|
|
||||||||||||
|
Read an CIdentType from a stream.
Definition at line 274 of file ident_type.cpp. References NLAIC::CIdentType::serial().
00275 {
00276 o.serial(os);
00277 return os;
00278 }
|
|
||||||||||||
|
read an IBasicInterface from a stream.
Definition at line 532 of file abstract_interface.h. References NLAIC::IBasicInterface::load().
00533 {
00534 o.load(is);
00535 return is;
00536 }
|
|
||||||||||||
|
Read an CIdentTypeAlloc from a stream.
Definition at line 515 of file abstract_interface.h. References NLAIC::CIdentTypeAlloc::load().
00516 {
00517 o.load(is);
00518 return is;
00519 }
|
|
||||||||||||
|
Definition at line 63 of file ident_type.cpp. References DefaultIIO, and NLAIC::IIO::Echo(). Referenced by NLAILINK::IOTrace::Echo(), NLAIPYSERVER::initPythonLib(), NLAISCRIPT::CCallPrint::printList(), and NLAIPYSERVER::printNbr().
00064 {
00065 char temp[64*1024];
00066 va_list argument;
00067 va_start (argument, str);
00068
00069 vsprintf(temp, str, argument);
00070 if(DefaultIIO != NULL)
00071 DefaultIIO->Echo(temp);
00072 else
00073 {
00074 fprintf(stderr,temp);
00075 fflush(stderr);
00076 }
00077 }
|
|
||||||||||||
|
Register an object in the CRegistry static object.
Definition at line 44 of file registry_class.cpp. References NLAIC::CRegistry::registerClass(), registry, and sint32. Referenced by NLAIAGENT::setRegister().
00045 {
00046 return registry->registerClass(ident,factoryClass);
00047 }
|
|
|
Remove the static CRegistry object.
Definition at line 58 of file registry_class.cpp. References registry. Referenced by NLAILINK::releaseIALib().
00059 {
00060 delete registry;
00061 }
|
|
|
Definition at line 53 of file ident_type.cpp. References DefaultIIO.
00054 {
00055 DefaultIIO = io;
00056 }
|
|
||||||||||||
|
this method give an char pointer hows it contents a string define by a const char* same as printf. It use for initialise string objects.
Definition at line 40 of file ident_type.cpp. References s.
|
|
||||||||||||
|
|
Definition at line 52 of file ident_type.cpp. Referenced by getDefaultIIO(), Out(), and setDefaultIIO(). |
|
|
Definition at line 32 of file registry_class.cpp. Referenced by createInstance(), getRegistry(), initRegistry(), registerClass(), and releaseRegistry(). |
1.3.6