#include <IfdStrKey.h>
|
| static unsigned int | nHashBuckets (void) |
| static unsigned int | nHashBuckets (void) |
| static unsigned int | nHashBuckets (void) |
| unsigned int | _hashVal |
| enum | { _nHashBuckets = 1031
} |
| enum | keyKind {
intKey
, strKey
, compositeKey
, typeKey
,
odfTypeKey
, intKey
, strKey
, compositeKey
,
typeKey
, odfTypeKey
, intKey
, strKey
,
compositeKey
, typeKey
, odfTypeKey
} |
| enum | { _nHashBuckets = 1031
} |
| enum | keyKind {
intKey
, strKey
, compositeKey
, typeKey
,
odfTypeKey
, intKey
, strKey
, compositeKey
,
typeKey
, odfTypeKey
, intKey
, strKey
,
compositeKey
, typeKey
, odfTypeKey
} |
| enum | { _nHashBuckets = 1031
} |
| enum | keyKind {
intKey
, strKey
, compositeKey
, typeKey
,
odfTypeKey
, intKey
, strKey
, compositeKey
,
typeKey
, odfTypeKey
, intKey
, strKey
,
compositeKey
, typeKey
, odfTypeKey
} |
| | IfdKey (keyKind kind) |
| IfdKey::keyKind | getKeyKind (void) const |
| | IfdKey (keyKind kind) |
| IfdKey::keyKind | getKeyKind (void) const |
| | IfdKey (keyKind kind) |
| IfdKey::keyKind | getKeyKind (void) const |
| keyKind | _myKeyKind |
| int | _myCardinality |
| union { | |
| int intVal | |
| unsigned int uintVal | |
| char * strVal | |
| }; | |
| union { | |
| int intVal | |
| unsigned int uintVal | |
| char * strVal | |
| }; | |
| union { | |
| int intVal | |
| unsigned int uintVal | |
| char * strVal | |
| }; | |
◆ anonymous enum
◆ anonymous enum
◆ anonymous enum
◆ IfdStrKey() [1/6]
| IfdStrKey::IfdStrKey |
( |
const char * | s | ) |
|
Definition at line 29 of file IfdStrKey.cxx.
33
34{
35
36
37
38
39 register size_t strSize = strlen(
s ) + 1;
40
41
42
43
44
45
47 {
48 strcpy( _stringBuf,
s );
50 _onHeap = false;
51 }
52 else
53 {
54 strVal =
new char[strSize];
56 _onHeap = true;
57 }
58
59 enum {
60 MaxChar = 64
61 };
62
64
66 while ( (
s[
n] !=
'\0' ) && (
n < MaxChar ) )
67 {
70 }
71}
Referenced by print().
◆ IfdStrKey() [2/6]
| IfdStrKey::IfdStrKey |
( |
const std::string & | s | ) |
|
Definition at line 75 of file IfdStrKey.cxx.
79
80{
81 using std::string;
82 const char*
s = str.c_str();
83 register size_t strSize = str.size() + 1;
84
85
86
87
88
89
90
91
93 {
94 strcpy( _stringBuf,
s );
96 _onHeap = false;
97 }
98 else
99 {
100 strVal =
new char[strSize];
102 _onHeap = true;
103 }
104
105 enum {
106 MaxChar = 64
107 };
108
110
112 while ( (
s[
n] !=
'\0' ) && (
n < MaxChar ) )
113 {
116 }
117}
◆ ~IfdStrKey() [1/3]
| IfdStrKey::~IfdStrKey |
( |
| ) |
|
|
virtual |
◆ IfdStrKey() [3/6]
| IfdStrKey::IfdStrKey |
( |
const char * | s | ) |
|
◆ IfdStrKey() [4/6]
| IfdStrKey::IfdStrKey |
( |
const std::string & | s | ) |
|
◆ ~IfdStrKey() [2/3]
| virtual IfdStrKey::~IfdStrKey |
( |
| ) |
|
|
virtual |
◆ IfdStrKey() [5/6]
| IfdStrKey::IfdStrKey |
( |
const char * | s | ) |
|
◆ IfdStrKey() [6/6]
| IfdStrKey::IfdStrKey |
( |
const std::string & | s | ) |
|
◆ ~IfdStrKey() [3/3]
| virtual IfdStrKey::~IfdStrKey |
( |
| ) |
|
|
virtual |
◆ asString() [1/3]
| const char * IfdStrKey::asString |
( |
void | | ) |
const |
|
inline |
◆ asString() [2/3]
| const char * IfdStrKey::asString |
( |
void | | ) |
const |
|
inline |
◆ asString() [3/3]
| const char * IfdStrKey::asString |
( |
void | | ) |
const |
|
inline |
◆ clone() [1/3]
| IfdKey * IfdStrKey::clone |
( |
void | | ) |
const |
|
virtual |
◆ clone() [2/3]
| virtual IfdKey * IfdStrKey::clone |
( |
void | | ) |
const |
|
virtual |
◆ clone() [3/3]
| virtual IfdKey * IfdStrKey::clone |
( |
void | | ) |
const |
|
virtual |
◆ operator<() [1/3]
| int IfdStrKey::operator< |
( |
const IfdKey & | k | ) |
const |
|
virtual |
Definition at line 185 of file IfdStrKey.cxx.
185 {
186
188}
IfdKey::keyKind getKeyKind(void) const
◆ operator<() [2/3]
| virtual int IfdStrKey::operator< |
( |
const IfdKey & | k | ) |
const |
|
virtual |
◆ operator<() [3/3]
| virtual int IfdStrKey::operator< |
( |
const IfdKey & | k | ) |
const |
|
virtual |
◆ operator==() [1/3]
| int IfdStrKey::operator== |
( |
const IfdKey & | k | ) |
const |
|
virtual |
Implements IfdKey.
Definition at line 165 of file IfdStrKey.cxx.
165 {
166
167
169 {
170
171
172
175 while ( *s1 == *s2++ )
176 {
177 if ( *s1++ == '\0' ) return 1;
178 }
179 }
180
181 return 0;
182}
◆ operator==() [2/3]
| virtual int IfdStrKey::operator== |
( |
const IfdKey & | k | ) |
const |
|
virtual |
◆ operator==() [3/3]
| virtual int IfdStrKey::operator== |
( |
const IfdKey & | k | ) |
const |
|
virtual |
◆ print() [1/3]
| virtual void IfdStrKey::print |
( |
std::ostream & | o | ) |
const |
|
virtual |
◆ print() [2/3]
| virtual void IfdStrKey::print |
( |
std::ostream & | o | ) |
const |
|
virtual |
◆ print() [3/3]
| virtual void IfdStrKey::print |
( |
std::ostream & | o | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: