8#include "Arp/Base/Core/Detail/Version.hpp"
12namespace Arp {
namespace Base {
namespace Core
26 using Value = Version::Value;
40 ArpVersion(Value major, Value minor, Value patch, Value build,
const String& state =
"",
const String& name =
"");
52 const String& GetName(
void)
const;
53 const String& GetState(
void)
const;
54 const Version& GetBuildVersion(
void)
const;
57 String ToString(
void)
const;
60 ARP_DEPRECATED(
"Use ArpVersion::GetBuildVersion().GetMajor() instead.")
61 uint8 GetMajor(
void)const;
63 uint8 GetMinor(
void)const;
65 uint8 GetPatch(
void)const;
67 uint32 GetBuild(
void)const;
76 const Impl& GetImpl(
void)const;
110#define ARP_VERSION_CURRENT ArpVersion(ARP_VERSION_MAJOR, ARP_VERSION_MINOR, ARP_VERSION_PATCH, ARP_VERSION_BUILD, ARP_VERSION_STATE, ARP_VERSION_NAME)
118#define ARP_VERSION_BUILT ArpVersion(ARP_VERSION_MAJOR, ARP_VERSION_MINOR, ARP_VERSION_PATCH, ARP_VERSION_BUILD, ARP_VERSION_STATE, ARP_VERSION_NAME)
137#define ARP_ABI_VERSION_CURRENT ArpVersion(ARP_ABI_VERSION_MAJOR, ARP_ABI_VERSION_MINOR, ARP_ABI_VERSION_PATCH, "", "ABI");
146template<>
struct fmt::formatter<
Arp::Base::Core::ArpVersion> :
public fmt::ostream_formatter {};
This class compounds Arp build version and infos.
Definition: ArpVersion.hpp:21
ArpVersion(const ArpVersion &arg)
Default copy constructor.
~ArpVersion(void)
Default destructor.
ArpVersion(ArpVersion &&arg) noexcept
Default move constructor.
ArpVersion(void)
Default constructor.
ArpVersion & operator=(ArpVersion &&arg) noexcept
Default move-assignment operator.
ArpVersion & operator=(const ArpVersion &arg)
Default copy-assignment operator.
This class represents the Arp String. The implementation is based on std::string.
Definition: String.hpp:39
This class provides versioning.
Definition: Version.hpp:23
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:33
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:25
Root namespace for the PLCnext API
class ARP_DEPRECATED("Use Arp::Enum<T> instead.") EnumStrings
Deprecated! The class implements an adapter for enums to define the string literals of the enum entri...
Definition: EnumStrings.hxx:38
Namespace of the C++ standard library