root/trunk/gsdl/src/oaiservr/metaformatters.cpp @ 9608

Revision 9608, 0.8 KB (checked in by kjdon, 15 years ago)

added in x++ -> ++x changes submitted by Emanuel Dejanu

  • Property svn:keywords set to Author Date Id Revision
Line 
1#include "metaformatters.h"
2
3#include "dublincore.h"
4
5metaformatters::metaformatters() {
6  this->addFormat(new dublin_core);
7}
8
9/**
10 * Destructor code for the metaformatters class
11 */
12metaformatters::~metaformatters() {
13  vector<metaformat *>::iterator here = this->formatters.begin();
14  vector<metaformat *>::iterator end = this->formatters.end();
15 
16  // destroy the formatters themselves
17  while (here != end)
18    {
19      delete here->second;
20      ++here;
21    }
22}
23
24bool metaformatters::output_record(ostream &output, recptproto *protocol, text_t & collection, text_t &record_OID, text_t &format) {
25 
26}
27
28metaformat *metaformatters::getFormat(text_t &name)
29{
30  return this->formatters[name];
31}
32
33void metaformatters::addFormat(metaformat *formatter)
34{
35  this->formatters.push_back(formatter->getName(), formatter);
36}
Note: See TracBrowser for help on using the browser.