Nebula
Loading...
Searching...
No Matches
guidattrid.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "attrid.h"
13
14//------------------------------------------------------------------------------
15namespace Attr
16{
17class GuidAttrId : public AttrId
18{
19public:
21 GuidAttrId(const AttrId& rhs);
25 GuidAttrId(const Util::String& rhs);
27 GuidAttrId(const Util::FourCC& rhs);
29 bool operator==(const GuidAttrId& rhs) const;
31 bool operator!=(const GuidAttrId& 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 guid type.
Definition guidattrid.h:18
GuidAttrId(const AttrId &rhs)
construct from generic attribute id
Definition guidattrid.h:38
bool operator==(const GuidAttrId &rhs) const
equality operator
Definition guidattrid.h:79
bool operator!=(const GuidAttrId &rhs) const
inequality operator
Definition guidattrid.h:90
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
@ GuidType
Definition valuetype.h:39
Nebula's universal string class.
Definition string.h:50