#include <abstract_interface.h>
Nevrax France
Definition at line 482 of file abstract_interface.h.
Public Member Functions | |
| const IBasicInterface * | allocClass () |
| Get the object. | |
| CIdentTypeAlloc () | |
| CIdentTypeAlloc (NLMISC::IStream &is) | |
| Construct object with a stream. | |
| void | load (NLMISC::IStream &is) |
| Load object from stream. | |
| virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
| user can serial this object. | |
| virtual | ~CIdentTypeAlloc () |
Private Attributes | |
| CIdentType * | _Id |
|
|
Construct object with a stream.
Definition at line 489 of file abstract_interface.h. References load().
|
|
|
Definition at line 490 of file abstract_interface.h.
00490 :_Id(NULL){} |
|
|
Definition at line 502 of file abstract_interface.h.
|
|
|
Get the object.
Definition at line 496 of file abstract_interface.h. References NLAIC::CIdentType::allocClass(). Referenced by NLAIFUZZY::CFuzzyRule::load().
|
|
|
Load object from stream.
Definition at line 237 of file ident_type.cpp. Referenced by CIdentTypeAlloc(), and NLAIC::operator>>().
00238 {
00239 if(_Id != NULL)
00240 delete _Id;
00241
00242 /*sint32 i;
00243 is.serial(i);
00244 std::string cn;
00245 is.serial( cn );
00246 char *className = new char [strlen(cn.data()) + 1];
00247 strcpy( className, cn.data() );
00248
00249 CTypeOfOperator op(is);
00250 CTypeOfObject ty(is);*/
00251
00252 _Id = new CIdentType(is);
00253 //delete [] className;
00254 }
|
|
|
user can serial this object.
Definition at line 257 of file ident_type.cpp.
00258 {
00259 if(is.isReading()) load(is);
00260 else
00261 {
00262 if(_Id != NULL)
00263 {
00264 _Id->serial(is);
00265 }
00266 else
00267 {
00268 throw NLMISC::EStream();
00269 }
00270 }
00271
00272 }
|
|
|
Definition at line 485 of file abstract_interface.h. |
1.3.6