Public Member Functions | Private Attributes

ivd_ModVersion Class Reference
[Common, basic classes, functions and types]

#include <ivd_version.h>

List of all members.

Public Member Functions

 ivd_ModVersion (const char *a_name, UInt32_t a_major, UInt32_t a_minor, UInt32_t a_smr, UInt32_t a_build, const char *a_label, const char *a_buildTime, const char *a_compiler, const char *a_machineInfo, const char *a_verStr, const char *a_compileTimeStr, const char *a_computerStr, const char *a_compilerStr)
 ~ivd_ModVersion ()
const string & GetModuleName () const
string GetShortVersion () const
string GetFullVersion () const
UInt32_t GetMajor () const
UInt32_t GetMinor () const
UInt32_t GetSystemMaintRel () const
UInt32_t GetBuildNum () const
const string & GetLabel () const
const string & GetBuildTime () const
const string & GetCompilerInfo () const
const string & GetMachineInfo () const

Private Attributes

 log_CLASSID_m
string m_name
UInt32_t m_major
UInt32_t m_minor
UInt32_t m_smr
UInt32_t m_build
string m_label
string m_buildTime
string m_compiler
string m_machineOS
const char * m_verStr
const char * m_compileTimeStr
const char * m_computerStr
const char * m_compilerStr

Detailed Description

Definition at line 45 of file ivd_version.h.


Constructor & Destructor Documentation

ivd_ModVersion::ivd_ModVersion ( const char *  a_name,
UInt32_t  a_major,
UInt32_t  a_minor,
UInt32_t  a_smr,
UInt32_t  a_build,
const char *  a_label,
const char *  a_buildTime,
const char *  a_compiler,
const char *  a_machineInfo,
const char *  a_verStr,
const char *  a_compileTimeStr,
const char *  a_computerStr,
const char *  a_compilerStr 
)

Definition at line 57 of file ivd_version.cpp.

References ivd_Versions::AddModuleVersion().

    : m_name(a_name),
      m_major(a_major),
      m_minor(a_minor),
      m_smr(a_smr),
      m_build(a_build),
      m_label(a_label),
      m_buildTime(a_buildTime),
      m_compiler(a_compiler),
      m_machineOS(a_machineInfo),

      m_verStr(m_verStr),
      m_compileTimeStr(m_compileTimeStr),
      m_computerStr(m_computerStr),
      m_compilerStr(m_compilerStr) {

    ivd_Versions::AddModuleVersion(*this);
}

Here is the call graph for this function:

ivd_ModVersion::~ivd_ModVersion (  ) 

Definition at line 91 of file ivd_version.cpp.

                                {
    // Empty
}


Member Function Documentation

UInt32_t ivd_ModVersion::GetBuildNum (  )  const

Definition at line 133 of file ivd_version.cpp.

References m_build.

                                           {
    return m_build;
}

const string & ivd_ModVersion::GetBuildTime (  )  const

Definition at line 141 of file ivd_version.cpp.

References m_buildTime.

                                                 {
    return m_buildTime;
}

const string & ivd_ModVersion::GetCompilerInfo (  )  const

Definition at line 145 of file ivd_version.cpp.

References m_compiler.

                                                    {
    return m_compiler;
}

string ivd_ModVersion::GetFullVersion (  )  const

Definition at line 99 of file ivd_version.cpp.

References GetShortVersion(), and m_label.

                                            {
    ostringstream sstr;
    sstr << GetShortVersion();

    if (!m_label.empty()) {
        sstr << " \"" << m_label << "\"";
    }

    return sstr.str();
}

Here is the call graph for this function:

const string & ivd_ModVersion::GetLabel (  )  const

Definition at line 137 of file ivd_version.cpp.

References m_label.

                                             {
    return m_label;
}

const string & ivd_ModVersion::GetMachineInfo (  )  const

Definition at line 149 of file ivd_version.cpp.

References m_machineOS.

                                                   {
    return m_machineOS;
}

UInt32_t ivd_ModVersion::GetMajor (  )  const

Definition at line 121 of file ivd_version.cpp.

References m_major.

                                        {
    return m_major;
}

UInt32_t ivd_ModVersion::GetMinor (  )  const

Definition at line 125 of file ivd_version.cpp.

References m_minor.

                                        {
    return m_minor;
}

const string & ivd_ModVersion::GetModuleName (  )  const

Definition at line 95 of file ivd_version.cpp.

References m_name.

                                                  {
    return m_name;
}

string ivd_ModVersion::GetShortVersion (  )  const

Definition at line 110 of file ivd_version.cpp.

References m_build, m_major, m_minor, and m_smr.

Referenced by GetFullVersion().

                                             {
    ostringstream sstr;
    sstr
        << m_major << "."
        << m_minor << "."
        << m_smr << "."
        << m_build;
        
    return sstr.str();
}

Here is the caller graph for this function:

UInt32_t ivd_ModVersion::GetSystemMaintRel (  )  const

Definition at line 129 of file ivd_version.cpp.

References m_smr.

                                                 {
    return m_smr;
}


Member Data Documentation

Definition at line 79 of file ivd_version.h.

Definition at line 85 of file ivd_version.h.

Referenced by GetBuildNum(), and GetShortVersion().

string ivd_ModVersion::m_buildTime [private]

Definition at line 88 of file ivd_version.h.

Referenced by GetBuildTime().

string ivd_ModVersion::m_compiler [private]

Definition at line 90 of file ivd_version.h.

Referenced by GetCompilerInfo().

const char* ivd_ModVersion::m_compilerStr [private]

Definition at line 102 of file ivd_version.h.

const char* ivd_ModVersion::m_compileTimeStr [private]

Definition at line 100 of file ivd_version.h.

const char* ivd_ModVersion::m_computerStr [private]

Definition at line 101 of file ivd_version.h.

string ivd_ModVersion::m_label [private]

Definition at line 87 of file ivd_version.h.

Referenced by GetFullVersion(), and GetLabel().

string ivd_ModVersion::m_machineOS [private]

Definition at line 91 of file ivd_version.h.

Referenced by GetMachineInfo().

Definition at line 82 of file ivd_version.h.

Referenced by GetMajor(), and GetShortVersion().

Definition at line 83 of file ivd_version.h.

Referenced by GetMinor(), and GetShortVersion().

string ivd_ModVersion::m_name [private]

Definition at line 81 of file ivd_version.h.

Referenced by GetModuleName().

Definition at line 84 of file ivd_version.h.

Referenced by GetShortVersion(), and GetSystemMaintRel().

const char* ivd_ModVersion::m_verStr [private]

Definition at line 99 of file ivd_version.h.


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