summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a5ad6c0)
raw | patch | inline | side by side (parent: a5ad6c0)
author | Gert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl> | |
Wed, 16 Nov 2011 20:05:35 +0000 (20:05 +0000) | ||
committer | Gert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl> | |
Wed, 16 Nov 2011 20:05:35 +0000 (20:05 +0000) |
store/Make.inc | patch | blob | history | |
store/containerModel.cc | [new file with mode: 0644] | patch | blob |
store/elem.cc | [new file with mode: 0644] | patch | blob |
store/model.cc | [new file with mode: 0644] | patch | blob |
store/store.cc | patch | blob | history |
diff --git a/store/Make.inc b/store/Make.inc
index 0316a578c28edaf32702a39306f889b99bafea93..f77bb5f025b66ee424ef3c27d9163e7567170185 100644 (file)
--- a/store/Make.inc
+++ b/store/Make.inc
-SRCS += store/store.cc
+SRCS += $(wildcard store/*.cc)
diff --git a/store/containerModel.cc b/store/containerModel.cc
--- /dev/null
+++ b/store/containerModel.cc
@@ -0,0 +1,20 @@
+#include "store/module.ih"
+
+namespace odc {
+
+const std::string ContainerModel::TYPENAME("Containers.Model^");
+const TypeProxy<ContainerModel, Model> ContainerModel::PROXY;
+
+ContainerModel::ContainerModel(INTEGER id) : Model(id) {}
+
+const std::string &ContainerModel::getTypeName() const {
+ return TYPENAME;
+}
+
+void ContainerModel::internalize(Reader &reader) {
+ Model::internalize(reader);
+ if (reader.isCancelled()) return;
+ reader.readVersion(0, 0);
+}
+
+} // namespace odc
diff --git a/store/elem.cc b/store/elem.cc
--- /dev/null
+++ b/store/elem.cc
@@ -0,0 +1,20 @@
+#include "store/module.ih"
+
+namespace odc {
+
+const std::string Elem::TYPENAME("Stores.Elem^");
+const TypeProxy<Elem, Store> Elem::PROXY;
+
+Elem::Elem(INTEGER id) : Store(id) {}
+
+const std::string &Elem::getTypeName() const {
+ return TYPENAME;
+}
+
+void Elem::internalize(Reader &reader) {
+ Store::internalize(reader);
+ if (reader.isCancelled()) return;
+ reader.readVersion(0, 0);
+}
+
+} // namespace odc
diff --git a/store/model.cc b/store/model.cc
--- /dev/null
+++ b/store/model.cc
@@ -0,0 +1,20 @@
+#include "store/module.ih"
+
+namespace odc {
+
+const std::string Model::TYPENAME("Models.Model^");
+const TypeProxy<Model, Elem> Model::PROXY;
+
+Model::Model(INTEGER id) : Elem(id) {}
+
+const std::string &Model::getTypeName() const {
+ return TYPENAME;
+}
+
+void Model::internalize(Reader &reader) {
+ Elem::internalize(reader);
+ if (reader.isCancelled()) return;
+ reader.readVersion(0, 0);
+}
+
+} // namespace odc
diff --git a/store/store.cc b/store/store.cc
index e9dbb932b9d6097817485c712fba5155a8c76165..69ca4f8c2bb1586a32c3d794a776af8a5b7ac36d 100644 (file)
--- a/store/store.cc
+++ b/store/store.cc
void Store::accept(Visitor &visitor) const {}
-const std::string Elem::TYPENAME("Stores.Elem^");
-const TypeProxy<Elem, Store> Elem::PROXY;
-
-Elem::Elem(INTEGER id) : Store(id) {}
-
-const std::string &Elem::getTypeName() const {
- return TYPENAME;
-}
-
-void Elem::internalize(Reader &reader) {
- Store::internalize(reader);
- if (reader.isCancelled()) return;
- reader.readVersion(0, 0);
-}
-
-const std::string Model::TYPENAME("Models.Model^");
-const TypeProxy<Model, Elem> Model::PROXY;
-
-Model::Model(INTEGER id) : Elem(id) {}
-
-const std::string &Model::getTypeName() const {
- return TYPENAME;
-}
-
-void Model::internalize(Reader &reader) {
- Elem::internalize(reader);
- if (reader.isCancelled()) return;
- reader.readVersion(0, 0);
-}
-
-const std::string ContainerModel::TYPENAME("Containers.Model^");
-const TypeProxy<ContainerModel, Model> ContainerModel::PROXY;
-
-ContainerModel::ContainerModel(INTEGER id) : Model(id) {}
-
-const std::string &ContainerModel::getTypeName() const {
- return TYPENAME;
-}
-
-void ContainerModel::internalize(Reader &reader) {
- Model::internalize(reader);
- if (reader.isCancelled()) return;
- reader.readVersion(0, 0);
-}
-
} // namespace odc