Laxkit  0.0.7.1
Public Member Functions | Public Attributes
LaxInterfaces::SomeDataFactory Class Reference

Class to get instances of interface data. More...

List of all members.

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 SomeDatanewObject (const char *objtype, SomeData *refobj=NULL)
 Return object based on name, which should be the same as object->whattype().
virtual SomeDatanewObject (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 charTypeStr (int which)
virtual int TypeId (int which)
virtual int NumTypes ()

Public Attributes

Laxkit::PtrStack< SomeFacNodetypes

Detailed Description

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.


Member Function Documentation

int LaxInterfaces::SomeDataFactory::DefineNewObject ( int  newid,
const char newname,
NewSomeDataFunc  newfunc,
DelSomeDataFunc  delfunc 
)
virtual

Add ability to make a new type of object.

Returns whatever PtrStack::push() returns.

References newstr(), and Laxkit::PtrStack< T >::push().


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

Mon Feb 17 2014 11:52:58, Laxkit