- Timestamp:
- 2013-06-04T11:05:08+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/oaiservr/oaiconfig.h
r23233 r27528 39 39 text_t setDescription; // A display description for the set (collection) 40 40 text_tmap fieldMap; // maps from OAI name to GSDL name 41 text_tarray superCollectList; // a list of all super collections this belongs to 41 42 }; 42 43 43 44 typedef map<text_t, oaicollectconfig *, lttext_t> oaicollectmap; 45 46 class oaisupercollectconfig { 47 public: 48 oaisupercollectconfig(const text_t &supercollectionname) { this->supercollection = supercollectionname; } 49 text_t supercollection; 50 text_t setName; // A display name for the set (supercollection) 51 text_t setDescription; // A display description for the set (supercollection) 52 text_tarray collectionList; // a list of collections contained in this super collection 53 }; 54 55 typedef map<text_t, oaisupercollectconfig *, lttext_t> oaisupercollectmap; 56 44 57 45 58 class oaiconfig : configurable { … … 50 63 virtual void configure(const text_t &key, const text_tarray &cfgline); 51 64 text_tarray & getCollectionsList() { return this->collectList; } 65 text_tarray & getSuperCollectionsList() { return this->superCollectList; } 66 text_tarray & getSuperCollectionCollections(const text_t super_coll) { 67 return this->superCollectMap[super_coll]->collectionList; 68 } 69 text_tarray getSuperCollectionsForThisCollection(const text_t &collection); 52 70 text_tset & getMetadataSet() { return this->metadataSet; } 53 71 text_t getMapping(const text_t &collection, const text_t &collectfield); … … 86 104 oaicollectmap collectMap; // The configuration of collections 87 105 text_t collection; // Used to track which collection is being configured 88 106 text_tarray superCollectList; //a list of super collections. may be empty 107 oaisupercollectmap superCollectMap; // The configuration of the super collections 89 108 }; 90 109 #endif
Note:
See TracChangeset
for help on using the changeset viewer.