ADTF
VersionConversion

Version conversion utility class. More...

Static Public Member Functions

static std::string toString (const Version &version)
 Version to string conversion. More...
 
static Version fromString (const std::string &version, const Version &default_val=Version(0, 0))
 Creates the Version from a string. More...
 

Detailed Description

Version conversion utility class.

Definition at line 354 of file dd_common_types.h.

Member Function Documentation

◆ fromString()

static Version fromString ( const std::string &  version,
const Version default_val = Version(0, 0) 
)
static

Creates the Version from a string.

Parameters
versionthe version as string to convert from
default_valif valid version is not found, this value is default
Returns
Version

Referenced by DDFromXMLFactory< DOM_NODE_TYPE >::createHeader(), MappingConfigurationFromXMLFactory< DomNodeType >::createHeader(), and DDFromXMLFactory< DOM_NODE_TYPE >::createStructType().

◆ toString()

static std::string toString ( const Version version)
static

Version to string conversion.

Parameters
versionthe version to convert
Returns
std::string

Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode(), and MappingConfigurationToXMLFactory< DomNodeType >::createNode().