Public Member Functions | Public Attributes | Private Attributes | Friends

rm_TimeStamp Class Reference
[Resource Manager Database Library]

#include <rmdb.h>

List of all members.

Public Member Functions

 rm_TimeStamp ()
 rm_TimeStamp (const rm_TimeStamp &a_timestamp)
virtual ~rm_TimeStamp ()
time_t GetTime ()
rm_TimeStampoperator= (const time_t &a_time)
rm_TimeStampoperator= (const ISC_TIMESTAMP &a_time)

Public Attributes

 log_CLASSID_m

Private Attributes

ISC_TIMESTAMP m_iscTime
time_t m_tTime

Friends

class rm_Drive
class rm_MediumVol

Detailed Description

Definition at line 62 of file rmdb.h.


Constructor & Destructor Documentation

rm_TimeStamp::rm_TimeStamp (  ) 

Definition at line 52 of file timestamp.cpp.

References localtime(), m_iscTime, and m_tTime.

                          {
    
    time(&m_tTime);
    struct tm * tmTime;
    tmTime = localtime(&m_tTime);
    isc_encode_timestamp(tmTime, &m_iscTime);
}

Here is the call graph for this function:

rm_TimeStamp::rm_TimeStamp ( const rm_TimeStamp a_timestamp  ) 

Definition at line 60 of file timestamp.cpp.

References m_iscTime, and m_tTime.

                                                         {
    m_iscTime = a_timeStamp.m_iscTime;
    m_tTime = a_timeStamp.m_tTime;
}

rm_TimeStamp::~rm_TimeStamp (  )  [virtual]

Definition at line 65 of file timestamp.cpp.

                           {
    //empty;
}


Member Function Documentation

time_t rm_TimeStamp::GetTime (  ) 

Definition at line 92 of file timestamp.cpp.

References m_tTime.

Referenced by rm_Operator::SelectDrive(), and rm_Operator::SelectMediumVol().

                             {
    return m_tTime;
}

Here is the caller graph for this function:

rm_TimeStamp & rm_TimeStamp::operator= ( const ISC_TIMESTAMP &  a_time  ) 

Definition at line 80 of file timestamp.cpp.

References m_iscTime, and m_tTime.

                                                                 {
    
    m_iscTime = a_time;

    struct tm tmTime;
    isc_decode_timestamp(&m_iscTime, &tmTime);
    m_tTime = mktime(&tmTime);
    return *this;
}

rm_TimeStamp & rm_TimeStamp::operator= ( const time_t &  a_time  ) 

Definition at line 70 of file timestamp.cpp.

References localtime(), m_iscTime, and m_tTime.

                                                          {
    
    m_tTime = a_time;
    
    struct tm * tmTime;
    tmTime = localtime(&a_time);
    isc_encode_timestamp(tmTime, &m_iscTime);
    return *this;
}

Here is the call graph for this function:


Friends And Related Function Documentation

friend class rm_Drive [friend]

Definition at line 63 of file rmdb.h.

friend class rm_MediumVol [friend]

Definition at line 64 of file rmdb.h.


Member Data Documentation

Definition at line 79 of file rmdb.h.

ISC_TIMESTAMP rm_TimeStamp::m_iscTime [private]
time_t rm_TimeStamp::m_tTime [private]

Definition at line 67 of file rmdb.h.

Referenced by GetTime(), operator=(), and rm_TimeStamp().


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