From db2f90ee792fba135e9abae836e5ac70072db7fe Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Sun, 19 Jan 2020 11:11:11 +0100
Subject: [PATCH] unit build in container xml interface

---
 alib2xml/src/container/xml/Container.cpp      | 19 +++++++++++++++++++
 alib2xml/src/container/xml/ObjectsDeque.cpp   | 19 -------------------
 alib2xml/src/container/xml/ObjectsDeque.cxx   | 19 +++++++++++++++++++
 alib2xml/src/container/xml/ObjectsList.cpp    | 19 -------------------
 alib2xml/src/container/xml/ObjectsList.cxx    | 19 +++++++++++++++++++
 alib2xml/src/container/xml/ObjectsMap.cpp     | 19 -------------------
 alib2xml/src/container/xml/ObjectsMap.cxx     | 19 +++++++++++++++++++
 .../src/container/xml/ObjectsMultimap.cpp     | 19 -------------------
 .../src/container/xml/ObjectsMultimap.cxx     | 19 +++++++++++++++++++
 alib2xml/src/container/xml/ObjectsPair.cpp    | 19 -------------------
 alib2xml/src/container/xml/ObjectsPair.cxx    | 19 +++++++++++++++++++
 alib2xml/src/container/xml/ObjectsSet.cpp     | 19 -------------------
 alib2xml/src/container/xml/ObjectsSet.cxx     | 19 +++++++++++++++++++
 alib2xml/src/container/xml/ObjectsTree.cpp    | 19 -------------------
 alib2xml/src/container/xml/ObjectsTree.cxx    | 19 +++++++++++++++++++
 alib2xml/src/container/xml/ObjectsTrie.cpp    | 19 -------------------
 alib2xml/src/container/xml/ObjectsTrie.cxx    | 19 +++++++++++++++++++
 alib2xml/src/container/xml/ObjectsVector.cpp  | 19 -------------------
 alib2xml/src/container/xml/ObjectsVector.cxx  | 19 +++++++++++++++++++
 19 files changed, 190 insertions(+), 171 deletions(-)
 create mode 100644 alib2xml/src/container/xml/Container.cpp
 delete mode 100644 alib2xml/src/container/xml/ObjectsDeque.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsDeque.cxx
 delete mode 100644 alib2xml/src/container/xml/ObjectsList.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsList.cxx
 delete mode 100644 alib2xml/src/container/xml/ObjectsMap.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsMap.cxx
 delete mode 100644 alib2xml/src/container/xml/ObjectsMultimap.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsMultimap.cxx
 delete mode 100644 alib2xml/src/container/xml/ObjectsPair.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsPair.cxx
 delete mode 100644 alib2xml/src/container/xml/ObjectsSet.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsSet.cxx
 delete mode 100644 alib2xml/src/container/xml/ObjectsTree.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsTree.cxx
 delete mode 100644 alib2xml/src/container/xml/ObjectsTrie.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsTrie.cxx
 delete mode 100644 alib2xml/src/container/xml/ObjectsVector.cpp
 create mode 100644 alib2xml/src/container/xml/ObjectsVector.cxx

diff --git a/alib2xml/src/container/xml/Container.cpp b/alib2xml/src/container/xml/Container.cpp
new file mode 100644
index 0000000000..555152a702
--- /dev/null
+++ b/alib2xml/src/container/xml/Container.cpp
@@ -0,0 +1,19 @@
+#include <alib/deque>
+#include <alib/list>
+#include <alib/map>
+#include <alib/multimap>
+#include <alib/pair>
+#include <alib/set>
+#include <alib/tree>
+#include <alib/trie>
+#include <alib/vector>
+
+#include "ObjectsDeque.cxx"
+#include "ObjectsList.cxx"
+#include "ObjectsMap.cxx"
+#include "ObjectsMultimap.cxx"
+#include "ObjectsPair.cxx"
+#include "ObjectsSet.cxx"
+#include "ObjectsTree.cxx"
+#include "ObjectsTrie.cxx"
+#include "ObjectsVector.cxx"
diff --git a/alib2xml/src/container/xml/ObjectsDeque.cpp b/alib2xml/src/container/xml/ObjectsDeque.cpp
deleted file mode 100644
index 6a827fadb6..0000000000
--- a/alib2xml/src/container/xml/ObjectsDeque.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Deque.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsDeque.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::deque < object::Object > > ( );
-auto xmlReader = registration::XmlReaderRegister < ext::deque < object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::deque < object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsDeque.cxx b/alib2xml/src/container/xml/ObjectsDeque.cxx
new file mode 100644
index 0000000000..c3cf3ce93e
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsDeque.cxx
@@ -0,0 +1,19 @@
+/*
+ * Deque.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsDeque.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsDeque = registration::XmlWriterRegister < ext::deque < object::Object > > ( );
+auto xmlReaderObjectsDeque = registration::XmlReaderRegister < ext::deque < object::Object > > ( );
+
+auto xmlGroupObjectsDeque = registration::XmlRegisterTypeInGroup < object::Object, ext::deque < object::Object > > ( );
+
+} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsList.cpp b/alib2xml/src/container/xml/ObjectsList.cpp
deleted file mode 100644
index dfd640ae6e..0000000000
--- a/alib2xml/src/container/xml/ObjectsList.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * List.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsList.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::list < object::Object > > ( );
-auto xmlRead = registration::XmlReaderRegister < ext::list < object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::list < object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsList.cxx b/alib2xml/src/container/xml/ObjectsList.cxx
new file mode 100644
index 0000000000..ff05fb035f
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsList.cxx
@@ -0,0 +1,19 @@
+/*
+ * List.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsList.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsList = registration::XmlWriterRegister < ext::list < object::Object > > ( );
+auto xmlReadObjectsList = registration::XmlReaderRegister < ext::list < object::Object > > ( );
+
+auto xmlGroupObjectsList = registration::XmlRegisterTypeInGroup < object::Object, ext::list < object::Object > > ( );
+
+} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsMap.cpp b/alib2xml/src/container/xml/ObjectsMap.cpp
deleted file mode 100644
index 10f0051fd4..0000000000
--- a/alib2xml/src/container/xml/ObjectsMap.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Map.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsMap.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::map < object::Object, object::Object > > ( );
-auto xmlRead = registration::XmlReaderRegister < ext::map < object::Object, object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::map < object::Object, object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsMap.cxx b/alib2xml/src/container/xml/ObjectsMap.cxx
new file mode 100644
index 0000000000..ce5ebc1822
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsMap.cxx
@@ -0,0 +1,19 @@
+/*
+ * Map.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsMap.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsMap = registration::XmlWriterRegister < ext::map < object::Object, object::Object > > ( );
+auto xmlReadObjectsMap = registration::XmlReaderRegister < ext::map < object::Object, object::Object > > ( );
+
+auto xmlGroupObjectsMap = registration::XmlRegisterTypeInGroup < object::Object, ext::map < object::Object, object::Object > > ( );
+
+} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsMultimap.cpp b/alib2xml/src/container/xml/ObjectsMultimap.cpp
deleted file mode 100644
index 7859779073..0000000000
--- a/alib2xml/src/container/xml/ObjectsMultimap.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Multimap.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsMultimap.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::multimap < object::Object, object::Object > > ( );
-auto xmlRead = registration::XmlReaderRegister < ext::multimap < object::Object, object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::multimap < object::Object, object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsMultimap.cxx b/alib2xml/src/container/xml/ObjectsMultimap.cxx
new file mode 100644
index 0000000000..2a33726062
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsMultimap.cxx
@@ -0,0 +1,19 @@
+/*
+ * Multimap.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsMultimap.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsMultimap = registration::XmlWriterRegister < ext::multimap < object::Object, object::Object > > ( );
+auto xmlReadObjectsMultimap = registration::XmlReaderRegister < ext::multimap < object::Object, object::Object > > ( );
+
+auto xmlGroupObjectsMultimap = registration::XmlRegisterTypeInGroup < object::Object, ext::multimap < object::Object, object::Object > > ( );
+
+} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsPair.cpp b/alib2xml/src/container/xml/ObjectsPair.cpp
deleted file mode 100644
index a792ce8ff1..0000000000
--- a/alib2xml/src/container/xml/ObjectsPair.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Pair.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsPair.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::pair < object::Object, object::Object > > ( );
-auto xmlRead = registration::XmlReaderRegister < ext::pair < object::Object, object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::pair < object::Object, object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsPair.cxx b/alib2xml/src/container/xml/ObjectsPair.cxx
new file mode 100644
index 0000000000..80838809dc
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsPair.cxx
@@ -0,0 +1,19 @@
+/*
+ * Pair.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsPair.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsPair = registration::XmlWriterRegister < ext::pair < object::Object, object::Object > > ( );
+auto xmlReadObjectsPair = registration::XmlReaderRegister < ext::pair < object::Object, object::Object > > ( );
+
+auto xmlGroupObjectsPair = registration::XmlRegisterTypeInGroup < object::Object, ext::pair < object::Object, object::Object > > ( );
+
+} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsSet.cpp b/alib2xml/src/container/xml/ObjectsSet.cpp
deleted file mode 100644
index 7cec2f864c..0000000000
--- a/alib2xml/src/container/xml/ObjectsSet.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Set.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsSet.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::set < object::Object > > ( );
-auto xmlRead = registration::XmlReaderRegister < ext::set < object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::set < object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsSet.cxx b/alib2xml/src/container/xml/ObjectsSet.cxx
new file mode 100644
index 0000000000..73c62cae17
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsSet.cxx
@@ -0,0 +1,19 @@
+/*
+ * Set.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsSet.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsSet = registration::XmlWriterRegister < ext::set < object::Object > > ( );
+auto xmlReadObjectsSet = registration::XmlReaderRegister < ext::set < object::Object > > ( );
+
+auto xmlGroupObjectsSet = registration::XmlRegisterTypeInGroup < object::Object, ext::set < object::Object > > ( );
+
+} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsTree.cpp b/alib2xml/src/container/xml/ObjectsTree.cpp
deleted file mode 100644
index 22b6f8d213..0000000000
--- a/alib2xml/src/container/xml/ObjectsTree.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * ObjectsTree.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsTree.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::tree < object::Object > > ( );
-auto xmlRead = registration::XmlReaderRegister < ext::tree < object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::tree < object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsTree.cxx b/alib2xml/src/container/xml/ObjectsTree.cxx
new file mode 100644
index 0000000000..773c2c1849
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsTree.cxx
@@ -0,0 +1,19 @@
+/*
+ * ObjectsTree.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsTree.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsTree = registration::XmlWriterRegister < ext::tree < object::Object > > ( );
+auto xmlReadObjectsTree = registration::XmlReaderRegister < ext::tree < object::Object > > ( );
+
+auto xmlGroupObjectsTree = registration::XmlRegisterTypeInGroup < object::Object, ext::tree < object::Object > > ( );
+
+} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsTrie.cpp b/alib2xml/src/container/xml/ObjectsTrie.cpp
deleted file mode 100644
index 5335ee6b44..0000000000
--- a/alib2xml/src/container/xml/ObjectsTrie.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * ObjectsTrie.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsTrie.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::trie < object::Object, object::Object > > ( );
-auto xmlRead = registration::XmlReaderRegister < ext::trie < object::Object, object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::trie < object::Object, object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsTrie.cxx b/alib2xml/src/container/xml/ObjectsTrie.cxx
new file mode 100644
index 0000000000..38ccebddaa
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsTrie.cxx
@@ -0,0 +1,19 @@
+/*
+ * ObjectsTrie.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsTrie.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsTrie = registration::XmlWriterRegister < ext::trie < object::Object, object::Object > > ( );
+auto xmlReadObjectsTrie = registration::XmlReaderRegister < ext::trie < object::Object, object::Object > > ( );
+
+auto xmlGroupObjectsTrie = registration::XmlRegisterTypeInGroup < object::Object, ext::trie < object::Object, object::Object > > ( );
+
+} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsVector.cpp b/alib2xml/src/container/xml/ObjectsVector.cpp
deleted file mode 100644
index 641d350df1..0000000000
--- a/alib2xml/src/container/xml/ObjectsVector.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Vector.cpp
- *
- * Created on: Apr 1, 2013
- * Author: Jan Travnicek
- */
-
-#include "ObjectsVector.h"
-
-#include <registration/XmlRegistration.hpp>
-
-namespace {
-
-auto xmlWrite = registration::XmlWriterRegister < ext::vector < object::Object > > ( );
-auto xmlRead = registration::XmlReaderRegister < ext::vector < object::Object > > ( );
-
-auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, ext::vector < object::Object > > ( );
-
-} /* namespace */
diff --git a/alib2xml/src/container/xml/ObjectsVector.cxx b/alib2xml/src/container/xml/ObjectsVector.cxx
new file mode 100644
index 0000000000..57aa8f78b0
--- /dev/null
+++ b/alib2xml/src/container/xml/ObjectsVector.cxx
@@ -0,0 +1,19 @@
+/*
+ * Vector.cpp
+ *
+ * Created on: Apr 1, 2013
+ * Author: Jan Travnicek
+ */
+
+#include "ObjectsVector.h"
+
+#include <registration/XmlRegistration.hpp>
+
+namespace {
+
+auto xmlWriteObjectsVector = registration::XmlWriterRegister < ext::vector < object::Object > > ( );
+auto xmlReadObjectsVector = registration::XmlReaderRegister < ext::vector < object::Object > > ( );
+
+auto xmlGroupObjectsVector = registration::XmlRegisterTypeInGroup < object::Object, ext::vector < object::Object > > ( );
+
+} /* namespace */
-- 
GitLab