Scarab  v3.2.4
Project 8 C++ Utility Library
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
version_semantic Class Reference

#include <version_semantic.hh>

Inheritance diagram for version_semantic:
Inheritance graph

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_semanticoperator= (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 ()
 
- Public Member Functions inherited from version_ifc
 version_ifc ()
 
 version_ifc (const version_ifc &)
 
virtual ~version_ifc ()
 
version_ifcoperator= (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 = '.'
 

Detailed Description

Definition at line 20 of file version_semantic.hh.

Constructor & Destructor Documentation

◆ version_semantic() [1/4]

Definition at line 36 of file version_semantic.cc.

◆ version_semantic() [2/4]

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() [3/4]

version_semantic ( const std::string &  a_ver)

Definition at line 67 of file version_semantic.cc.

◆ version_semantic() [4/4]

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.

Member Function Documentation

◆ combine()

bool combine ( unsigned  a_maj_ver,
unsigned  a_min_ver,
unsigned  a_patch_ver 
)

Definition at line 188 of file version_semantic.cc.

◆ major_version()

unsigned major_version ( ) const
inlinevirtual

Implements version_ifc.

Definition at line 72 of file version_semantic.hh.

◆ minor_version()

unsigned minor_version ( ) const
inlinevirtual

Implements version_ifc.

Definition at line 76 of file version_semantic.hh.

◆ mv_referrable() [1/5]

mv_referrable ( std::string  ,
package   
)
protected

◆ mv_referrable() [2/5]

mv_referrable ( std::string  ,
commit   
)
protected

◆ mv_referrable() [3/5]

mv_referrable ( std::string  ,
exe_name   
)
protected

◆ mv_referrable() [4/5]

mv_referrable ( std::string  ,
hostname   
)
protected

◆ mv_referrable() [5/5]

mv_referrable ( std::string  ,
username   
)
protected

◆ operator<()

bool operator< ( const version_semantic a_other)

Less-than operator to compare version information only.

Definition at line 116 of file version_semantic.cc.

◆ operator=()

version_semantic & operator= ( const version_semantic a_orig)

Definition at line 101 of file version_semantic.cc.

◆ operator==()

bool operator== ( const version_semantic a_other)

Equality operator to compare version information only.

Definition at line 126 of file version_semantic.cc.

◆ operator>()

bool operator> ( const version_semantic a_other)

Greater-than operator to compare version information only.

Definition at line 133 of file version_semantic.cc.

◆ parse()

bool parse ( const std::string &  a_ver)

Definition at line 143 of file version_semantic.cc.

◆ patch_version()

unsigned patch_version ( ) const
inlinevirtual

Implements version_ifc.

Definition at line 80 of file version_semantic.hh.

◆ update_exe_host_user()

bool update_exe_host_user ( )

Definition at line 196 of file version_semantic.cc.

◆ version_info_string()

std::string version_info_string ( ) const
virtual

Implements version_ifc.

Definition at line 274 of file version_semantic.cc.

◆ version_str()

const std::string & version_str ( ) const
inlinevirtual

Implements version_ifc.

Definition at line 85 of file version_semantic.hh.

Member Data Documentation

◆ f_major_ver

unsigned f_major_ver
protected

Definition at line 56 of file version_semantic.hh.

◆ f_minor_ver

unsigned f_minor_ver
protected

Definition at line 57 of file version_semantic.hh.

◆ f_patch_ver

unsigned f_patch_ver
protected

Definition at line 58 of file version_semantic.hh.

◆ f_version

std::string f_version
protected

Definition at line 59 of file version_semantic.hh.

◆ s_delimeter

char s_delimeter = '.'
staticprotected

Definition at line 54 of file version_semantic.hh.


The documentation for this class was generated from the following files: