Public Member Functions | Public Attributes | Private Attributes | Friends

ivd_MigrationID Class Reference
[G_new_group]

<Description:> A more elaborate class description that describes all aspects of class usage etc. More...

#include <ivd_migrationid.h>

Collaboration diagram for ivd_MigrationID:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ivd_MigrationID (cmn_Time a_time, UInt32_t a_count)
 Default constructor.
 ivd_MigrationID (ivd_MigrationID_t a_migID)
virtual ~ivd_MigrationID ()
cmn_Time GetTime ()
UInt32_t GetCount ()
ivd_MigrationID_t GetMigID ()

Public Attributes

 log_CLASSID_m
 Macro to add class name member s_className.

Private Attributes

ivd_MigrationID_t m_migID
cmn_Time m_time
UInt32_t m_count

Friends

IVD_CMN_DECL_d ostream & operator<< (ostream &a_os, const ivd_MigrationID &a_migID)

Detailed Description

<Description:> A more elaborate class description that describes all aspects of class usage etc.

Author:
Toni Pljakoski, HERMES SoftLab
See also:
<reference>

Definition at line 49 of file ivd_migrationid.h.


Constructor & Destructor Documentation

ivd_MigrationID::ivd_MigrationID ( cmn_Time  a_time,
UInt32_t  a_count 
)

Default constructor.

Definition at line 47 of file ivd_migrationid.cpp.

References cmn_Time::GetTime_t(), and m_migID.

                                                                  :
    m_migID(0),
    m_time(a_time),
    m_count(a_count)
{   
    m_migID = (ivd_MigrationID_t(a_time.GetTime_t()) << 8) | ivd_MigrationID_t(a_count);
}

Here is the call graph for this function:

ivd_MigrationID::ivd_MigrationID ( ivd_MigrationID_t  a_migID  ) 

Definition at line 55 of file ivd_migrationid.cpp.

References m_count, and m_time.

                                                          :
    m_migID(a_migID),
    m_time(0),
    m_count(0)
{   
    m_time = time_t(a_migID >> 8);
    m_count = UInt32_t(a_migID & 0x000000FF);
}

ivd_MigrationID::~ivd_MigrationID (  )  [virtual]

Definition at line 64 of file ivd_migrationid.cpp.

                                  { 
    //empty
}


Member Function Documentation

UInt32_t ivd_MigrationID::GetCount (  )  [inline]

Definition at line 71 of file ivd_migrationid.h.

{ return m_count; };

ivd_MigrationID_t ivd_MigrationID::GetMigID (  )  [inline]

Definition at line 73 of file ivd_migrationid.h.

Referenced by _tmain().

{ return m_migID; };    

Here is the caller graph for this function:

cmn_Time ivd_MigrationID::GetTime (  )  [inline]

Definition at line 70 of file ivd_migrationid.h.

Referenced by i_ManagementInterface_i::FileHistory().

{ return m_time; };

Here is the caller graph for this function:


Friends And Related Function Documentation

IVD_CMN_DECL_d ostream& operator<< ( ostream &  a_os,
const ivd_MigrationID a_migID 
) [friend]

Definition at line 68 of file ivd_migrationid.cpp.

                                                                    {
    a_os << "MigID "  << a_migID.m_migID << " " 
         << a_migID.m_time.Time2YMDhms() << ";" << a_migID.m_count;    
    return a_os;
}


Member Data Documentation

Macro to add class name member s_className.

Definition at line 67 of file ivd_migrationid.h.

Definition at line 63 of file ivd_migrationid.h.

Referenced by ivd_MigrationID(), and operator<<().

Definition at line 61 of file ivd_migrationid.h.

Referenced by ivd_MigrationID(), and operator<<().

Definition at line 62 of file ivd_migrationid.h.

Referenced by ivd_MigrationID(), and operator<<().


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