20#include <xrpl/basics/contract.h>
21#include <xrpl/beast/core/LexicalCast.h>
22#include <xrpl/beast/core/SemanticVersion.h>
23#include <xrpl/protocol/BuildInfo.h>
24#include <boost/preprocessor/stringize.hpp>
39#if defined(DEBUG) || defined(SANITIZER)
53 BOOST_PP_STRINGIZE(SANITIZER)
85 0x183B'0000'0000'0000LLU;
87 0xFFFF'0000'0000'0000LLU;
123 if (prefix != identifier.
substr(0, prefix.length()))
137 x = parsePreRelease(
id,
"rc", 0x80, 0, 63);
140 x = parsePreRelease(
id,
"b", 0x40, 0, 63);
A Semantic Version number.
bool parse(std::string const &input)
Parse a semantic version string.
identifier_list preReleaseIdentifiers
bool isPreRelease() const noexcept
std::string print() const
Produce a string from semantic version components.
bool lexicalCastChecked(Out &out, In in)
Intelligently convert from one type to another.
std::uint64_t getEncodedVersion()
Returns this server's version packed in a 64-bit integer.
std::string const & getFullVersionString()
Full server version string.
std::uint64_t encodeSoftwareVersion(char const *const versionStr)
Encode an arbitrary server software version in a 64-bit integer.
static constexpr std::uint64_t implementationVersionIdentifier
bool isNewerVersion(std::uint64_t version)
Check if the version is newer than the local node's rippled software version.
bool isRippledVersion(std::uint64_t version)
Check if the encoded software version is a rippled software version.
static constexpr std::uint64_t implementationVersionIdentifierMask
std::string const & getVersionString()
Server version.
char const *const versionString
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.