source: main/trunk/greenstone2/runtime-src/src/oaiservr/rfc1807.h@ 22286

Last change on this file since 22286 was 18895, checked in by kjdon, 15 years ago

added is_valid_element to metaformat, which checks elementSet for the element name. metaformat subclass constructors must set up elementSet. Currently they do this in the code. would be good if it could read in from a file eventually, maybe?? When metaformat is outputting the m,etadata, it checks whether the element is valid before outputting. otherwise it will invalidate the response as it won't conform to the schema. also, changed where we lowercased the entire name to lowercasing only the first letter - some qdc fields have an internal upper case letter.

  • Property svn:keywords set to Author Date Id Revision
File size: 460 bytes
Line 
1#include "metaformat.h"
2
3class rfc1807 : public metaformat {
4 protected:
5 void output_metadata_header(ostream &output);
6 virtual void output_metadata_footer(ostream &output);
7 public:
8 rfc1807();
9 virtual const text_t formatName();
10 virtual const text_t formatPrefix();
11 virtual bool output_record(ostream &output, recptproto *protocol, const text_t &collection,
12 const text_t &record_OID);
13 virtual bool output_formatdata(ostream &output);
14};
Note: See TracBrowser for help on using the repository browser.