DEADSOFTWARE

Split store
authorGert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl>
Wed, 16 Nov 2011 20:05:35 +0000 (20:05 +0000)
committerGert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl>
Wed, 16 Nov 2011 20:05:35 +0000 (20:05 +0000)
store/Make.inc
store/containerModel.cc [new file with mode: 0644]
store/elem.cc [new file with mode: 0644]
store/model.cc [new file with mode: 0644]
store/store.cc

index 0316a578c28edaf32702a39306f889b99bafea93..f77bb5f025b66ee424ef3c27d9163e7567170185 100644 (file)
@@ -1 +1 @@
-SRCS += store/store.cc
+SRCS += $(wildcard store/*.cc)
diff --git a/store/containerModel.cc b/store/containerModel.cc
new file mode 100644 (file)
index 0000000..6ae0196
--- /dev/null
@@ -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
new file mode 100644 (file)
index 0000000..f1495d9
--- /dev/null
@@ -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
new file mode 100644 (file)
index 0000000..9a689d0
--- /dev/null
@@ -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
index e9dbb932b9d6097817485c712fba5155a8c76165..69ca4f8c2bb1586a32c3d794a776af8a5b7ac36d 100644 (file)
@@ -39,49 +39,4 @@ std::string Store::toString() {
 
 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