Changeset 15417 for gsdl/trunk/src/recpt/OIDtools.h
- Timestamp:
- 2008-05-13T14:44:35+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/OIDtools.h
r11259 r15417 64 64 bool has_children (const text_t &OID, const text_t &collection, const text_t &lang, 65 65 recptproto *collectproto, ostream &logout); 66 bool has_text(const text_t &OID, const text_t &collection, const text_t &lang,67 recptproto *collectproto, ostream &logout);68 69 inline bool has_text(MetadataInfo_tmap& metadata)70 {71 if (metadata["hastxt"].values.size() > 0) {72 return metadata["hastxt"].values[0].getint() != 0;73 }74 return false;75 }76 77 inline bool has_children(MetadataInfo_tmap& metadata)78 {79 if (metadata["haschildren"].values.size() > 0) {80 return metadata["haschildren"].values[0].getint() != 0;81 }82 return false;83 }84 66 85 67 // get_children does a protocol call and returns (in response) the OIDs and
Note:
See TracChangeset
for help on using the changeset viewer.