Browse Source

Add dynamic goal to "io" module

Patrick-Christopher Mattulat 2 years ago
parent
commit
1294af3bc4

+ 3 - 2
include/ls_std/io/File.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -16,6 +16,7 @@
 #include <list>
 #include <ctime>
 #include <regex>
+#include <ls_std/os/dynamic_goal.hpp>
 
 #if defined(unix) || defined(__APPLE__)
 
@@ -35,7 +36,7 @@ namespace ls
   {
     namespace io
     {
-      class File : public ls::std::core::Class
+      class DYNAMIC_GOAL File : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/FileOutputStream.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-20
- * Changed:         2022-05-19
+ * Changed:         2022-07-01
  *
  * */
 
@@ -14,6 +14,7 @@
 #include "File.hpp"
 #include <ls_std/core/interface/IWriter.hpp>
 #include <fstream>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -21,7 +22,7 @@ namespace ls
   {
     namespace io
     {
-      class FileOutputStream : public ls::std::core::Class, public ls::std::core::interface_type::IWriter
+      class DYNAMIC_GOAL FileOutputStream : public ls::std::core::Class, public ls::std::core::interface_type::IWriter
       {
         public:
 

+ 3 - 2
include/ls_std/io/FilePathSeparator.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -11,6 +11,7 @@
 #define FILE_PATH_SEPARATOR_HPP
 
 #include <string>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -18,7 +19,7 @@ namespace ls
   {
     namespace io
     {
-      class FilePathSeparator
+      class DYNAMIC_GOAL FilePathSeparator
       {
         public:
 

+ 3 - 2
include/ls_std/io/FilePathSeparatorMatch.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -11,6 +11,7 @@
 #define LS_STD_FILE_PATH_MATCH_HPP
 
 #include "FilePathSeparator.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -18,7 +19,7 @@ namespace ls
   {
     namespace io
     {
-      struct FilePathSeparatorMatch
+      struct DYNAMIC_GOAL FilePathSeparatorMatch
       {
         bool operator()(char _char) const
         {

+ 3 - 2
include/ls_std/io/FileReader.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2022-05-19
+ * Changed:         2022-07-01
  *
  * */
 
@@ -13,6 +13,7 @@
 #include <ls_std/core/Class.hpp>
 #include "File.hpp"
 #include <ls_std/core/interface/IReader.hpp>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -20,7 +21,7 @@ namespace ls
   {
     namespace io
     {
-      class FileReader : public ls::std::core::Class, public ls::std::core::interface_type::IReader
+      class DYNAMIC_GOAL FileReader : public ls::std::core::Class, public ls::std::core::interface_type::IReader
       {
         public:
 

+ 3 - 2
include/ls_std/io/FileWriter.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2022-05-19
+ * Changed:         2022-07-01
  *
  * */
 
@@ -13,6 +13,7 @@
 #include <ls_std/core/Class.hpp>
 #include <ls_std/core/interface/IWriter.hpp>
 #include "File.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -20,7 +21,7 @@ namespace ls
   {
     namespace io
     {
-      class FileWriter : public ls::std::core::Class, public ls::std::core::interface_type::IWriter
+      class DYNAMIC_GOAL FileWriter : public ls::std::core::Class, public ls::std::core::interface_type::IWriter
       {
         public:
 

+ 3 - 2
include/ls_std/io/NewLine.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-18
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -11,6 +11,7 @@
 #define LS_STD_NEW_LINE_HPP
 
 #include <string>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -18,7 +19,7 @@ namespace ls
   {
     namespace io
     {
-      class NewLine
+      class DYNAMIC_GOAL NewLine
       {
         public:
 

+ 3 - 2
include/ls_std/io/StandardOutputWriter.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-06
- * Changed:         2022-05-19
+ * Changed:         2022-07-01
  *
  * */
 
@@ -11,6 +11,7 @@
 #define LS_STD_STANDARD_OUTPUT_WRITER_HPP
 
 #include <ls_std/core/interface/IWriter.hpp>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -18,7 +19,7 @@ namespace ls
   {
     namespace io
     {
-      class StandardOutputWriter : public ls::std::core::interface_type::IWriter
+      class DYNAMIC_GOAL StandardOutputWriter : public ls::std::core::interface_type::IWriter
       {
         public:
 

+ 3 - 2
include/ls_std/io/StorableFile.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-19
- * Changed:         2022-05-19
+ * Changed:         2022-07-01
  *
  * */
 
@@ -14,6 +14,7 @@
 #include <memory>
 #include <ls_std/core/interface/IStorable.hpp>
 #include "File.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -21,7 +22,7 @@ namespace ls
   {
     namespace io
     {
-      class StorableFile : public ls::std::core::interface_type::IStorable
+      class DYNAMIC_GOAL StorableFile : public ls::std::core::interface_type::IStorable
       {
         public:
 

+ 3 - 2
include/ls_std/io/kv/KvDocument.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-12-25
- * Changed:         2022-05-12
+ * Changed:         2022-07-01
  *
  * */
 
@@ -14,6 +14,7 @@
 #include "KvPair.hpp"
 #include <ls_std/core/types/KvTypes.hpp>
 #include <map>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -21,7 +22,7 @@ namespace ls
   {
     namespace io
     {
-      class KvDocument : public ls::std::core::Class
+      class DYNAMIC_GOAL KvDocument : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/kv/KvFileReader.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-12-25
- * Changed:         2022-05-19
+ * Changed:         2022-07-01
  *
  * */
 
@@ -15,6 +15,7 @@
 #include <ls_std/io/kv/KvDocument.hpp>
 #include <ls_std/io/File.hpp>
 #include <memory>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -22,7 +23,7 @@ namespace ls
   {
     namespace io
     {
-      class KvFileReader : public ls::std::core::Class, public ls::std::core::interface_type::IReader
+      class DYNAMIC_GOAL KvFileReader : public ls::std::core::Class, public ls::std::core::interface_type::IReader
       {
         public:
 

+ 3 - 2
include/ls_std/io/kv/KvPair.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-12-25
- * Changed:         2022-05-12
+ * Changed:         2022-07-01
  *
  * */
 
@@ -12,6 +12,7 @@
 
 #include <ls_std/core/Class.hpp>
 #include "ls_std/core/types/KvTypes.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -19,7 +20,7 @@ namespace ls
   {
     namespace io
     {
-      class KvPair : public ls::std::core::Class
+      class DYNAMIC_GOAL KvPair : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/kv/KvParseParameter.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-12-25
- * Changed:         2022-05-13
+ * Changed:         2022-07-01
  *
  * */
 
@@ -11,6 +11,7 @@
 #define LS_STD_KV_PARSE_DATA_HPP
 
 #include <string>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -18,7 +19,7 @@ namespace ls
   {
     namespace io
     {
-      struct KvParseParameter
+      struct DYNAMIC_GOAL KvParseParameter
       {
         ::std::string::size_type index{};
         ::std::string line{};

+ 3 - 2
include/ls_std/io/kv/KvParser.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-12-25
- * Changed:         2022-05-13
+ * Changed:         2022-07-01
  *
  * */
 
@@ -15,6 +15,7 @@
 #include "KvDocument.hpp"
 #include "KvParseParameter.hpp"
 #include <memory>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -22,7 +23,7 @@ namespace ls
   {
     namespace io
     {
-      class KvParser : public ls::std::core::Class
+      class DYNAMIC_GOAL KvParser : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/logging/LogLevel.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-20
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -13,6 +13,7 @@
 #include <unordered_map>
 #include <ls_std/core/Class.hpp>
 #include "LogLevelValue.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -20,7 +21,7 @@ namespace ls
   {
     namespace io
     {
-      class LogLevel : public ls::std::core::Class
+      class DYNAMIC_GOAL LogLevel : public ls::std::core::Class
       {
         public:
 

+ 4 - 2
include/ls_std/io/logging/LogLevelValue.hpp

@@ -3,20 +3,22 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-20
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
 #ifndef LS_STD_LOG_LEVEL_VALUE_HPP
 #define LS_STD_LOG_LEVEL_VALUE_HPP
 
+#include <ls_std/os/dynamic_goal.hpp>
+
 namespace ls
 {
   namespace std
   {
     namespace io
     {
-      enum LogLevelValue
+      enum DYNAMIC_GOAL LogLevelValue
       {
         FATAL = 0, ERR, WARN, INFO, DEBUG, TRACE
       };

+ 3 - 2
include/ls_std/io/logging/Logger.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-20
- * Changed:         2022-05-19
+ * Changed:         2022-07-01
  *
  * */
 
@@ -16,6 +16,7 @@
 #include <ls_std/io/File.hpp>
 #include <ls_std/io/FileOutputStream.hpp>
 #include <string>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -23,7 +24,7 @@ namespace ls
   {
     namespace io
     {
-      class Logger : public ls::std::core::Class
+      class DYNAMIC_GOAL Logger : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/xml/XmlAttribute.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-23
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -12,6 +12,7 @@
 
 #include <ls_std/core/Class.hpp>
 #include <string>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -19,7 +20,7 @@ namespace ls
   {
     namespace io
     {
-      class XmlAttribute : public ls::std::core::Class
+      class DYNAMIC_GOAL XmlAttribute : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/xml/XmlDeclaration.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-27
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -12,6 +12,7 @@
 
 #include <ls_std/core/Class.hpp>
 #include "XmlAttribute.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -19,7 +20,7 @@ namespace ls
   {
     namespace io
     {
-      class XmlDeclaration : public ls::std::core::Class
+      class DYNAMIC_GOAL XmlDeclaration : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/xml/XmlDocument.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-27
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -14,6 +14,7 @@
 #include <ls_std/core/Class.hpp>
 #include "XmlNode.hpp"
 #include "XmlDeclaration.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -21,7 +22,7 @@ namespace ls
   {
     namespace io
     {
-      class XmlDocument : public ls::std::core::Class
+      class DYNAMIC_GOAL XmlDocument : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/xml/XmlNode.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-24
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -14,6 +14,7 @@
 #include <memory>
 #include <ls_std/core/Class.hpp>
 #include "XmlAttribute.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -21,7 +22,7 @@ namespace ls
   {
     namespace io
     {
-      class XmlNode : public ls::std::core::Class
+      class DYNAMIC_GOAL XmlNode : public ls::std::core::Class
       {
         public:
 

+ 4 - 2
include/ls_std/io/xml/XmlParseMode.hpp

@@ -3,20 +3,22 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-10-13
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
 #ifndef LS_STD_XML_PARSE_MODE_HPP
 #define LS_STD_XML_PARSE_MODE_HPP
 
+#include <ls_std/os/dynamic_goal.hpp>
+
 namespace ls
 {
   namespace std
   {
     namespace io
     {
-      enum XmlParseMode
+      enum DYNAMIC_GOAL XmlParseMode
       {
         XML_PARSE_MODE_ANALYZE = 0, XML_PARSE_MODE_DECLARATION, XML_PARSE_MODE_OPENING_TAG, XML_PARSE_MODE_VALUE, XML_PARSE_MODE_CLOSING_TAG
       };

+ 3 - 2
include/ls_std/io/xml/XmlParseParameter.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-10-17
- * Changed:         2022-05-11
+ * Changed:         2022-07-01
  *
  * */
 
@@ -13,6 +13,7 @@
 #include <cstdint>
 #include <memory>
 #include "XmlNode.hpp"
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -20,7 +21,7 @@ namespace ls
   {
     namespace io
     {
-      struct XmlParseParameter
+      struct DYNAMIC_GOAL XmlParseParameter
       {
         uint8_t level{};
         ::std::shared_ptr<ls::std::io::XmlNode> node{};

+ 3 - 2
include/ls_std/io/xml/XmlParser.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-25
- * Changed:         2022-05-13
+ * Changed:         2022-07-01
  *
  * */
 
@@ -16,6 +16,7 @@
 #include "XmlParseMode.hpp"
 #include "XmlParseParameter.hpp"
 #include <list>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -23,7 +24,7 @@ namespace ls
   {
     namespace io
     {
-      class XmlParser : public ls::std::core::Class
+      class DYNAMIC_GOAL XmlParser : public ls::std::core::Class
       {
         public:
 

+ 3 - 2
include/ls_std/io/xml/XmlReader.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-10-08
- * Changed:         2022-05-19
+ * Changed:         2022-07-01
  *
  * */
 
@@ -17,6 +17,7 @@
 #include "XmlParseMode.hpp"
 #include "XmlParseParameter.hpp"
 #include <list>
+#include <ls_std/os/dynamic_goal.hpp>
 
 namespace ls
 {
@@ -24,7 +25,7 @@ namespace ls
   {
     namespace io
     {
-      class XmlReader : public ls::std::core::Class, public ls::std::core::interface_type::IReader
+      class DYNAMIC_GOAL XmlReader : public ls::std::core::Class, public ls::std::core::interface_type::IReader
       {
         public: