#include <IfdStrKey.h>
Definition at line 39 of file IfdStrKey.h.
◆ anonymous enum
◆ IfdStrKey() [1/2]
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/2]
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()
IfdStrKey::~IfdStrKey |
( |
| ) |
|
|
virtual |
◆ asString()
const char * IfdStrKey::asString |
( |
void | | ) |
const |
|
inline |
◆ clone()
IfdKey * IfdStrKey::clone |
( |
void | | ) |
const |
|
virtual |
◆ operator<()
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==()
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 }
◆ print()
void IfdStrKey::print |
( |
std::ostream & | o | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: