#include <IfdStrKey.h>
|
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
} |
|
enum | { _nHashBuckets = 1031
} |
|
enum | keyKind {
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 |
|
keyKind | _myKeyKind |
|
int | _myCardinality |
|
union { |
int intVal |
|
unsigned int uintVal |
|
char * strVal |
|
}; | |
|
union { |
int intVal |
|
unsigned int uintVal |
|
char * strVal |
|
}; | |
|
◆ anonymous enum
◆ anonymous enum
◆ IfdStrKey() [1/4]
IfdStrKey::IfdStrKey |
( |
const char * |
s | ) |
|
Definition at line 28 of file IfdStrKey.cxx.
32
33{
34
35
36
37
38 register size_t strSize = strlen(
s)+1;
39
40
41
42
43
44
46 strcpy(_stringBuf,
s);
48 _onHeap = false;
49 } else {
50 strVal =
new char[ strSize ];
52 _onHeap = true;
53 }
54
55 enum {
56 MaxChar = 64
57 };
58
60
62 while ( (
s[
n] !=
'\0') && (
n < MaxChar) ) {
65 }
66}
◆ IfdStrKey() [2/4]
IfdStrKey::IfdStrKey |
( |
const std::string & |
s | ) |
|
Definition at line 70 of file IfdStrKey.cxx.
74
75{
76 using std::string;
77 const char*
s = str.c_str();
78 register size_t strSize = str.size()+1;
79
80
81
82
83
84
85
86
88 strcpy(_stringBuf,
s);
90 _onHeap = false;
91 } else {
92 strVal =
new char[ strSize ];
94 _onHeap = true;
95 }
96
97 enum {
98 MaxChar = 64
99 };
100
102
104 while ( (
s[
n] !=
'\0') && (
n < MaxChar) ) {
107 }
108}
◆ ~IfdStrKey() [1/2]
IfdStrKey::~IfdStrKey |
( |
| ) |
|
|
virtual |
◆ IfdStrKey() [3/4]
IfdStrKey::IfdStrKey |
( |
const char * |
s | ) |
|
◆ IfdStrKey() [4/4]
IfdStrKey::IfdStrKey |
( |
const std::string & |
s | ) |
|
◆ ~IfdStrKey() [2/2]
virtual IfdStrKey::~IfdStrKey |
( |
| ) |
|
|
virtual |
◆ asString() [1/2]
const char * IfdStrKey::asString |
( |
void |
| ) |
const |
|
inline |
◆ asString() [2/2]
const char * IfdStrKey::asString |
( |
void |
| ) |
const |
|
inline |
◆ clone() [1/2]
IfdKey * IfdStrKey::clone |
( |
void |
| ) |
const |
|
virtual |
◆ clone() [2/2]
virtual IfdKey * IfdStrKey::clone |
( |
void |
| ) |
const |
|
virtual |
◆ operator<() [1/2]
int IfdStrKey::operator< |
( |
const IfdKey & |
k | ) |
const |
|
virtual |
Definition at line 176 of file IfdStrKey.cxx.
177 {
178
180}
IfdKey::keyKind getKeyKind(void) const
◆ operator<() [2/2]
virtual int IfdStrKey::operator< |
( |
const IfdKey & |
k | ) |
const |
|
virtual |
◆ operator==() [1/2]
int IfdStrKey::operator== |
( |
const IfdKey & |
k | ) |
const |
|
virtual |
Implements IfdKey.
Definition at line 156 of file IfdStrKey.cxx.
156 {
157
158
159
161
162
163
166 while (*s1 == *s2++) {
167 if ( *s1++ == '\0') return 1;
168 }
169 }
170
171 return 0;
172 }
◆ operator==() [2/2]
virtual int IfdStrKey::operator== |
( |
const IfdKey & |
k | ) |
const |
|
virtual |
◆ print() [1/2]
virtual void IfdStrKey::print |
( |
std::ostream & |
o | ) |
const |
|
virtual |
◆ print() [2/2]
virtual void IfdStrKey::print |
( |
std::ostream & |
o | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: