Explorar o código

Move serialization factory classes to json sub folder

Patrick-Christopher Mattulat %!s(int64=3) %!d(string=hai) anos
pai
achega
f41b12c365
Modificáronse 26 ficheiros con 54 adicións e 54 borrados
  1. 16 16
      CMakeLists.txt
  2. 1 1
      include/ls_std/factory/serialization/json/SerializableJSONFactory.hpp
  3. 1 1
      include/ls_std/factory/serialization/json/boxing/SerializableJSONBooleanFactory.hpp
  4. 1 1
      include/ls_std/factory/serialization/json/boxing/SerializableJSONDoubleFactory.hpp
  5. 1 1
      include/ls_std/factory/serialization/json/boxing/SerializableJSONFloatFactory.hpp
  6. 1 1
      include/ls_std/factory/serialization/json/boxing/SerializableJSONIntegerFactory.hpp
  7. 1 1
      include/ls_std/factory/serialization/json/boxing/SerializableJSONLongFactory.hpp
  8. 1 1
      include/ls_std/factory/serialization/json/boxing/SerializableJSONStringFactory.hpp
  9. 1 1
      include/ls_std/factory/serialization/json/event/SerializableJSONEventFactory.hpp
  10. 8 8
      include/ls_std/ls_std.hpp
  11. 8 8
      source/ls_std/factory/serialization/json/SerializableJSONFactory.cpp
  12. 1 1
      source/ls_std/factory/serialization/json/boxing/SerializableJSONBooleanFactory.cpp
  13. 1 1
      source/ls_std/factory/serialization/json/boxing/SerializableJSONDoubleFactory.cpp
  14. 1 1
      source/ls_std/factory/serialization/json/boxing/SerializableJSONFloatFactory.cpp
  15. 1 1
      source/ls_std/factory/serialization/json/boxing/SerializableJSONIntegerFactory.cpp
  16. 1 1
      source/ls_std/factory/serialization/json/boxing/SerializableJSONLongFactory.cpp
  17. 1 1
      source/ls_std/factory/serialization/json/boxing/SerializableJSONStringFactory.cpp
  18. 1 1
      source/ls_std/factory/serialization/json/event/SerializableJSONEventFactory.cpp
  19. 0 0
      test/cases/factory/serialization/json/SerializableFactoryTest.cpp
  20. 1 1
      test/cases/factory/serialization/json/boxing/SerializableJSONBooleanFactoryTest.cpp
  21. 1 1
      test/cases/factory/serialization/json/boxing/SerializableJSONDoubleFactoryTest.cpp
  22. 1 1
      test/cases/factory/serialization/json/boxing/SerializableJSONFloatFactoryTest.cpp
  23. 1 1
      test/cases/factory/serialization/json/boxing/SerializableJSONIntegerFactoryTest.cpp
  24. 1 1
      test/cases/factory/serialization/json/boxing/SerializableJSONLongFactoryTest.cpp
  25. 1 1
      test/cases/factory/serialization/json/boxing/SerializableJSONStringFactoryTest.cpp
  26. 1 1
      test/cases/factory/serialization/json/event/SerializableJSONEventFactoryTest.cpp

+ 16 - 16
CMakeLists.txt

@@ -98,14 +98,14 @@ set(SOURCE_FILES
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KVDocument.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KVParser.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KVReader.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/SerializableJSONFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/boxing/SerializableJSONBooleanFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/boxing/SerializableJSONDoubleFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/boxing/SerializableJSONFloatFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/boxing/SerializableJSONIntegerFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/boxing/SerializableJSONLongFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/boxing/SerializableJSONStringFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/event/SerializableJSONEventFactory.cpp)
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/SerializableJSONFactory.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/boxing/SerializableJSONBooleanFactory.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/boxing/SerializableJSONDoubleFactory.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/boxing/SerializableJSONFloatFactory.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/boxing/SerializableJSONIntegerFactory.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/boxing/SerializableJSONLongFactory.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/boxing/SerializableJSONStringFactory.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/event/SerializableJSONEventFactory.cpp)
 
 if (${LS_STD_BUILD_WITH_TESTS})
     set(TEST_FILES
@@ -165,14 +165,14 @@ if (${LS_STD_BUILD_WITH_TESTS})
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/kv/KVDocumentTest.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/kv/KVParserTest.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/kv/KVReaderTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/SerializableFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/boxing/SerializableJSONBooleanFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/boxing/SerializableJSONDoubleFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/boxing/SerializableJSONFloatFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/boxing/SerializableJSONIntegerFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/boxing/SerializableJSONLongFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/boxing/SerializableJSONStringFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/event/SerializableJSONEventFactoryTest.cpp
+            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/SerializableFactoryTest.cpp
+            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/boxing/SerializableJSONBooleanFactoryTest.cpp
+            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/boxing/SerializableJSONDoubleFactoryTest.cpp
+            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/boxing/SerializableJSONFloatFactoryTest.cpp
+            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/boxing/SerializableJSONIntegerFactoryTest.cpp
+            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/boxing/SerializableJSONLongFactoryTest.cpp
+            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/boxing/SerializableJSONStringFactoryTest.cpp
+            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/event/SerializableJSONEventFactoryTest.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/factory/SerializableTestFactory.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/exception/FileNotFoundExceptionTest.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/exception/FileOperationExceptionTest.cpp

+ 1 - 1
include/ls_std/factory/serialization/SerializableJSONFactory.hpp → include/ls_std/factory/serialization/json/SerializableJSONFactory.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2021-04-25
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
include/ls_std/factory/serialization/boxing/SerializableJSONBooleanFactory.hpp → include/ls_std/factory/serialization/json/boxing/SerializableJSONBooleanFactory.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-23
- * Changed:         2021-04-23
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
include/ls_std/factory/serialization/boxing/SerializableJSONDoubleFactory.hpp → include/ls_std/factory/serialization/json/boxing/SerializableJSONDoubleFactory.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2021-04-24
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
include/ls_std/factory/serialization/boxing/SerializableJSONFloatFactory.hpp → include/ls_std/factory/serialization/json/boxing/SerializableJSONFloatFactory.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2021-04-24
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
include/ls_std/factory/serialization/boxing/SerializableJSONIntegerFactory.hpp → include/ls_std/factory/serialization/json/boxing/SerializableJSONIntegerFactory.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2021-04-24
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
include/ls_std/factory/serialization/boxing/SerializableJSONLongFactory.hpp → include/ls_std/factory/serialization/json/boxing/SerializableJSONLongFactory.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2021-04-24
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
include/ls_std/factory/serialization/boxing/SerializableJSONStringFactory.hpp → include/ls_std/factory/serialization/json/boxing/SerializableJSONStringFactory.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2021-04-24
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
include/ls_std/factory/serialization/event/SerializableJSONEventFactory.hpp → include/ls_std/factory/serialization/json/event/SerializableJSONEventFactory.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-30
- * Changed:         2021-04-30
+ * Changed:         2021-05-01
  *
  * */
 

+ 8 - 8
include/ls_std/ls_std.hpp

@@ -93,13 +93,13 @@
 #include "event/EventManager.hpp"
 
 #include "factory/IFactory.hpp"
-#include "factory/serialization/SerializableJSONFactory.hpp"
-#include "factory/serialization/boxing/SerializableJSONBooleanFactory.hpp"
-#include "factory/serialization/boxing/SerializableJSONDoubleFactory.hpp"
-#include "factory/serialization/boxing/SerializableJSONFloatFactory.hpp"
-#include "factory/serialization/boxing/SerializableJSONIntegerFactory.hpp"
-#include "factory/serialization/boxing/SerializableJSONLongFactory.hpp"
-#include "factory/serialization/boxing/SerializableJSONStringFactory.hpp"
-#include "factory/serialization/event/SerializableJSONEventFactory.hpp"
+#include "ls_std/factory/serialization/json/SerializableJSONFactory.hpp"
+#include "factory/serialization/json/boxing/SerializableJSONBooleanFactory.hpp"
+#include "factory/serialization/json/boxing/SerializableJSONDoubleFactory.hpp"
+#include "factory/serialization/json/boxing/SerializableJSONFloatFactory.hpp"
+#include "factory/serialization/json/boxing/SerializableJSONIntegerFactory.hpp"
+#include "factory/serialization/json/boxing/SerializableJSONLongFactory.hpp"
+#include "factory/serialization/json/boxing/SerializableJSONStringFactory.hpp"
+#include "factory/serialization/json/event/SerializableJSONEventFactory.hpp"
 
 #endif

+ 8 - 8
source/ls_std/factory/serialization/SerializableJSONFactory.cpp → source/ls_std/factory/serialization/json/SerializableJSONFactory.cpp

@@ -3,23 +3,23 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2021-04-30
+ * Changed:         2021-05-01
  *
  * */
 
-#include <ls_std/factory/serialization/SerializableJSONFactory.hpp>
+#include <ls_std/factory/serialization/json/SerializableJSONFactory.hpp>
 #include <ls_std/boxing/Boolean.hpp>
 #include <ls_std/boxing/Double.hpp>
 #include <ls_std/boxing/Float.hpp>
 #include <ls_std/boxing/Integer.hpp>
 #include <ls_std/boxing/Long.hpp>
 #include <ls_std/boxing/String.hpp>
-#include <ls_std/factory/serialization/boxing/SerializableJSONBooleanFactory.hpp>
-#include <ls_std/factory/serialization/boxing/SerializableJSONDoubleFactory.hpp>
-#include <ls_std/factory/serialization/boxing/SerializableJSONFloatFactory.hpp>
-#include <ls_std/factory/serialization/boxing/SerializableJSONIntegerFactory.hpp>
-#include <ls_std/factory/serialization/boxing/SerializableJSONLongFactory.hpp>
-#include <ls_std/factory/serialization/boxing/SerializableJSONStringFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONBooleanFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONDoubleFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONFloatFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONIntegerFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONLongFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONStringFactory.hpp>
 #include <ls_std/exception/IllegalArgumentException.hpp>
 #include <ls_std/exception/NullPointerException.hpp>
 

+ 1 - 1
source/ls_std/factory/serialization/boxing/SerializableJSONBooleanFactory.cpp → source/ls_std/factory/serialization/json/boxing/SerializableJSONBooleanFactory.cpp

@@ -7,7 +7,7 @@
  *
  * */
 
-#include <ls_std/factory/serialization/boxing/SerializableJSONBooleanFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONBooleanFactory.hpp>
 #include <ls_std/boxing/Boolean.hpp>
 #include <ls_std/serialization/json/boxing/SerializableJSONBoolean.hpp>
 

+ 1 - 1
source/ls_std/factory/serialization/boxing/SerializableJSONDoubleFactory.cpp → source/ls_std/factory/serialization/json/boxing/SerializableJSONDoubleFactory.cpp

@@ -7,7 +7,7 @@
  *
  * */
 
-#include <ls_std/factory/serialization/boxing/SerializableJSONDoubleFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONDoubleFactory.hpp>
 #include <ls_std/boxing/Double.hpp>
 #include <ls_std/serialization/json/boxing/SerializableJSONDouble.hpp>
 

+ 1 - 1
source/ls_std/factory/serialization/boxing/SerializableJSONFloatFactory.cpp → source/ls_std/factory/serialization/json/boxing/SerializableJSONFloatFactory.cpp

@@ -7,7 +7,7 @@
  *
  * */
 
-#include <ls_std/factory/serialization/boxing/SerializableJSONFloatFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONFloatFactory.hpp>
 #include <ls_std/boxing/Float.hpp>
 #include <ls_std/serialization/json/boxing/SerializableJSONFloat.hpp>
 

+ 1 - 1
source/ls_std/factory/serialization/boxing/SerializableJSONIntegerFactory.cpp → source/ls_std/factory/serialization/json/boxing/SerializableJSONIntegerFactory.cpp

@@ -7,7 +7,7 @@
  *
  * */
 
-#include <ls_std/factory/serialization/boxing/SerializableJSONIntegerFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONIntegerFactory.hpp>
 #include <ls_std/boxing/Integer.hpp>
 #include <ls_std/serialization/json/boxing/SerializableJSONInteger.hpp>
 

+ 1 - 1
source/ls_std/factory/serialization/boxing/SerializableJSONLongFactory.cpp → source/ls_std/factory/serialization/json/boxing/SerializableJSONLongFactory.cpp

@@ -7,7 +7,7 @@
  *
  * */
 
-#include <ls_std/factory/serialization/boxing/SerializableJSONLongFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONLongFactory.hpp>
 #include <ls_std/boxing/Long.hpp>
 #include <ls_std/serialization/json/boxing/SerializableJSONLong.hpp>
 

+ 1 - 1
source/ls_std/factory/serialization/boxing/SerializableJSONStringFactory.cpp → source/ls_std/factory/serialization/json/boxing/SerializableJSONStringFactory.cpp

@@ -7,7 +7,7 @@
  *
  * */
 
-#include <ls_std/factory/serialization/boxing/SerializableJSONStringFactory.hpp>
+#include <ls_std/factory/serialization/json/boxing/SerializableJSONStringFactory.hpp>
 #include <ls_std/boxing/String.hpp>
 #include <ls_std/serialization/json/boxing/SerializableJSONString.hpp>
 

+ 1 - 1
source/ls_std/factory/serialization/event/SerializableJSONEventFactory.cpp → source/ls_std/factory/serialization/json/event/SerializableJSONEventFactory.cpp

@@ -7,7 +7,7 @@
  *
  * */
 
-#include <ls_std/factory/serialization/event/SerializableJSONEventFactory.hpp>
+#include <ls_std/factory/serialization/json/event/SerializableJSONEventFactory.hpp>
 #include <ls_std/event/Event.hpp>
 #include <ls_std/serialization/json/event/SerializableJSONEvent.hpp>
 

+ 0 - 0
test/cases/factory/serialization/SerializableFactoryTest.cpp → test/cases/factory/serialization/json/SerializableFactoryTest.cpp


+ 1 - 1
test/cases/factory/serialization/boxing/SerializableJSONBooleanFactoryTest.cpp → test/cases/factory/serialization/json/boxing/SerializableJSONBooleanFactoryTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-23
- * Changed:         2021-04-25
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
test/cases/factory/serialization/boxing/SerializableJSONDoubleFactoryTest.cpp → test/cases/factory/serialization/json/boxing/SerializableJSONDoubleFactoryTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2021-04-24
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
test/cases/factory/serialization/boxing/SerializableJSONFloatFactoryTest.cpp → test/cases/factory/serialization/json/boxing/SerializableJSONFloatFactoryTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-25
- * Changed:         2021-04-25
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
test/cases/factory/serialization/boxing/SerializableJSONIntegerFactoryTest.cpp → test/cases/factory/serialization/json/boxing/SerializableJSONIntegerFactoryTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-25
- * Changed:         2021-04-25
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
test/cases/factory/serialization/boxing/SerializableJSONLongFactoryTest.cpp → test/cases/factory/serialization/json/boxing/SerializableJSONLongFactoryTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-25
- * Changed:         2021-04-25
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
test/cases/factory/serialization/boxing/SerializableJSONStringFactoryTest.cpp → test/cases/factory/serialization/json/boxing/SerializableJSONStringFactoryTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-25
- * Changed:         2021-04-25
+ * Changed:         2021-05-01
  *
  * */
 

+ 1 - 1
test/cases/factory/serialization/event/SerializableJSONEventFactoryTest.cpp → test/cases/factory/serialization/json/event/SerializableJSONEventFactoryTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-30
- * Changed:         2021-04-30
+ * Changed:         2021-05-01
  *
  * */