11 #ifndef __VOP_TypeInfo__
12 #define __VOP_TypeInfo__
33 #define VOP_STRUCT_TYPE_NAME_ANY ""
47 const char * type_name = NULL );
65 const char *type_name = NULL );
67 const char *type_name );
81 {
return myTypeName; }
87 enum { UNKNOWN_ARRAY_LENGTH = -1 };
89 { myArrayLength =
length; }
91 {
return myArrayLength; }
93 {
return myArrayLength != UNKNOWN_ARRAY_LENGTH; }
117 bool isValid()
const;
120 bool isArray()
const;
126 bool isStructLike()
const;
131 void getDescriptionString(
UT_String &description )
const;
136 void getTokenString(
UT_String &token )
const;
143 void setFromTokenString(
const char *token_or_description );
Reprsents a language for which VOPs can generate source code.
A class abstracting definition of a VOP data type.
bool isFixedArrayLength() const
Sets and gets the array length.
void setArrayLength(int length)
Sets and gets the array length.
VOP_Type getType() const
Returns the type enumeration value.
VOP_Type getBaseType() const
Returns the type enumeration value.
UT_SharedPtr< const VOP_TypeDefinition > VOP_TypeDefinitionHandle
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
GLint GLint GLsizei GLint GLenum GLenum type
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
const UT_StringHolder & getTypeName() const
Returns the official type name.
#define VOP_BASE_TYPE(type)
int getArrayLength() const
Sets and gets the array length.
VOP_Type getRawType() const
Returns the type enumeration value.
GLuint GLsizei GLsizei * length
void setTypeInfoFromType(VOP_Type type)
bool operator!=(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
UT_SharedPtr< const VOP_TypeDefinition > VOP_TypeDefinitionHandle
Define a handle for the type definition objects.