ADTF
versiontype.h
Go to the documentation of this file.
1 
8 #ifndef _A_UTILS_CORE_VERSIONTYPE_INCLUDE_
9 #define _A_UTILS_CORE_VERSIONTYPE_INCLUDE_
10 
11 namespace A_UTILS_NS
12 {
16 struct tVersion
17 {
18  typedef tUInt32 value_type;
19 
24 };//struct tVersion
25 
29 class cVersion
30 {
31 public: //types
32  typedef typename tVersion::value_type value_type;
33 
34 public:
39  cVersion(tVersion sVersion);
40 
47 
54 
61 
68 
74 
80 
86 
92 
97  const tVersion& GetVersion() const;
98 
107  tResult FromString(const cString& i_strVersion);
108 
113  cString ToString() const;
114 
115 private: //data
117 };
118 
125 tBool operator==(const cVersion& i_oLHS, const cVersion& i_oRHS);
126 
133 tBool operator!=(const cVersion& i_oLHS, const cVersion& i_oRHS);
134 
135 } //namespace A_UTILS_NS
136 
137 #endif //_A_UTILS_CORE_VERSIONTYPE_INCLUDE_
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
Wrapper class to work with POD type tVersion.
Definition: versiontype.h:30
cString ToString() const
Create the string representation of the currently held version information.
value_type GetPatch() const
Get patch number of the version.
tVersion m_sVersion
version type to wrap
Definition: versiontype.h:116
cVersion & SetMinor(value_type i_nMinor)
Set minor number of the version.
tVersion::value_type value_type
Common value type of version numbers.
Definition: versiontype.h:32
cVersion & SetPatch(value_type i_nPatch)
Set patch number of the version.
cVersion & SetTweak(value_type i_nTweak)
Set tweak number of the version.
value_type GetMinor() const
Get minor number of the version.
cVersion & SetMajor(value_type i_nMajor)
Set major number of the version.
tResult FromString(const cString &i_strVersion)
Create the version object from a string.
value_type GetTweak() const
Get tweak number of the version.
cVersion(tVersion sVersion)
Constructor.
value_type GetMajor() const
Get major number of the version.
const tVersion & GetVersion() const
Get entire version info.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11
tBool operator==(const cMultiArrayIndex &o_A, const cMultiArrayIndex &o_B)
Comparison operator.
tBool operator!=(const cMultiArrayIndex &o_A, const cMultiArrayIndex &o_B)
Comparison operator.
POD version type.
Definition: versiontype.h:17
tUInt32 value_type
Value type of the version fields.
Definition: versiontype.h:18
value_type m_ui32MajorVersion
Major version.
Definition: versiontype.h:20
value_type m_ui32PatchVersion
Patch version.
Definition: versiontype.h:22
value_type m_ui32MinorVersion
Minor version.
Definition: versiontype.h:21
value_type m_ui32TweakVersion
Tweak version.
Definition: versiontype.h:23