#include <sml.h>
Public Attributes | |
| const char * | name |
| const char * | BaseClassName |
| SMLCLASSMEMBER * | members |
| void *(* | Constructor )(void *data, SMLCONTEXT *context, struct SMLCLASS *) |
| void(* | Destructor )(void *data, SMLCONTEXT *context, struct SMLCLASS *) |
| void *(* | CopyConstructor )(void *src, SMLCONTEXT *context, struct SMLCLASS *, void *dest) |
| int | size |
| INT32 | CreateDate |
| INT32 | ModDate |
| const char * | description |
| SMLCLASS * | next |
| SMLCLASS * | BaseClass |
| INT8 | NotInWin32Native |
| int | OffsetToNext |
| void * | privdata |
| int | sizeofSMLCLASS |
| int | sizeofSMLCLASSMEMBER |
| void(* | UninstallClass )(SMLCLASS *) |
Definition at line 3166 of file sml.h.
|
|
Leave this 0. InstallClass will look up BaseClassName and set it.
|
|
|
|
|
|
Constructors will be called in base to derived class order. Data passed in will be NULL or preallocated and cleared to the size specified by the largest derived class. If no size is specified, the base class's constructor will get a NULL pointer and is expected to allocate the data itself. Derived classs constructors are expected to use the data passed and return it. |
|
|
Copy a class. If the size field in SMLCLASS is 0, then the copy constructor must malloc and return a copy of src (dest parameter is ignored) This is only used this way in one place currently. For copying colormaps If size is non-zero, src should be coppied into dest and return dest. This is used mostly for assigning into an array of classes. If there is no copy constructor, an array element assignment will use memcpy() |
|
|
0 means some time before 19980603
|
|
|
Default description which is use to generate the documentation.
|
|
|
Destructors are called in derived to base class order. It's up to you to make sure that if a constructor allocated the data, a destructor frees it. But make sure that only the lowest level destructor frees it or you will illop. If the data was not allocated by a constructor (ie, a size was given in one of the classes, then the data will be free'd automatically |
|
|
|
|
|
|
|
|
Name of this type class.
|
|
|
Linked list of registered classes.
|
|
|
|
|
|
If class is a linked list, offset to the "next" pointer (-1 if not).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.4-20031026