Go to the source code of this file.
Functions |
| | BOOST_CLASS_VERSION (makArchives::oldRecords::DtElementDefinitionHierarchy, 1) |
| | BOOST_CLASS_VERSION (makArchives::oldRecords::DtElementDefinitionNode, 1) |
| | BOOST_CLASS_VERSION (makArchives::oldRecords::DtElementDefinition, 1) |
| | BOOST_CLASS_VERSION (makArchives::oldRecords::DtVisualDefinitionSet, 1) |
| | BOOST_CLASS_VERSION (makArchives::oldRecords::DtVisualDefinition, 1) |
| #define | REGISTER_VISUAL_ATTRIBUTE(Attribute) |
| | Utility macro to register attributes with the factory.
|
| #define | DEFINE_VISUAL_ATTRIBUTE(ATTRIBUTE, VALUETYPE, DEFAULTVALUE) |
| | Utility macro to fill out the implementation of an attribute type ATTRIBUTE should be the attribute class name, VALUETYPE the type of its myValue member, and DEFAULTVALUE the value that myValue is initialized to.
|
typedef std::map< std::string,
DtVisualAttributeCreatorFcn > | makArchives::oldRecords::DtVisualAttributeCreatorMap |
| | Creator callback map from attribute class name to creator callback.
|
static
DtVisualAttributeCreatorMap * | makArchives::oldRecords::theAttributeCreatorMap = 0 |
| | Static visual attribute creator map used by the attribute factory.
|
Macro Definition Documentation
| #define REGISTER_VISUAL_ATTRIBUTE |
( |
|
Attribute | ) |
|
Value:static bool Attribute##_Registered = \
DtVisualAttributeFactory::addAttributeCreator(Attribute::theClassType(), &Attribute::create);
Utility macro to register attributes with the factory.
| #define DEFINE_VISUAL_ATTRIBUTE |
( |
|
ATTRIBUTE, |
|
|
|
VALUETYPE, |
|
|
|
DEFAULTVALUE |
|
) |
| |
Value:
{\
public:\
ATTRIBUTE() { myValue = DEFAULTVALUE ; }\
ATTRIBUTE(const ATTRIBUTE& s) : DtVisualAttribute<VALUETYPE>(s) {}\
virtual ~ATTRIBUTE() {}\
static std::string theClassType() { return #ATTRIBUTE ; }\
virtual std::string classType() const { return theClassType();}\
static DtVisualAttributeInterface* create() { return new ATTRIBUTE(); }\
};
Utility macro to fill out the implementation of an attribute type ATTRIBUTE should be the attribute class name, VALUETYPE the type of its myValue member, and DEFAULTVALUE the value that myValue is initialized to.
Function Documentation