|
Last change
on this file since f2efcf was f2efcf, checked in by Saskia Metzler <metzler@…>, 16 years ago |
|
the XYZ parser
|
-
Property mode
set to
100644
|
|
File size:
655 bytes
|
| Rev | Line | |
|---|
| [eb94c1] | 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 |
|
|---|
| [f2efcf] | 15 | /**
|
|---|
| 16 | * General parser which observes the change tracker.
|
|---|
| 17 | */
|
|---|
| [eb94c1] | 18 | class FormatParser : public Observer {
|
|---|
| 19 | public:
|
|---|
| 20 | FormatParser();
|
|---|
| [f2efcf] | 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);
|
|---|
| [eb94c1] | 27 |
|
|---|
| 28 | private:
|
|---|
| [f2efcf] | 29 | std::ostream* saveStream;
|
|---|
| [eb94c1] | 30 | };
|
|---|
| 31 |
|
|---|
| 32 | #endif /* FORMATPARSER_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.