DEADSOFTWARE

fix gcc 4.0
[odcread.git] / store / store.cc
1 #include "store/module.ih"
3 namespace odc {
5 const std::string Store::TYPENAME("Stores.Store^");
6 const TopTypeProxy<Store> Store::PROXY;
8 Store::Store(INTEGER id): d_id(id) {}
10 INTEGER Store::getId() {
11 return d_id;
12 }
14 const std::string &Store::getTypeName() const {
15 return Store::TYPENAME;
16 }
18 TypePath Store::getTypePath() const {
19 TypePath out;
20 calcTypePath(&out, getTypeName());
21 return out;
22 }
24 void Store::calcTypePath(TypePath *path, const std::string &name) const {
25 const std::string *super = TypeRegister::getInstance().get(name)->getSuper();
26 if (super != 0) {
27 calcTypePath(path, *super);
28 }
29 path->push_back(name);
30 }
32 void Store::internalize(Reader &reader) {
33 reader.readVersion(0, 0);
34 }
36 std::string Store::toString() {
37 return getTypeName();
38 }
40 void Store::accept(Visitor &visitor) const {}
42 } // namespace odc