DEADSOFTWARE

Completely convert .odc to .txt using Visitor
[odcread.git] / fold.h
1 #ifndef _FOLD_H_
2 #define _FOLD_H_
4 #include <oberon.h>
5 #include <typeregister.h>
6 #include <store.h>
8 namespace odc {
10 class View : public Store {
11 private:
12 static const std::string TYPENAME;
13 static const TypeProxy<View> PROXY;
15 public:
16 View(INTEGER id);
17 static const std::string &getType();
18 static const std::string *getSuper();
19 virtual const std::string &getTypeName() const;
20 virtual void internalize(Reader &reader);
21 };
23 class Fold : public View {
24 private:
25 static const std::string TYPENAME;
26 static const TypeProxy<Fold> PROXY;
28 Store *d_hidden;
29 SHORTCHAR *d_label;
30 bool d_collapsed;
32 public:
33 Fold(INTEGER id);
34 static const std::string &getType();
35 static const std::string *getSuper();
36 virtual const std::string &getTypeName() const;
37 virtual void internalize(Reader &reader);
39 virtual std::string toString();
40 virtual void accept(Visitor &visitor) const;
41 };
43 }
45 #endif // _FOLD_H_