ADTF
Version

DDL Version. More...

Inheritance diagram for Version:
[legend]

Public Member Functions

 Version ()
 default CTOR
 
 Version (const std::string &version)
 CTOR - Version from string. More...
 
 Version (uint32_t major, uint32_t minor)
 CTOR. More...
 
uint32_t getMajor () const
 Get the Major value. More...
 
uint32_t getMinor () const
 Get the Minor value. More...
 
std::string toString () const
 the vrsion as string More...
 
bool isValidVersion () const
 is valid or not More...
 

Static Public Member Functions

static const VersiongetDefaultVersion ()
 Get the Default Version. More...
 
static const VersiongetLatestVersion ()
 Get the latest DDL version This is the currently Version(4, 2). More...
 

Static Public Attributes

static const Version ddl_version_invalid
 invalid Version. More...
 
static const Version ddl_version_notset
 version not set Version. More...
 
static const Version ddl_version_10
 Language Version 1.0. More...
 
static const Version ddl_version_11
 Language Version 1.0+. More...
 
static const Version ddl_version_12
 Language Version 1.2. More...
 
static const Version ddl_version_20
 Language Version 2.0. More...
 
static const Version ddl_version_30
 Language Version 3.0. More...
 
static const Version ddl_version_40
 Language Version 4.0. More...
 
static const Version ddl_version_41
 Language Version 4.1. More...
 
static const Version ddl_version_current
 the newest version (currently it is Version(4, 2)). More...
 

Static Private Member Functions

static const VersiongetDefault ()
 

Private Attributes

uint32_t _major = {}
 
uint32_t _minor = {}
 

Detailed Description

DDL Version.

Definition at line 203 of file dd_common_types.h.

Constructor & Destructor Documentation

◆ Version() [1/2]

Version ( const std::string &  version)

CTOR - Version from string.

Parameters
version

◆ Version() [2/2]

Version ( uint32_t  major,
uint32_t  minor 
)

CTOR.

Parameters
majorthe major value
minorthe minor value

Member Function Documentation

◆ getDefaultVersion()

static const Version& getDefaultVersion ( )
inlinestatic

Get the Default Version.

This is the currently Version(4, 1).

Returns
const Version&

Definition at line 259 of file dd_common_types.h.

◆ getLatestVersion()

static const Version& getLatestVersion ( )
static

Get the latest DDL version This is the currently Version(4, 2).

Returns
const Version&

◆ getMajor()

uint32_t getMajor ( ) const

Get the Major value.

Returns
uint32_t

◆ getMinor()

uint32_t getMinor ( ) const

Get the Minor value.

Returns
uint32_t

◆ isValidVersion()

bool isValidVersion ( ) const

is valid or not

Returns
true is valid
false is not valid

◆ toString()

std::string toString ( ) const

the vrsion as string

Returns
std::string

Member Data Documentation

◆ ddl_version_10

const Version ddl_version_10
static

Language Version 1.0.

Deprecated:
Use Version(1, 0)

Definition at line 299 of file dd_common_types.h.

◆ ddl_version_11

const Version ddl_version_11
static

Language Version 1.0+.

Deprecated:
Use Version(1, 1)

Definition at line 305 of file dd_common_types.h.

◆ ddl_version_12

const Version ddl_version_12
static

Language Version 1.2.

Deprecated:
Use Version(1, 2)

Definition at line 311 of file dd_common_types.h.

◆ ddl_version_20

const Version ddl_version_20
static

Language Version 2.0.

Deprecated:
Use Version(2, 0)

Definition at line 317 of file dd_common_types.h.

◆ ddl_version_30

const Version ddl_version_30
static

Language Version 3.0.

Deprecated:
Use Version(3, 0)

Definition at line 323 of file dd_common_types.h.

◆ ddl_version_40

const Version ddl_version_40
static

Language Version 4.0.

Deprecated:
Use Version(4, 0)

Definition at line 329 of file dd_common_types.h.

◆ ddl_version_41

const Version ddl_version_41
static

Language Version 4.1.

Deprecated:
Use Version(4, 1)

Definition at line 335 of file dd_common_types.h.

◆ ddl_version_current

const Version ddl_version_current
static

the newest version (currently it is Version(4, 2)).

Deprecated:
Use Version::getLatestVersion()

Definition at line 341 of file dd_common_types.h.

◆ ddl_version_invalid

const Version ddl_version_invalid
static

invalid Version.

Deprecated:
Use Version(0, 0)

Definition at line 287 of file dd_common_types.h.

◆ ddl_version_notset

const Version ddl_version_notset
static

version not set Version.

Deprecated:
Use Version(0, 0)

Definition at line 293 of file dd_common_types.h.