CodePorting::Native::Cs2Cpp::VersionInfo Struct Reference

Describes aspose_cpp version which includes revision and compiler options used. More...

Public Member Functions

ASPOSECPP_SHARED_API bool operator== (const VersionInfo &other)
 
ASPOSECPP_SHARED_API bool operator!= (const VersionInfo &other)
 
ASPOSECPP_SHARED_API void encode (char(&encoded_vi)[ENCODED_VERSION_INFO_SIZE]) const
 

Public Attributes

uint16_t asposecpplib_version_major
 Major aspose_cpp library version. More...
 
uint16_t asposecpplib_version_minor
 Minor aspose_cpp library version. More...
 
uint16_t asposecpplib_version_revision
 aspose_cpp library revision. More...
 
uint16_t asposecpplib_version_build
 aspose_cpp library build number. More...
 
char asposecpplib_revision [GIT_REVISION_BUFFER_SIZE]
 Git revision from which aspose_cpp library headers were taken and/or library was built. More...
 
bool defined___DBG_FOR_EACH_MEMEBR
 Whether __DBG_FOR_EACH_MEMBER define was set. More...
 
bool defined___DBG_GARBAGE_COLLECTION
 Whether ___DBG_GARBAGE_COLLECTION define was set. More...
 
bool defined___DBG_TOOLS
 Whether ___DBG_TOOLS define was set. More...
 
bool defined_ASPOSE_COMPARE_BY_REF
 Whether ASPOSE_COMPARE_BY_REF define was set. More...
 
bool defined_ASPOSE_THREADSAFE_DELEGATES
 Whether ASPOSE_THREADSAFE_DELEGATES define was set. More...
 
bool defined_ASPOSE_NO_ATOMIC_REFCOUNT
 Whether ASPOSE_NO_ATOMIC_REFCOUNT define was set. More...
 
bool defined_ENABLE_EXTERNAL_REFCOUNT
 Whether ENABLE_EXTERNAL_REFCOUNT define was set. More...
 
bool defined_DISABLE_ASTRAL
 Whether DISABLE_ASTRAL define was set. More...
 
bool defined_CALL_DISPOSE
 Whether CALL_DISPOSE define was set. More...
 
bool defined_ENABLE_CYCLES_DETECTION_EXT
 Whether ENABLE_CYCLES_DETECTION_EXT define was set. More...
 
bool defined_SHOW_DISPOSE_GUARD_MESSAGE
 Whether SHOW_DISPOSE_GUARD_MESSAGE define was set. More...
 
bool defined_ENABLE_MAKE_OBJECT_LEAKAGE_DETECTION
 Whether ENABLE_MAKE_OBJECT_LEAKAGE_DETECTION define was set. More...
 

Static Public Attributes

static constexpr std::size_t ENCODED_VERSION_INFO_DELIMITER_SIZE = 1
 
static constexpr std::size_t ENCODED_VERSION_INFO_VERSION_SEGMENT_SIZE = 5
 
static constexpr std::size_t ENCODED_VERSION_INFO_VERSION_SEGMENTS_DELIMITER_SIZE = 1
 
static constexpr std::size_t ENCODED_VERSION_INFO_FOUR_SEGMENT_VERSION_STRING_SIZE
 
static constexpr std::size_t ENCODED_VERSION_INFO_PRECOMPILER_DEFINITIONS_BITMAP_SIZE = 16
 Size of compiler definitions bitmap which is encoded into version info. More...
 
static constexpr std::size_t ENCODED_VERSION_INFO_SIZE = ENCODED_VERSION_INFO_FOUR_SEGMENT_VERSION_STRING_SIZE + GIT_REVISION_SIZE + ENCODED_VERSION_INFO_PRECOMPILER_DEFINITIONS_BITMAP_SIZE + ENCODED_VERSION_INFO_DELIMITER_SIZE * 2 + 1
 

Detailed Description

Describes aspose_cpp version which includes revision and compiler options used.

Member Function Documentation

◆ encode()

ASPOSECPP_SHARED_API void CodePorting::Native::Cs2Cpp::VersionInfo::encode ( char(&)  encoded_vi[ENCODED_VERSION_INFO_SIZE]) const

Encodes version info into string.

Parameters
encoded_viArray to fill with result string.

◆ operator!=()

ASPOSECPP_SHARED_API bool CodePorting::Native::Cs2Cpp::VersionInfo::operator!= ( const VersionInfo other)

Compares version info values.

Parameters
otherA value to compare the current object with.
Returns
False if all revisions and flags match, true otherwise.

◆ operator==()

ASPOSECPP_SHARED_API bool CodePorting::Native::Cs2Cpp::VersionInfo::operator== ( const VersionInfo other)

Compares version info values.

Parameters
otherA value to compare the current object with.
Returns
True if all revisions and flags match, false otherwise.

Member Data Documentation

◆ asposecpplib_revision

char CodePorting::Native::Cs2Cpp::VersionInfo::asposecpplib_revision[GIT_REVISION_BUFFER_SIZE]

Git revision from which aspose_cpp library headers were taken and/or library was built.

◆ asposecpplib_version_build

uint16_t CodePorting::Native::Cs2Cpp::VersionInfo::asposecpplib_version_build

aspose_cpp library build number.

◆ asposecpplib_version_major

uint16_t CodePorting::Native::Cs2Cpp::VersionInfo::asposecpplib_version_major

Major aspose_cpp library version.

◆ asposecpplib_version_minor

uint16_t CodePorting::Native::Cs2Cpp::VersionInfo::asposecpplib_version_minor

Minor aspose_cpp library version.

◆ asposecpplib_version_revision

uint16_t CodePorting::Native::Cs2Cpp::VersionInfo::asposecpplib_version_revision

aspose_cpp library revision.

◆ defined___DBG_FOR_EACH_MEMEBR

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined___DBG_FOR_EACH_MEMEBR

Whether __DBG_FOR_EACH_MEMBER define was set.

◆ defined___DBG_GARBAGE_COLLECTION

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined___DBG_GARBAGE_COLLECTION

Whether ___DBG_GARBAGE_COLLECTION define was set.

◆ defined___DBG_TOOLS

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined___DBG_TOOLS

Whether ___DBG_TOOLS define was set.

◆ defined_ASPOSE_COMPARE_BY_REF

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_ASPOSE_COMPARE_BY_REF

Whether ASPOSE_COMPARE_BY_REF define was set.

◆ defined_ASPOSE_NO_ATOMIC_REFCOUNT

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_ASPOSE_NO_ATOMIC_REFCOUNT

Whether ASPOSE_NO_ATOMIC_REFCOUNT define was set.

◆ defined_ASPOSE_THREADSAFE_DELEGATES

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_ASPOSE_THREADSAFE_DELEGATES

Whether ASPOSE_THREADSAFE_DELEGATES define was set.

◆ defined_CALL_DISPOSE

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_CALL_DISPOSE

Whether CALL_DISPOSE define was set.

◆ defined_DISABLE_ASTRAL

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_DISABLE_ASTRAL

Whether DISABLE_ASTRAL define was set.

◆ defined_ENABLE_CYCLES_DETECTION_EXT

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_ENABLE_CYCLES_DETECTION_EXT

Whether ENABLE_CYCLES_DETECTION_EXT define was set.

◆ defined_ENABLE_EXTERNAL_REFCOUNT

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_ENABLE_EXTERNAL_REFCOUNT

Whether ENABLE_EXTERNAL_REFCOUNT define was set.

◆ defined_ENABLE_MAKE_OBJECT_LEAKAGE_DETECTION

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_ENABLE_MAKE_OBJECT_LEAKAGE_DETECTION

Whether ENABLE_MAKE_OBJECT_LEAKAGE_DETECTION define was set.

◆ defined_SHOW_DISPOSE_GUARD_MESSAGE

bool CodePorting::Native::Cs2Cpp::VersionInfo::defined_SHOW_DISPOSE_GUARD_MESSAGE

Whether SHOW_DISPOSE_GUARD_MESSAGE define was set.

◆ ENCODED_VERSION_INFO_DELIMITER_SIZE

constexpr std::size_t CodePorting::Native::Cs2Cpp::VersionInfo::ENCODED_VERSION_INFO_DELIMITER_SIZE = 1
static

Size of encoded version info parts delimiter. '#' is used as a delimiter between version info segments.

◆ ENCODED_VERSION_INFO_FOUR_SEGMENT_VERSION_STRING_SIZE

constexpr std::size_t CodePorting::Native::Cs2Cpp::VersionInfo::ENCODED_VERSION_INFO_FOUR_SEGMENT_VERSION_STRING_SIZE
static
Initial value:

The size of a string representing a version which has following format: <int16_t>.<int16_t>.<int16_t>.<int16_t>

◆ ENCODED_VERSION_INFO_PRECOMPILER_DEFINITIONS_BITMAP_SIZE

constexpr std::size_t CodePorting::Native::Cs2Cpp::VersionInfo::ENCODED_VERSION_INFO_PRECOMPILER_DEFINITIONS_BITMAP_SIZE = 16
static

Size of compiler definitions bitmap which is encoded into version info.

◆ ENCODED_VERSION_INFO_SIZE

constexpr std::size_t CodePorting::Native::Cs2Cpp::VersionInfo::ENCODED_VERSION_INFO_SIZE = ENCODED_VERSION_INFO_FOUR_SEGMENT_VERSION_STRING_SIZE + GIT_REVISION_SIZE + ENCODED_VERSION_INFO_PRECOMPILER_DEFINITIONS_BITMAP_SIZE + ENCODED_VERSION_INFO_DELIMITER_SIZE * 2 + 1
static

Full size of encoded version info. Encoded version info has following format: [asposecpplib_version]#[asposecpplib_revision]#[procompiler_definitions_bitmap][NULL]

◆ ENCODED_VERSION_INFO_VERSION_SEGMENT_SIZE

constexpr std::size_t CodePorting::Native::Cs2Cpp::VersionInfo::ENCODED_VERSION_INFO_VERSION_SEGMENT_SIZE = 5
static

Version segment max size. Each out of four segments is represented with uint16_t, which represents a number up to 65534 is decimal representation, hence 5 chars.

◆ ENCODED_VERSION_INFO_VERSION_SEGMENTS_DELIMITER_SIZE

constexpr std::size_t CodePorting::Native::Cs2Cpp::VersionInfo::ENCODED_VERSION_INFO_VERSION_SEGMENTS_DELIMITER_SIZE = 1
static

Size of version number parts delimiter. '.' is used a a delimiter between version segments.