libSBML C++ API  5.18.0
libsbml-version.cpp File Reference

Define libSBML version numbers for access from client software. More...

Include dependency graph for libsbml-version.cpp:

Functions

const char * getLibSBMLDependencyVersionOf (const char *option)
 Returns the version string for the dependency library used. More...
 
const char * getLibSBMLDottedVersion ()
 Returns the version number of this copy of libSBML as a string. More...
 
int getLibSBMLVersion ()
 Returns the version number of this copy of libSBML as an integer. More...
 
const char * getLibSBMLVersionString ()
 Returns the version number of this copy of libSBML as a string without periods. More...
 
int isLibSBMLCompiledWith (const char *option)
 Returns an indication whether libSBML has been compiled with against a specific library. More...
 

Detailed Description

Define libSBML version numbers for access from client software.

Author
Akiya Jouraku

Function Documentation

const char* getLibSBMLDependencyVersionOf ( const char *  option)

Returns the version string for the dependency library used.

Parameters
optionthe library for which the version should be retrieved, this can be one of "expat", "libxml", "xerces-c", "bzip2", "zip"
Returns
NULL in case libSBML has not been compiled against that library and a version string otherwise.
See also
isLibSBMLCompiledWith(const char* option)
Examples:
printSupported.cpp.
const char* getLibSBMLDottedVersion ( )

Returns the version number of this copy of libSBML as a string.

Returns
the libSBML version as a string; version 1.2.3 becomes "1.2.3".
See also
getLibSBMLVersionString()
Examples:
printRegisteredPackages.cpp, and printSupported.cpp.
int getLibSBMLVersion ( )

Returns the version number of this copy of libSBML as an integer.

Returns
the libSBML version as an integer; version 1.2.3 becomes 10203.
const char* getLibSBMLVersionString ( )

Returns the version number of this copy of libSBML as a string without periods.

Returns
the libSBML version as a string: version 1.2.3 becomes "10203".
See also
getLibSBMLDottedVersion()
int isLibSBMLCompiledWith ( const char *  option)

Returns an indication whether libSBML has been compiled with against a specific library.

Parameters
optionthe library to test against, this can be one of "expat", "libxml", "xerces-c", "bzip2", "zip"
Returns
0 in case the libSBML has not been compiled against that library and non-zero otherwise (for libraries that define an integer version number that number will be returned).
See also
getLibSBMLDependencyVersionOf(const char* option)
Examples:
printSupported.cpp.