12 #ifndef __VOP_CompositeTypeDefinition__
13 #define __VOP_CompositeTypeDefinition__
30 const char *
label = NULL,
31 const char *old_name = NULL );
41 void setName(
const char *name );
43 void setLabel(
const char *
label );
44 void setOldName(
const char *old_name );
72 void setName(
const char *
name );
75 bool isVariadic()
const;
76 void setIsVariadic(
bool flag );
78 int getArgCount()
const;
81 bool isArgOut(
int idx )
const;
82 void appendArg(
const char *name,
124 int getMemberVarCount()
const;
127 bool check_old_names =
false)
const;
128 int findMemberVarInfoIndex(
129 const char *member_name,
130 bool check_old_names =
false)
const;
131 void appendMemberVarInfo(
136 int getMethodCount()
const;
139 const char *method_name )
const;
140 void appendMethodInfo(
145 void setIsAdHoc(
bool flag );
146 bool isAdHoc()
const;
157 void setExplicitDefinitionCode(
const char *code );
158 const char * getExplicitDefinitionCode()
const;
167 void generateTypeDefinition(
UT_String &code,
168 const char *meta_type_keyword,
186 bool myUseExplicitDefinitionCode;
Reprsents a language for which VOPs can generate source code.
A class abstracting definition of a VOP data type.
virtual UT_StringHolder getMetaType() const =0
GLuint GLsizei const GLchar * label
virtual UT_StringHolder getCodeTypeKeyword() const =0
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
virtual bool load(const UT_JSONValue &json)
virtual bool save(UT_JSONValue &json) const
GLuint const GLchar * name
Class that defines a struct vop type.
Class that contains information about a struct/class method.
Class that contains information about a struct/class member variable.
virtual bool isEqual(const VOP_TypeDefinition &other) const =0
Class to store JSON objects as C++ objects.
static const UT_StringHolder METATYPE_VALUE
Override the meta-type string for structs.
virtual void getTypeDefinitionSourceCode(UT_String &code, const VOP_Language *language) const
Class that defines a type composed by assembling other types as members.
static const UT_StringHolder METATYPE_VALUE
Override the meta-type string for classes.