Explorar el Código

Add missing namespace in library source files

Patrick-Christopher Mattulat hace 1 año
padre
commit
df49c43c07

+ 2 - 2
source/ls-std/core/evaluator/NullPointerEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-02-08
+* Changed:         2023-02-22
 *
 * */
 
@@ -16,7 +16,7 @@ ls::std::core::NullPointerEvaluator::NullPointerEvaluator(const ::std::shared_pt
 ls::std::core::NullPointerEvaluator::NullPointerEvaluator(const ::std::shared_ptr<void> &_argument, ::std::string _message) : argument(_argument), message(::std::move(_message))
 {}
 
-ls::std::core::NullPointerEvaluator::~NullPointerEvaluator() = default;
+ls::std::core::NullPointerEvaluator::~NullPointerEvaluator() noexcept = default;
 
 void ls::std::core::NullPointerEvaluator::evaluate()
 {

+ 7 - 7
source/ls-std/encoding/cli/cli-base64-main.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2022-07-03
- * Changed:         2023-02-05
+ * Changed:         2023-02-22
  *
  * */
 
@@ -13,7 +13,7 @@
 #include <string>
 #include <vector>
 
-using CliCommand = std::vector<std::string>;
+using CliCommand = ::std::vector<::std::string>;
 
 void printHelp();
 bool isValidCommand(const CliCommand &_command);
@@ -26,12 +26,12 @@ int main(int argc, char *argv[])
   {
     if (command[1] == "--encode")
     {
-      std::cout << ls::std::encoding::Base64{}.encode(command[2]) << std::endl;
+      ::std::cout << ls::std::encoding::Base64{}.encode(command[2]) << ::std::endl;
     }
 
     if (command[1] == "--decode")
     {
-      std::cout << ls::std::encoding::Base64{}.decode(command[2]) << std::endl;
+      ::std::cout << ls::std::encoding::Base64{}.decode(command[2]) << ::std::endl;
     }
 
     if (command[1] == "--help")
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
   }
   else
   {
-    std::cerr << "There is an error in this command. Please use \"--help\" to get more information." << std::endl;
+    ::std::cerr << "There is an error in this command. Please use \"--help\" to get more information." << ::std::endl;
   }
 
   exit(0);
@@ -49,13 +49,13 @@ int main(int argc, char *argv[])
 
 void printHelp()
 {
-  std::string help = "Base 64 CLI - " + ls::std::core::LibraryVersion::getVersion() + "\n\n";
+  ::std::string help = "Base 64 CLI - " + ls::std::core::LibraryVersion::getVersion() + "\n\n";
   help += "(1) encode a string:\t\t";
   help += "--encode [string]\n";
   help += "(2) decode a string:\t\t";
   help += "--decode [string]";
 
-  std::cout << help << std::endl;
+  ::std::cout << help << ::std::endl;
 }
 
 bool isValidCommand(const CliCommand &_command)

+ 1 - 1
source/ls-std/io/section-pair/reader/SectionPairFileReader.cpp

@@ -58,7 +58,7 @@ void ls::std::io::SectionPairFileReader::_createDocument()
 
 void ls::std::io::SectionPairFileReader::_createFileExistenceEvaluator()
 {
-  this->parameter.setFileExistenceEvaluator(::std::make_shared<FileExistenceEvaluator>(this->parameter.getFilePath()));
+  this->parameter.setFileExistenceEvaluator(::std::make_shared<ls::std::io::FileExistenceEvaluator>(this->parameter.getFilePath()));
 }
 
 void ls::std::io::SectionPairFileReader::_createReader()

+ 1 - 1
source/ls-std/io/section-pair/serialization/SerializableSectionPairRow.cpp

@@ -15,7 +15,7 @@
 #include <ls-std/io/section-pair/model/SectionPairRowSingleValue.hpp>
 #include <ls-std/io/section-pair/serialization/SerializableSectionPairRow.hpp>
 
-ls::std::io::SerializableSectionPairRow::SerializableSectionPairRow(const SerializableSectionPairParameter &_parameter) : ls::std::core::Class("SerializableSectionPairRow")
+ls::std::io::SerializableSectionPairRow::SerializableSectionPairRow(const ls::std::io::SerializableSectionPairParameter &_parameter) : ls::std::core::Class("SerializableSectionPairRow")
 {
   ::std::string message = this->getClassName() + ": model reference is null!";
   ls::std::core::NullPointerArgumentEvaluator{_parameter.getValue(), message}.evaluate();

+ 2 - 2
source/ls-std/io/section-pair/serialization/SerializableSectionPairSection.cpp

@@ -68,7 +68,7 @@ ls::std::core::type::byte_field ls::std::io::SerializableSectionPairSection::_co
   ls::std::core::type::byte_field currentRows = _currentRows;
   ls::std::core::type::byte_field currentRow{}, row{};
   ::std::string newLine = this->parameter.getNewLine();
-  _type = SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE;
+  _type = ls::std::io::SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE;
   size_t iterations{};
   bool isStillListRow{};
 
@@ -95,7 +95,7 @@ ls::std::core::type::byte_field ls::std::io::SerializableSectionPairSection::_co
 
 ls::std::core::type::byte_field ls::std::io::SerializableSectionPairSection::_collectSectionSingleValueRow(const ls::std::core::type::byte_field &_firstRow, ls::std::io::SectionPairRowEnumType &_type)
 {
-  _type = SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE;
+  _type = ls::std::io::SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE;
   return _firstRow;
 }
 

+ 1 - 1
source/ls-std/io/xml/XmlParser.cpp

@@ -403,7 +403,7 @@ void ls::std::io::XmlParser::_reset()
 {
   this->currentLevel = 1;
   this->maxLevel = 1;
-  this->mode = XML_PARSE_MODE_ANALYZE;
+  this->mode = ls::std::io::XML_PARSE_MODE_ANALYZE;
   this->parseParameters.clear();
 }