HDK
|
Class that defines a struct vop type. More...
#include <VOP_CompositeTypeDefinition.h>
Public Member Functions | |
VOP_StructTypeDefinition () | |
Standard overrides from the base class. More... | |
~VOP_StructTypeDefinition () override | |
Standard overrides from the base class. More... | |
Public Member Functions inherited from VOP_CompositeTypeDefinition | |
VOP_CompositeTypeDefinition () | |
Constructor and destructor. More... | |
~VOP_CompositeTypeDefinition () override | |
void | getTypeDefinitionSourceCode (UT_String &code, const VOP_Language *language) const override |
bool | load (const UT_JSONValue &json) override |
Saves to or loades from a JSON value. More... | |
bool | save (UT_JSONValue &json) const override |
Saves to or loades from a JSON value. More... | |
int | getMemberVarCount () const |
const VOP_MemberVarInfo & | getMemberVarInfo (int index) const |
const VOP_MemberVarInfo * | findMemberVarInfo (const char *member_name, bool check_old_names=false) const |
int | findMemberVarInfoIndex (const char *member_name, bool check_old_names=false) const |
void | appendMemberVarInfo (const VOP_MemberVarInfo &info) |
int | getMethodCount () const |
Getters and setter for member methods. More... | |
const VOP_MemberMethodInfo & | getMethodInfo (int index) const |
Getters and setter for member methods. More... | |
const VOP_MemberMethodInfo * | findMethodInfo (const char *method_name) const |
Getters and setter for member methods. More... | |
void | appendMethodInfo (const VOP_MemberMethodInfo &info) |
Getters and setter for member methods. More... | |
void | setIsAdHoc (bool flag) |
True if the type is ad-hoc (eg, defined by a Struct VOP node). More... | |
bool | isAdHoc () const |
True if the type is ad-hoc (eg, defined by a Struct VOP node). More... | |
void | setExplicitDefinitionCode (const char *code) |
const char * | getExplicitDefinitionCode () const |
Public Member Functions inherited from VOP_TypeDefinition | |
VOP_TypeDefinition () | |
Constructor and destructor. More... | |
virtual | ~VOP_TypeDefinition () |
const UT_StringHolder & | getTypeName () const |
Sets and gets the type definition unique name identifier. More... | |
void | setTypeName (const char *name) |
Sets and gets the type definition unique name identifier. More... | |
const UT_StringHolder & | getName () const |
Sets and gets the type definition unique name identifier. More... | |
const UT_StringHolder & | getTypeLabel () const |
Sets and gets the type definition unique name identifier. More... | |
void | setTypeLabel (const char *label) |
Sets and gets the type definition unique name identifier. More... | |
const UT_Color * | getConnectorColor () const |
Methods for the color of the connector of this type. More... | |
void | setSpecificConnectorColor (const UT_Color &clr) |
Methods for the color of the connector of this type. More... | |
void | setDefaultConnectorColor () |
Methods for the color of the connector of this type. More... | |
void | setCodeTypeName (const char *code_type_name) |
Sets and gets the type name used in the generated code. More... | |
const UT_StringHolder & | getCodeTypeName () const |
Sets and gets the type name used in the generated code. More... | |
const UT_StringHolder & | getCodeTypeNameRaw () const |
Sets and gets the type name used in the generated code. More... | |
bool | operator== (const VOP_TypeDefinition &other) const |
Standard comparison operators. More... | |
bool | operator!= (const VOP_TypeDefinition &other) const |
Standard comparison operators. More... | |
static const UT_StringHolder | METATYPE_VALUE |
Override the meta-type string for structs. More... | |
UT_StringHolder | getMetaType () const override |
Override the meta-type string for structs. More... | |
UT_StringHolder | getCodeTypeKeyword () const override |
Override the meta-type string for structs. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from VOP_TypeDefinition | |
static const UT_StringHolder | METATYPE_KEY |
Protected Member Functions inherited from VOP_CompositeTypeDefinition | |
void | generateTypeDefinition (UT_String &code, const char *meta_type_keyword, const VOP_Language *language) const |
Generates a type definition for the source code from the member info. More... | |
bool | isEqual (const VOP_TypeDefinition &other) const override |
Standard overrides from the base class. More... | |
Class that defines a struct vop type.
Definition at line 191 of file VOP_CompositeTypeDefinition.h.
VOP_StructTypeDefinition::VOP_StructTypeDefinition | ( | ) |
Standard overrides from the base class.
|
override |
Standard overrides from the base class.
|
overridevirtual |
Override the meta-type string for structs.
Implements VOP_CompositeTypeDefinition.
|
overridevirtual |
Override the meta-type string for structs.
Implements VOP_TypeDefinition.
|
static |
Override the meta-type string for structs.
Definition at line 200 of file VOP_CompositeTypeDefinition.h.