|
@@ -3,7 +3,7 @@
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* Created: 2020-09-27
|
|
* Created: 2020-09-27
|
|
- * Changed: 2022-06-29
|
|
|
|
|
|
+ * Changed: 2022-07-02
|
|
*
|
|
*
|
|
* */
|
|
* */
|
|
|
|
|
|
@@ -15,44 +15,38 @@
|
|
#include <ls_std/core/types/Types.hpp>
|
|
#include <ls_std/core/types/Types.hpp>
|
|
#include <ls_std/os/dynamic_goal.hpp>
|
|
#include <ls_std/os/dynamic_goal.hpp>
|
|
|
|
|
|
-namespace ls
|
|
|
|
|
|
+namespace ls::std::core
|
|
{
|
|
{
|
|
- namespace std
|
|
|
|
|
|
+ class DYNAMIC_GOAL Version : public ls::std::core::interface_type::ISerializable
|
|
{
|
|
{
|
|
- namespace core
|
|
|
|
- {
|
|
|
|
- class DYNAMIC_GOAL Version : public ls::std::core::interface_type::ISerializable
|
|
|
|
- {
|
|
|
|
- public:
|
|
|
|
|
|
+ public:
|
|
|
|
|
|
- explicit Version(ls::std::core::type::version_type _majorVersion, ls::std::core::type::version_type _minorVersion, ls::std::core::type::version_type _patchVersion);
|
|
|
|
- ~Version() = default;
|
|
|
|
|
|
+ explicit Version(ls::std::core::type::version_type _majorVersion, ls::std::core::type::version_type _minorVersion, ls::std::core::type::version_type _patchVersion);
|
|
|
|
+ ~Version() = default;
|
|
|
|
|
|
- // implementation
|
|
|
|
|
|
+ // implementation
|
|
|
|
|
|
- ls::std::core::type::byte_field marshal() override;
|
|
|
|
- void unmarshal(const ls::std::core::type::byte_field &_data) override;
|
|
|
|
|
|
+ ls::std::core::type::byte_field marshal() override;
|
|
|
|
+ void unmarshal(const ls::std::core::type::byte_field &_data) override;
|
|
|
|
|
|
- // other functionality
|
|
|
|
|
|
+ // other functionality
|
|
|
|
|
|
- ls::std::core::type::version_type getMajorVersion() const;
|
|
|
|
- ls::std::core::type::version_type getMinorVersion() const;
|
|
|
|
- ls::std::core::type::version_type getPatchVersion() const;
|
|
|
|
- static bool isValid(const ::std::string &_versionString);
|
|
|
|
- void setMajorVersion(ls::std::core::type::version_type _major);
|
|
|
|
- void setMinorVersion(ls::std::core::type::version_type _minor);
|
|
|
|
- void setPatchVersion(ls::std::core::type::version_type _patch);
|
|
|
|
|
|
+ ls::std::core::type::version_type getMajorVersion() const;
|
|
|
|
+ ls::std::core::type::version_type getMinorVersion() const;
|
|
|
|
+ ls::std::core::type::version_type getPatchVersion() const;
|
|
|
|
+ static bool isValid(const ::std::string &_versionString);
|
|
|
|
+ void setMajorVersion(ls::std::core::type::version_type _major);
|
|
|
|
+ void setMinorVersion(ls::std::core::type::version_type _minor);
|
|
|
|
+ void setPatchVersion(ls::std::core::type::version_type _patch);
|
|
|
|
|
|
- private:
|
|
|
|
|
|
+ private:
|
|
|
|
|
|
- ls::std::core::type::version_type majorVersion{};
|
|
|
|
- ls::std::core::type::version_type minorVersion{};
|
|
|
|
- ls::std::core::type::version_type patchVersion{};
|
|
|
|
|
|
+ ls::std::core::type::version_type majorVersion{};
|
|
|
|
+ ls::std::core::type::version_type minorVersion{};
|
|
|
|
+ ls::std::core::type::version_type patchVersion{};
|
|
|
|
|
|
- static bool _isValid(const ::std::string &_versionString);
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ static bool _isValid(const ::std::string &_versionString);
|
|
|
|
+ };
|
|
}
|
|
}
|
|
|
|
|
|
#endif
|
|
#endif
|