SectionPairFileExtensionValidator.hpp 957 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-21
  6. * Changed: 2024-05-25
  7. *
  8. * */
  9. #ifndef LS_STD_SECTION_PAIR_FILE_EXTENSION_VALIDATOR_HPP
  10. #define LS_STD_SECTION_PAIR_FILE_EXTENSION_VALIDATOR_HPP
  11. #include <ls-std/core/Class.hpp>
  12. #include <ls-std/core/interface/IValidator.hpp>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. #include <string>
  15. /*
  16. * @class(name: 'SectionPairFileExtensionValidator', package: 'io')
  17. * */
  18. namespace ls::std::io
  19. {
  20. class LS_STD_DYNAMIC_GOAL SectionPairFileExtensionValidator : public ls::std::core::Class, public ls::std::core::interface_type::IValidator
  21. {
  22. public:
  23. explicit SectionPairFileExtensionValidator(::std::string _fileName);
  24. ~SectionPairFileExtensionValidator() noexcept override;
  25. [[nodiscard]] bool isValid() override;
  26. private:
  27. ::std::string fileName{};
  28. };
  29. }
  30. #endif