Laxkit
0.0.7.1
|
Class to get instances of interface data. More...
Public Member Functions | |
virtual | ~SomeDataFactory () |
Empty virtual destructor. | |
virtual int | DefineNewObject (int newid, const char *newname, NewSomeDataFunc newfunc, DelSomeDataFunc delfunc) |
Add ability to make a new type of object. | |
virtual SomeData * | newObject (const char *objtype, SomeData *refobj=NULL) |
Return object based on name, which should be the same as object->whattype(). | |
virtual SomeData * | newObject (int objtype, SomeData *refobj=NULL) |
Return object based on id number objtype. | |
virtual void | delObject (SomeData *obj) |
Currently does nothing and is not called from any Lax classes... | |
virtual const char * | TypeStr (int which) |
virtual int | TypeId (int which) |
virtual int | NumTypes () |
Public Attributes | |
Laxkit::PtrStack< SomeFacNode > | types |
Class to get instances of interface data.
This class makes it unnecessary to have a complicated system of function pointers to add, remove, and save objects.
|
virtual |
Add ability to make a new type of object.
Returns whatever PtrStack::push() returns.
References newstr(), and Laxkit::PtrStack< T >::push().