![]() |
Scarab
v3.2.4
Project 8 C++ Utility Library
|
#include <version_semantic.hh>
Public Member Functions | |
version_semantic () | |
version_semantic (unsigned a_maj_ver, unsigned a_min_ver, unsigned a_patch_ver) | |
version_semantic (const std::string &a_ver) | |
version_semantic (const version_semantic &a_orig) | |
~version_semantic () | |
version_semantic & | operator= (const version_semantic &a_orig) |
bool | operator< (const version_semantic &a_other) |
Less-than operator to compare version information only. More... | |
bool | operator== (const version_semantic &a_other) |
Equality operator to compare version information only. More... | |
bool | operator> (const version_semantic &a_other) |
Greater-than operator to compare version information only. More... | |
virtual unsigned | major_version () const |
virtual unsigned | minor_version () const |
virtual unsigned | patch_version () const |
virtual const std::string & | version_str () const |
virtual std::string | version_info_string () const |
bool | parse (const std::string &a_ver) |
bool | combine (unsigned a_maj_ver, unsigned a_min_ver, unsigned a_patch_ver) |
bool | update_exe_host_user () |
![]() | |
version_ifc () | |
version_ifc (const version_ifc &) | |
virtual | ~version_ifc () |
version_ifc & | operator= (const version_ifc &) |
virtual const std::string & | package () const =0 |
virtual const std::string & | commit () const =0 |
virtual const std::string & | exe_name () const =0 |
virtual const std::string & | hostname () const =0 |
virtual const std::string & | username () const =0 |
Protected Member Functions | |
mv_referrable (std::string, package) | |
mv_referrable (std::string, commit) | |
mv_referrable (std::string, exe_name) | |
mv_referrable (std::string, hostname) | |
mv_referrable (std::string, username) | |
Protected Attributes | |
unsigned | f_major_ver |
unsigned | f_minor_ver |
unsigned | f_patch_ver |
std::string | f_version |
Static Protected Attributes | |
static char | s_delimeter = '.' |
Definition at line 20 of file version_semantic.hh.
version_semantic | ( | ) |
Definition at line 36 of file version_semantic.cc.
version_semantic | ( | unsigned | a_maj_ver, |
unsigned | a_min_ver, | ||
unsigned | a_patch_ver | ||
) |
Definition at line 51 of file version_semantic.cc.
version_semantic | ( | const std::string & | a_ver | ) |
Definition at line 67 of file version_semantic.cc.
version_semantic | ( | const version_semantic & | a_orig | ) |
Definition at line 83 of file version_semantic.cc.
~version_semantic | ( | ) |
Definition at line 97 of file version_semantic.cc.
bool combine | ( | unsigned | a_maj_ver, |
unsigned | a_min_ver, | ||
unsigned | a_patch_ver | ||
) |
Definition at line 188 of file version_semantic.cc.
|
inlinevirtual |
Implements version_ifc.
Definition at line 72 of file version_semantic.hh.
|
inlinevirtual |
Implements version_ifc.
Definition at line 76 of file version_semantic.hh.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
bool operator< | ( | const version_semantic & | a_other | ) |
Less-than operator to compare version information only.
Definition at line 116 of file version_semantic.cc.
version_semantic & operator= | ( | const version_semantic & | a_orig | ) |
Definition at line 101 of file version_semantic.cc.
bool operator== | ( | const version_semantic & | a_other | ) |
Equality operator to compare version information only.
Definition at line 126 of file version_semantic.cc.
bool operator> | ( | const version_semantic & | a_other | ) |
Greater-than operator to compare version information only.
Definition at line 133 of file version_semantic.cc.
bool parse | ( | const std::string & | a_ver | ) |
Definition at line 143 of file version_semantic.cc.
|
inlinevirtual |
Implements version_ifc.
Definition at line 80 of file version_semantic.hh.
bool update_exe_host_user | ( | ) |
Definition at line 196 of file version_semantic.cc.
|
virtual |
Implements version_ifc.
Definition at line 274 of file version_semantic.cc.
|
inlinevirtual |
Implements version_ifc.
Definition at line 85 of file version_semantic.hh.
|
protected |
Definition at line 56 of file version_semantic.hh.
|
protected |
Definition at line 57 of file version_semantic.hh.
|
protected |
Definition at line 58 of file version_semantic.hh.
|
protected |
Definition at line 59 of file version_semantic.hh.
|
staticprotected |
Definition at line 54 of file version_semantic.hh.