147 n_error(
"AttrId::AttrId(): invalid attribute name '%s'\n", name.
AsCharPtr());
185 return (0 != this->
defPtr);
An attribute ID is used to carry attribute types (no values) around.
Definition attrid.h:20
int GetIntDefValue() const
get int default value
Definition attrid.h:347
AccessMode GetAccessMode() const
get access type
Definition attrid.h:304
const Util::Guid & GetGuidDefValue() const
get guid default value
Definition attrid.h:424
const Util::Blob & GetBlobDefValue() const
get blob default value
Definition attrid.h:413
const Util::FourCC & GetFourCC() const
get fourcc code
Definition attrid.h:293
bool operator>(const AttrId &rhs) const
greater operator
Definition attrid.h:227
static bool IsValidName(const Util::String &n)
return true if the provided attribute id name is valid
Definition attrid.h:164
AttrId()
default constructor
Definition attrid.h:102
uint GetUIntDefValue() const
get uint default value
Definition attrid.h:358
bool operator>=(const AttrId &rhs) const
greater-or-equal operator
Definition attrid.h:238
const Util::String & GetTypeName() const
get attribute type name
Definition attrid.h:282
bool operator<(const AttrId &rhs) const
lesser operator
Definition attrid.h:249
bool operator<=(const AttrId &rhs) const
lesser-or-equal operator
Definition attrid.h:260
float GetFloatDefValue() const
get floar default value
Definition attrid.h:369
bool operator==(const AttrId &rhs) const
equality operator
Definition attrid.h:205
static Util::FixedArray< AttrId > GetAllAttrIds()
return all attribute id's (slow!)
Definition attrid.cc:17
const Util::String & GetName() const
get attribute name
Definition attrid.h:271
bool IsDynamic() const
return true if this attribute was dynamically registered
Definition attrid.h:325
ValueType GetValueType() const
get value type
Definition attrid.h:315
const AttributeDefinitionBase * defPtr
Definition attrid.h:95
bool IsValid() const
return true if the attribute id object is valid
Definition attrid.h:183
const Util::Variant & GetDefaultValue() const
get default value variant
Definition attrid.h:435
uint GetSizeOfType() const
return the byte size of the type
Definition attrid.h:193
bool GetBoolDefValue() const
get bool default value
Definition attrid.h:336
const Math::mat4 & GetMat4DefValue() const
get mat4 default value
Definition attrid.h:402
const Util::String & GetStringDefValue() const
get string default value
Definition attrid.h:380
bool operator!=(const AttrId &rhs) const
inequality operator
Definition attrid.h:216
static bool IsValidFourCC(const Util::FourCC &fcc)
return true if the provided attribute id fourcc is valid
Definition attrid.h:173
Math::vec4 GetVec4DefValue() const
get float4 default value
Definition attrid.h:391
Implements a universal attribute definition, consisting of an attribute name, attribute fourcc code,...
Definition attributedefinitionbase.h:30
static const AttributeDefinitionBase * FindByName(const Util::String &n)
find by name
Definition attributedefinitionbase.h:166
const uint GetSizeOfType() const
get size of type in bytes
Definition attributedefinitionbase.h:242
const Util::String & GetTypeName() const
get type name
Definition attributedefinitionbase.h:222
AccessMode GetAccessMode() const
get access type
Definition attributedefinitionbase.h:296
bool IsDynamic() const
return true if this is a dynamic attribute
Definition attributedefinitionbase.h:306
const Util::Variant & GetDefaultValue() const
get default value
Definition attributedefinitionbase.h:232
static const AttributeDefinitionBase * FindByFourCC(const Util::FourCC &fcc)
find by FourCC
Definition attributedefinitionbase.h:184
const Util::String & GetName() const
get attribute name
Definition attributedefinitionbase.h:202
ValueType GetValueType() const
get value type
Definition attributedefinitionbase.h:286
const Util::FourCC & GetFourCC() const
get fourcc code
Definition attributedefinitionbase.h:212
The Util::Blob class encapsulates a chunk of raw memory into a C++ object which can be copied,...
Definition blob.h:22
Implements a fixed size one-dimensional array.
Definition fixedarray.h:20
A four-character-code is a quasi-human-readable 32-bit-id.
Definition fourcc.h:19
An "any type" variable.
Definition variant.h:31
const Math::mat4 & GetMat4() const
get mat4 content
Definition variant.h:2642
Math::vec4 GetVec4() const
get vec4 content
Definition variant.h:2604
int GetInt() const
get integer content
Definition variant.h:2422
const Util::String & GetString() const
get string content
Definition variant.h:2548
uint GetUInt() const
get unsigned integer content
Definition variant.h:2432
bool GetBool() const
get bool content
Definition variant.h:2529
const Util::Guid & GetGuid() const
get guid content
Definition variant.h:2680
float GetFloat() const
get float content
Definition variant.h:2491
const Util::Blob & GetBlob() const
get blob
Definition variant.h:2699
void __cdecl n_error(const char *msg,...)
This function is called when a serious situation is encountered which requires abortion of the applic...
Definition debug.cc:138
#define n_assert(exp)
Definition debug.h:50
Definition accessmode.h:13
ValueType
Definition valuetype.h:20
AccessMode
Definition accessmode.h:15
A 4x4 single point precision float matrix.
Definition mat4.h:49
A 4D vector.
Definition vec4.h:24
Nebula's universal string class.
Definition string.h:50
const char * AsCharPtr() const
return contents as character pointer
Definition string.h:540
unsigned int uint
Definition types.h:31