e9dbb932b9d6097817485c712fba5155a8c76165
1 #include "store/module.ih"
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() {
14 const std::string
&Store::getTypeName() const {
15 return Store::TYPENAME
;
18 TypePath
Store::getTypePath() const {
20 calcTypePath(&out
, getTypeName());
24 void Store::calcTypePath(TypePath
*path
, const std::string
&name
) const {
25 const std::string
*super
= TypeRegister::getInstance().get(name
)->getSuper();
27 calcTypePath(path
, *super
);
29 path
->push_back(name
);
32 void Store::internalize(Reader
&reader
) {
33 reader
.readVersion(0, 0);
36 std::string
Store::toString() {
40 void Store::accept(Visitor
&visitor
) const {}
42 const std::string
Elem::TYPENAME("Stores.Elem^");
43 const TypeProxy
<Elem
, Store
> Elem::PROXY
;
45 Elem::Elem(INTEGER id
) : Store(id
) {}
47 const std::string
&Elem::getTypeName() const {
51 void Elem::internalize(Reader
&reader
) {
52 Store::internalize(reader
);
53 if (reader
.isCancelled()) return;
54 reader
.readVersion(0, 0);
57 const std::string
Model::TYPENAME("Models.Model^");
58 const TypeProxy
<Model
, Elem
> Model::PROXY
;
60 Model::Model(INTEGER id
) : Elem(id
) {}
62 const std::string
&Model::getTypeName() const {
66 void Model::internalize(Reader
&reader
) {
67 Elem::internalize(reader
);
68 if (reader
.isCancelled()) return;
69 reader
.readVersion(0, 0);
72 const std::string
ContainerModel::TYPENAME("Containers.Model^");
73 const TypeProxy
<ContainerModel
, Model
> ContainerModel::PROXY
;
75 ContainerModel::ContainerModel(INTEGER id
) : Model(id
) {}
77 const std::string
&ContainerModel::getTypeName() const {
81 void ContainerModel::internalize(Reader
&reader
) {
82 Model::internalize(reader
);
83 if (reader
.isCancelled()) return;
84 reader
.readVersion(0, 0);