Nebula
Loading...
Searching...
No Matches
stringattrid.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "stringattrid.h"
13
14//------------------------------------------------------------------------------
15namespace Attr
16{
17class StringAttrId : public AttrId
18{
19public:
21 StringAttrId(const AttrId& rhs);
25 StringAttrId(const Util::String& rhs);
27 StringAttrId(const Util::FourCC& rhs);
29 bool operator==(const StringAttrId& rhs) const;
31 bool operator!=(const StringAttrId& rhs) const;
32};
33
34//------------------------------------------------------------------------------
37inline
39 AttrId(rhs)
40{
41 // empty
42}
43
44//------------------------------------------------------------------------------
47inline
53
54//------------------------------------------------------------------------------
57inline
63
64//------------------------------------------------------------------------------
67inline
73
74//------------------------------------------------------------------------------
77inline
78bool
80{
81 n_assert((0 != this->defPtr) && (0 != rhs.defPtr));
82 return (this->defPtr == rhs.defPtr);
83}
84
85//------------------------------------------------------------------------------
88inline
89bool
91{
92 n_assert((0 != this->defPtr) && (0 != rhs.defPtr));
93 return (this->defPtr != rhs.defPtr);
94}
95
96} // namespace Attr
97//------------------------------------------------------------------------------
An attribute ID is used to carry attribute types (no values) around.
Definition attrid.h:20
ValueType GetValueType() const
get value type
Definition attrid.h:315
const AttributeDefinitionBase * defPtr
Definition attrid.h:95
static const AttributeDefinitionBase * FindByName(const Util::String &n)
find by name
Definition attributedefinitionbase.h:166
static const AttributeDefinitionBase * FindByFourCC(const Util::FourCC &fcc)
find by FourCC
Definition attributedefinitionbase.h:184
This extends the typeless AttributeDefinitionBase class by a typed template class,...
Definition attributedefinition.h:20
Typed attribute id for string type.
Definition stringattrid.h:18
StringAttrId(const AttrId &rhs)
construct from generic attribute id
Definition stringattrid.h:38
bool operator!=(const StringAttrId &rhs) const
inequality operator
Definition stringattrid.h:90
bool operator==(const StringAttrId &rhs) const
equality operator
Definition stringattrid.h:79
A four-character-code is a quasi-human-readable 32-bit-id.
Definition fourcc.h:19
#define n_assert(exp)
Definition debug.h:50
Definition accessmode.h:13
@ StringType
Definition valuetype.h:35
Nebula's universal string class.
Definition String.cs:8