Last change
on this file since 9608 was 9608, checked in by kjdon, 19 years ago |
added in x++ -> ++x changes submitted by Emanuel Dejanu
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
819 bytes
|
Line | |
---|
1 | #include "metaformatters.h"
|
---|
2 |
|
---|
3 | #include "dublincore.h"
|
---|
4 |
|
---|
5 | metaformatters::metaformatters() {
|
---|
6 | this->addFormat(new dublin_core);
|
---|
7 | }
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * Destructor code for the metaformatters class
|
---|
11 | */
|
---|
12 | metaformatters::~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 |
|
---|
24 | bool metaformatters::output_record(ostream &output, recptproto *protocol, text_t & collection, text_t &record_OID, text_t &format) {
|
---|
25 |
|
---|
26 | }
|
---|
27 |
|
---|
28 | metaformat *metaformatters::getFormat(text_t &name)
|
---|
29 | {
|
---|
30 | return this->formatters[name];
|
---|
31 | }
|
---|
32 |
|
---|
33 | void metaformatters::addFormat(metaformat *formatter)
|
---|
34 | {
|
---|
35 | this->formatters.push_back(formatter->getName(), formatter);
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.