Nebula
Loading...
Searching...
No Matches
Attr Namespace Reference

Classes

class  AttrExitHandler
 Exit handler for the Attr subsystem, cleans up dynamic attribute definitions before shutdown. More...
 
class  Attribute
 A compiletime-typesafe key/value pair. More...
 
class  AttributeContainer
 A simple container for attributes. More...
 
class  AttributeDefinition
 This extends the typeless AttributeDefinitionBase class by a typed template class, which adds compiletime-type-safety to attribute definitions. More...
 
class  AttributeDefinitionBase
 Implements a universal attribute definition, consisting of an attribute name, attribute fourcc code, value type and access type. More...
 
class  AttributeTable
 A table of attributes with a compact memory footprint and fast random access. More...
 
class  AttrId
 An attribute ID is used to carry attribute types (no values) around. More...
 
class  BlobArrayTypeClass
 
class  BlobAttrId
 Typed attribute id for blob type. More...
 
class  BlobTypeClass
 
class  BoolArrayTypeClass
 
class  BoolAttrId
 Typed attribute id for bool type. More...
 
class  BoolTypeClass
 
class  ByteTypeClass
 
class  DoubleTypeClass
 
class  Float2ArrayTypeClass
 
class  Float2TypeClass
 
class  Float4ArrayTypeClass
 
class  Float4TypeClass
 
class  FloatArrayTypeClass
 
class  FloatAttrId
 Typed attribute id for float type. More...
 
class  FloatTypeClass
 
class  GuidArrayTypeClass
 
class  GuidAttrId
 Typed attribute id for guid type. More...
 
class  GuidTypeClass
 
class  Int64TypeClass
 
class  IntArrayTypeClass
 
class  IntAttrId
 Typed attribute id for integer type. More...
 
class  IntTypeClass
 
class  Mat4AttrId
 Typed attribute id for mat4 type. More...
 
class  Matrix44ArrayTypeClass
 
class  Matrix44TypeClass
 
class  QuaternionTypeClass
 
class  ShortTypeClass
 
class  StringArrayTypeClass
 
class  StringAttrId
 Typed attribute id for string type. More...
 
class  StringTypeClass
 
class  Transform44TypeClass
 
class  UInt64TypeClass
 
class  UIntAttrId
 Typed attribute id for unsigned integer type. More...
 
class  UIntTypeClass
 
class  UShortTypeClass
 
class  Vec4AttrId
 Typed attribute id for vec4 type. More...
 
class  VoidPtrTypeClass
 

Enumerations

enum  AccessMode { ReadOnly , ReadWrite }
 
enum  ValueType {
  VoidType = Util::Variant::Void , ByteType = Util::Variant::Byte , ShortType = Util::Variant::Short , UShortType = Util::Variant::UShort ,
  IntType = Util::Variant::Int , UIntType = Util::Variant::UInt , Int64Type = Util::Variant::Int64 , UInt64Type = Util::Variant::UInt64 ,
  FloatType = Util::Variant::Float , DoubleType = Util::Variant::Double , BoolType = Util::Variant::Bool , Vec2Type = Util::Variant::Vec2 ,
  Vec4Type = Util::Variant::Vec4 , QuaternionType = Util::Variant::Quaternion , StringType = Util::Variant::String , Mat4Type = Util::Variant::Mat4 ,
  Transform44Type = Util::Variant::Transform44 , BlobType = Util::Variant::Blob , GuidType = Util::Variant::Guid , VoidPtrType = Util::Variant::VoidPtr ,
  IntArrayType = Util::Variant::IntArray , FloatArrayType = Util::Variant::FloatArray , BoolArrayType = Util::Variant::BoolArray , Vec2ArrayType = Util::Variant::Vec2Array ,
  Vec4ArrayType = Util::Variant::Vec4Array , StringArrayType = Util::Variant::StringArray , Mat4ArrayType = Util::Variant::Mat4Array , BlobArrayType = Util::Variant::BlobArray ,
  GuidArrayType = Util::Variant::GuidArray
}
 

Functions

 __ImplementClass (Attr::AttributeTable, 'ATTT', Core::RefCounted)
 
 DefineGuid (Guid, 'auid', AccessMode::ReadOnly)
 Common attributes.
 
 DefineString (Name, 'Anme', AccessMode::ReadWrite)
 
 DeclareGuid (Guid, 'auid', AccessMode::ReadOnly)
 Common attributes.
 
 DeclareString (Name, 'anme', AccessMode::ReadWrite)
 
 DefineString (AttrName, 'ATNA', Attr::ReadWrite)
 
 DefineString (AttrType, 'ATTY', Attr::ReadWrite)
 
 DefineBool (AttrReadWrite, 'ATRW', Attr::ReadWrite)
 
 DefineBool (AttrDynamic, 'ATDY', Attr::ReadWrite)
 
 DeclareString (AttrName, 'ATNA', Attr::ReadWrite)
 
 DeclareString (AttrType, 'ATTY', Attr::ReadWrite)
 
 DeclareBool (AttrReadWrite, 'ATRW', Attr::ReadWrite)
 
 DeclareBool (AttrDynamic, 'ATDY', Attr::ReadWrite)
 
 DefineString (name, 'name', ReadOnly)
 
 DefineString (type, 'type', ReadOnly)
 
 DefineInt (cid, 'cid_', ReadOnly)
 
 DefineInt (notnull, 'ntnl', ReadOnly)
 
 DefineBlob (dflt_value, 'dflv', ReadOnly)
 
 DefineBool (pk, 'pk__', ReadOnly)
 
 DefineInt (seq, 'seq_', ReadOnly)
 
 DefineBool (unique, 'uniq', ReadOnly)
 
 DefineInt (seqno, 'sqno', ReadOnly)
 
 DeclareString (name, 'name', ReadOnly)
 
 DeclareString (type, 'type', ReadOnly)
 
 DeclareInt (cid, 'cid_', ReadOnly)
 
 DeclareInt (notnull, 'ntnl', ReadOnly)
 
 DeclareBlob (dflt_value, 'dflv', ReadOnly)
 
 DeclareBool (pk, 'pk__', ReadOnly)
 
 DeclareInt (seq, 'seq_', ReadOnly)
 
 DeclareBool (unique, 'uniq', ReadOnly)
 
 DeclareInt (seqno, 'sqno', ReadOnly)
 

Enumeration Type Documentation

◆ AccessMode

Enumerator
ReadOnly 
ReadWrite 

◆ ValueType

Enumerator
VoidType 
ByteType 
ShortType 
UShortType 
IntType 
UIntType 
Int64Type 
UInt64Type 
FloatType 
DoubleType 
BoolType 
Vec2Type 
Vec4Type 
QuaternionType 
StringType 
Mat4Type 
Transform44Type 
BlobType 
GuidType 
VoidPtrType 
IntArrayType 
FloatArrayType 
BoolArrayType 
Vec2ArrayType 
Vec4ArrayType 
StringArrayType 
Mat4ArrayType 
BlobArrayType 
GuidArrayType 

Function Documentation

◆ __ImplementClass()

Attr::__ImplementClass ( Attr::AttributeTable ,
'ATTT' ,
Core::RefCounted  )

◆ DeclareBlob()

Attr::DeclareBlob ( dflt_value ,
'dflv' ,
ReadOnly  )

◆ DeclareBool() [1/4]

Attr::DeclareBool ( AttrDynamic ,
'ATDY' ,
Attr::ReadWrite  )

◆ DeclareBool() [2/4]

Attr::DeclareBool ( AttrReadWrite ,
'ATRW' ,
Attr::ReadWrite  )

◆ DeclareBool() [3/4]

Attr::DeclareBool ( pk ,
'pk__' ,
ReadOnly  )

◆ DeclareBool() [4/4]

Attr::DeclareBool ( unique ,
'uniq' ,
ReadOnly  )

◆ DeclareGuid()

Attr::DeclareGuid ( Guid ,
'auid' ,
AccessMode::ReadOnly  )

Common attributes.

◆ DeclareInt() [1/4]

Attr::DeclareInt ( cid ,
'cid_' ,
ReadOnly  )

◆ DeclareInt() [2/4]

Attr::DeclareInt ( notnull ,
'ntnl' ,
ReadOnly  )

◆ DeclareInt() [3/4]

Attr::DeclareInt ( seq ,
'seq_' ,
ReadOnly  )

◆ DeclareInt() [4/4]

Attr::DeclareInt ( seqno ,
'sqno' ,
ReadOnly  )

◆ DeclareString() [1/5]

Attr::DeclareString ( AttrName ,
'ATNA' ,
Attr::ReadWrite  )

◆ DeclareString() [2/5]

Attr::DeclareString ( AttrType ,
'ATTY' ,
Attr::ReadWrite  )

◆ DeclareString() [3/5]

Attr::DeclareString ( Name ,
'anme' ,
AccessMode::ReadWrite  )

◆ DeclareString() [4/5]

Attr::DeclareString ( name ,
'name' ,
ReadOnly  )

◆ DeclareString() [5/5]

Attr::DeclareString ( type ,
'type' ,
ReadOnly  )

◆ DefineBlob()

Attr::DefineBlob ( dflt_value ,
'dflv' ,
ReadOnly  )

◆ DefineBool() [1/4]

Attr::DefineBool ( AttrDynamic ,
'ATDY' ,
Attr::ReadWrite  )

◆ DefineBool() [2/4]

Attr::DefineBool ( AttrReadWrite ,
'ATRW' ,
Attr::ReadWrite  )

◆ DefineBool() [3/4]

Attr::DefineBool ( pk ,
'pk__' ,
ReadOnly  )

◆ DefineBool() [4/4]

Attr::DefineBool ( unique ,
'uniq' ,
ReadOnly  )

◆ DefineGuid()

Attr::DefineGuid ( Guid ,
'auid' ,
AccessMode::ReadOnly  )

Common attributes.

◆ DefineInt() [1/4]

Attr::DefineInt ( cid ,
'cid_' ,
ReadOnly  )

◆ DefineInt() [2/4]

Attr::DefineInt ( notnull ,
'ntnl' ,
ReadOnly  )

◆ DefineInt() [3/4]

Attr::DefineInt ( seq ,
'seq_' ,
ReadOnly  )

◆ DefineInt() [4/4]

Attr::DefineInt ( seqno ,
'sqno' ,
ReadOnly  )

◆ DefineString() [1/5]

Attr::DefineString ( AttrName ,
'ATNA' ,
Attr::ReadWrite  )

◆ DefineString() [2/5]

Attr::DefineString ( AttrType ,
'ATTY' ,
Attr::ReadWrite  )

◆ DefineString() [3/5]

Attr::DefineString ( Name ,
'Anme' ,
AccessMode::ReadWrite  )

◆ DefineString() [4/5]

Attr::DefineString ( name ,
'name' ,
ReadOnly  )

◆ DefineString() [5/5]

Attr::DefineString ( type ,
'type' ,
ReadOnly  )