Changeset 671
- Timestamp:
- 1999-10-15T12:02:34+13:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/comtypes.cpp
r648 r671 28 28 /* 29 29 $Log$ 30 Revision 1.20 1999/10/14 23:02:34 sjboddie 31 fixed bug in new parent metadata stuff 32 30 33 Revision 1.19 1999/10/10 07:49:35 sjboddie 31 34 - metadata now returns map rather than array … … 234 237 isRef = false; 235 238 values.erase(values.begin(), values.end()); 236 parent = NULL; 237 } 238 239 if (parent != NULL) { 240 delete parent; 241 parent = NULL; 242 } 243 } 244 245 MetadataInfo_t::MetadataInfo_t () {parent=NULL;clear();} 246 247 // copy constructor 248 MetadataInfo_t::MetadataInfo_t (const MetadataInfo_t &x) { 249 params = x.params; 250 isRef = x.isRef; 251 values = x.values; 252 if (x.parent == NULL) parent = NULL; 253 else { 254 parent = new MetadataInfo_t (); 255 *parent = *(x.parent); 256 } 257 } 258 259 MetadataInfo_t::~MetadataInfo_t () { 260 if (parent != NULL) { 261 delete parent; 262 parent = NULL; 263 } 264 } 265 266 MetadataInfo_t &MetadataInfo_t::operator=(const MetadataInfo_t &x) { 267 if (&x != this) { 268 params = x.params; 269 isRef = x.isRef; 270 values = x.values; 271 if (x.parent == NULL) parent = NULL; 272 else { 273 parent = new MetadataInfo_t (); 274 *parent = *(x.parent); 275 } 276 } 277 return *this; 278 } 239 279 240 280 void ResultDocInfo_t::clear () { -
trunk/gsdl/src/recpt/comtypes.h
r648 r671 262 262 // } 263 263 struct MetadataInfo_t { 264 void clear ();265 MetadataInfo_t () {clear();}266 267 264 text_t params; 268 265 bool isRef; 269 266 text_tarray values; 270 267 MetadataInfo_t *parent; 268 269 void clear (); 270 MetadataInfo_t (); 271 MetadataInfo_t (const MetadataInfo_t &x); // copy constructor 272 ~MetadataInfo_t (); 273 MetadataInfo_t &operator=(const MetadataInfo_t &x); 271 274 }; 272 275
Note:
See TracChangeset
for help on using the changeset viewer.