Nebula
Loading...
Searching...
No Matches
intattrid.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "attrid.h"
13
14//------------------------------------------------------------------------------
15namespace Attr
16{
17class IntAttrId : public AttrId
18{
19public:
21 IntAttrId(const AttrId& rhs);
25 IntAttrId(const Util::String& rhs);
27 IntAttrId(const Util::FourCC& rhs);
29 bool operator==(const IntAttrId& rhs) const;
31 bool operator!=(const IntAttrId& rhs) const;
32};
33
34//------------------------------------------------------------------------------
37inline
39 AttrId(rhs)
40{
41 // empty
42}
43
44//------------------------------------------------------------------------------
47inline
49 AttrId(&rhs)
50{
51 // empty
52}
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
96class Int64AttrId : public AttrId
97{
98public:
100 Int64AttrId(const AttrId& rhs);
104 Int64AttrId(const Util::String& rhs);
106 Int64AttrId(const Util::FourCC& rhs);
108 bool operator==(const Int64AttrId& rhs) const;
110 bool operator!=(const Int64AttrId& rhs) const;
111};
112
113//------------------------------------------------------------------------------
116inline
118 AttrId(rhs)
119{
120 // empty
121}
122
123//------------------------------------------------------------------------------
126inline
132
133//------------------------------------------------------------------------------
136inline
142
143//------------------------------------------------------------------------------
146inline
152
153//------------------------------------------------------------------------------
156inline
157bool
159{
160 n_assert((0 != this->defPtr) && (0 != rhs.defPtr));
161 return (this->defPtr == rhs.defPtr);
162}
163
164//------------------------------------------------------------------------------
167inline
168bool
170{
171 n_assert((0 != this->defPtr) && (0 != rhs.defPtr));
172 return (this->defPtr != rhs.defPtr);
173}
174
175} // namespace Attr
176//------------------------------------------------------------------------------
AttrId()
default constructor
Definition attrid.h:106
ValueType GetValueType() const
get value type
Definition attrid.h:319
const AttributeDefinitionBase * defPtr
Definition attrid.h:99
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
Int64AttrId(const AttrId &rhs)
construct from generic attribute id
Definition intattrid.h:117
bool operator!=(const Int64AttrId &rhs) const
inequality operator
Definition intattrid.h:169
bool operator==(const Int64AttrId &rhs) const
equality operator
Definition intattrid.h:158
bool operator!=(const IntAttrId &rhs) const
inequality operator
Definition intattrid.h:90
bool operator==(const IntAttrId &rhs) const
equality operator
Definition intattrid.h:79
IntAttrId(const AttrId &rhs)
construct from generic attribute id
Definition intattrid.h:38
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
@ IntType
Definition valuetype.h:25
@ Int64Type
Definition valuetype.h:27
Nebula's universal string class.
Definition String.cs:8