HDK
|
#include "SIM_Data.h"
#include "SIM_DataFactory.h"
#include "SIM_Utils.h"
#include <UT/UT_StringArray.h>
#include <UT/UT_StringHolder.h>
#include <SYS/SYS_Compiler.h>
Go to the source code of this file.
Macros | |
#define | DECLARE_CLASSNAME(DataClass, SuperClass) |
#define | DECLARE_STANDARD_GETCASTTOTYPE() |
#define | DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms) |
#define | IMPLEMENT_DATAFACTORY(DataClass) |
#define DECLARE_CLASSNAME | ( | DataClass, | |
SuperClass | |||
) |
This macro provides a quick way to define a static function called classname() which returns the provided class name as a string.
Definition at line 20 of file SIM_DataUtils.h.
#define DECLARE_DATAFACTORY | ( | DataClass, | |
SuperClass, | |||
Description, | |||
DopParms | |||
) |
This macro simplifies the calling and casting the return value from This macro quickly defines all the static functions needed to declare a SIM_DataFactory for a SIM_Data subclass.
Definition at line 63 of file SIM_DataUtils.h.
#define DECLARE_STANDARD_GETCASTTOTYPE | ( | ) |
This function implements a standard version of getDistanceToType(). Only if your subclass uses multiple inheritance will it be necessary to write a customized version of this function. Be sure to add this declaration to your class definition or the DECLARE_DATAFACTORY() macro will not compile properly.
Definition at line 50 of file SIM_DataUtils.h.
#define IMPLEMENT_DATAFACTORY | ( | DataClass | ) |
Add this macro to the initialization function for your library. It uses the declaration above to register your data type.
Definition at line 100 of file SIM_DataUtils.h.