- Timestamp:
- 2017-02-08T18:31:18+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/colservr/source.h
r16310 r31387 62 62 text_t db_filename; 63 63 dbclass *db_ptr; 64 text_t oaidb_filename; 65 dbclass *oaidb_ptr; 64 66 65 67 searchclass *textsearchptr; … … 69 71 virtual ~sourceclass (); 70 72 71 // the DB ptr remains the responsibility of the calling code 73 // the DB ptrs remain the responsibility of the calling code 74 // but as the db_ptr is deleted by this source object, the oaidb_ptr will be deleted by this object too 72 75 void set_db_ptr (dbclass *db_ptr_arg) { db_ptr = db_ptr_arg; } 76 void set_oaidb_ptr (dbclass *oaidb_ptr_arg) { oaidb_ptr = oaidb_ptr_arg; } 73 77 74 78 // the textsearchptr remains the responsibility of the calling code … … 86 90 comerror_t &err, ostream &logout); 87 91 88 // get_metadata fills out the metadata if possible , if it is not responsable89 // for the given OID then it will return false.92 // get_metadata fills out the metadata if possible. 93 // If it is not responsible for the given OID then it will return false. 90 94 virtual bool get_metadata (const text_t &requestParams, const text_t &refParams, 91 95 bool getParents, const text_tset &fields, 92 96 const text_t &OID, MetadataInfo_tmap &metadata, 93 comerror_t &err, ostream &logout); 97 comerror_t &err, ostream &logout, bool append); 98 99 // get_oai_metadata fills out the metadata from the oai_db if possible 100 // if it is not responsible for the given OID then it will return false. 101 virtual bool get_oai_metadata (const text_t &requestParams, const text_t &refParams, 102 bool getParents, const text_tset &fields, 103 const text_t &OID, text_t &deleted_status, 104 MetadataInfo_tmap &metadata, comerror_t &err, ostream &logout); 94 105 95 106 virtual bool get_document (const text_t &OID, text_t &doc, … … 101 112 text_t resolve_db_filename(const text_t& idx, 102 113 const text_t& file_ext); 114 text_t resolve_oaidb_filename(const text_t& file_ext); 115 text_t getcollectionpath(); 103 116 104 117 };
Note:
See TracChangeset
for help on using the changeset viewer.