Last change
on this file since 2e06c4 was f2efcf, checked in by Saskia Metzler <metzler@…>, 15 years ago |
the XYZ parser
|
-
Property mode
set to
100644
|
File size:
655 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * FormatParser.hpp
|
---|
3 | *
|
---|
4 | * Created on: Mar 1, 2010
|
---|
5 | * Author: metzler
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef FORMATPARSER_HPP_
|
---|
9 | #define FORMATPARSER_HPP_
|
---|
10 |
|
---|
11 | #include "Patterns/Observer.hpp"
|
---|
12 | #include "ChangeTracker.hpp"
|
---|
13 | #include "parser.hpp"
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * General parser which observes the change tracker.
|
---|
17 | */
|
---|
18 | class FormatParser : public Observer {
|
---|
19 | public:
|
---|
20 | FormatParser();
|
---|
21 | virtual ~FormatParser();
|
---|
22 | virtual void save(std::ostream* file)=0;
|
---|
23 | virtual void load(std::istream* file)=0;
|
---|
24 | void setOstream(std::ostream* file);
|
---|
25 | void update(Observable *publisher);
|
---|
26 | void subjectKilled(Observable *publisher);
|
---|
27 |
|
---|
28 | private:
|
---|
29 | std::ostream* saveStream;
|
---|
30 | };
|
---|
31 |
|
---|
32 | #endif /* FORMATPARSER_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.