xmlwrapp
Lightweight C++ XML parsing library
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
version.h File Reference

This file contains the XMLWRAPP_CHECK_VERSION macro. More...

#include "xmlwrapp/export.h"
+ Include dependency graph for version.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  xml
 XML library namespace.
 

Macros

#define XMLWRAPP_VERSION_MAJOR   0
 Compile-time major version of the library.
 
#define XMLWRAPP_VERSION_MINOR   10
 Compile-time minor version of the library.
 
#define XMLWRAPP_VERSION_MICRO   0
 Compile-time micro version of the library.
 
#define XMLWRAPP_VERSION_STRING
 Compile-time version of the library as a string.
 
#define XMLWRAPP_CHECK_VERSION(major, minor, micro)
 Checks if xmlwrapp version is at least major.
 

Functions

int xml::get_major_version ()
 Return major runtime version of xmlwrapp library.
 
int xml::get_minor_version ()
 Return minor runtime version of xmlwrapp library.
 
int xml::get_micro_version ()
 Return micro runtime version of xmlwrapp library.
 
const char * xml::get_version_string ()
 Return the full runtime version of xmlwrapp library.
 
bool xml::check_version (int major, int minor, int micro)
 Check that the library version is at least the given one.
 

Detailed Description

This file contains the XMLWRAPP_CHECK_VERSION macro.

Macro Definition Documentation

◆ XMLWRAPP_CHECK_VERSION

#define XMLWRAPP_CHECK_VERSION (   major,
  minor,
  micro 
)
Value:
( \
|| \
(XMLWRAPP_VERSION_MAJOR == (major) && \
XMLWRAPP_VERSION_MINOR >= (minor)) \
|| \
(XMLWRAPP_VERSION_MAJOR == (major) && \
(XMLWRAPP_VERSION_MINOR == (minor) && \
XMLWRAPP_VERSION_MICRO >= (micro))) \
)
#define XMLWRAPP_VERSION_MINOR
Compile-time minor version of the library.
Definition version.h:60
#define XMLWRAPP_VERSION_MAJOR
Compile-time major version of the library.
Definition version.h:51
#define XMLWRAPP_VERSION_MICRO
Compile-time micro version of the library.
Definition version.h:69

Checks if xmlwrapp version is at least major.

minor.micro.

This is a compile-time check, see check_version() for a runtime check.

◆ XMLWRAPP_VERSION_MAJOR

#define XMLWRAPP_VERSION_MAJOR   0

Compile-time major version of the library.

This is the first version component.

See also
XMLWRAPP_CHECK_VERSION()

◆ XMLWRAPP_VERSION_MICRO

#define XMLWRAPP_VERSION_MICRO   0

Compile-time micro version of the library.

This is the third version component.

See also
XMLWRAPP_CHECK_VERSION()

◆ XMLWRAPP_VERSION_MINOR

#define XMLWRAPP_VERSION_MINOR   10

Compile-time minor version of the library.

This is the second version component.

See also
XMLWRAPP_CHECK_VERSION()

◆ XMLWRAPP_VERSION_STRING

#define XMLWRAPP_VERSION_STRING
Value:

Compile-time version of the library as a string.

This is a string in the form "major.minor.micro".

See also
XMLWRAPP_VERSION_MAJOR, XMLWRAPP_VERSION_MINOR, XMLWRAPP_VERSION_MICRO, XMLWRAPP_CHECK_VERSION()
Since
0.10.0