CmpiDateTime Class Reference

This class represents the instance of a CIM DateTime artifact. More...

#include <CmpiDateTime.h>

Inheritance diagram for CmpiDateTime:

Inheritance graph
[legend]
Collaboration diagram for CmpiDateTime:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CmpiDateTime ()
 Constructor - Return current time and date.
 CmpiDateTime (const char *utcTime)
 Constructor - Initialize time and date according to <utcTime>.
 CmpiDateTime (const CMPIUint64 binTime, const CMPIBoolean interval)
 Constructor - Initialize time and date according to <binTime>.
CMPIBoolean isInterval ()
 isInterval - Tests whether time is an interval value.
CMPIUint64 getDateTime ()
 getDateTime - Returns DateTime in binary format.

Protected Member Functions

 CmpiDateTime (const CMPIDateTime *enc)
 Protected constructor used internally.
CMPIDateTimegetEnc () const
 Gets the encapsulated CMPIDateTime.
void * makeDateTime (CMPIBroker *mb)
void * makeDateTime (CMPIBroker *mb, const char *utcTime)
void * makeDateTime (CMPIBroker *mb, const CMPIUint64 binTime, const CMPIBoolean interval)

Detailed Description

This class represents the instance of a CIM DateTime artifact.

Definition at line 35 of file CmpiDateTime.h.


Constructor & Destructor Documentation

CmpiDateTime::CmpiDateTime const CMPIDateTime enc  )  [inline, protected]
 

Protected constructor used internally.

Definition at line 40 of file CmpiDateTime.h.

References CmpiObject::enc.

CmpiDateTime::CmpiDateTime  )  [inline]
 

Constructor - Return current time and date.

Definition at line 56 of file CmpiDateTime.h.

References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeDateTime().

CmpiDateTime::CmpiDateTime const char *  utcTime  )  [inline]
 

Constructor - Initialize time and date according to <utcTime>.

Parameters:
utcTime Date/Time definition in UTC format

Definition at line 63 of file CmpiDateTime.h.

References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeDateTime().

CmpiDateTime::CmpiDateTime const CMPIUint64  binTime,
const CMPIBoolean  interval
[inline]
 

Constructor - Initialize time and date according to <binTime>.

Parameters:
binTime Date/Time definition in binary format in microsecods starting since 00:00:00 GMT, Jan 1,1970.
interval defines Date/Time definition to be an interval value

Definition at line 72 of file CmpiDateTime.h.

References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeDateTime().


Member Function Documentation

CMPIUint64 CmpiDateTime::getDateTime  ) 
 

getDateTime - Returns DateTime in binary format.

Returns:
Uint64 DateTime in binary.

Definition at line 1202 of file CmpiImpl.cpp.

References CMPI_RC_OK, _CMPIDateTime::ft, _CMPIDateTimeFT::getBinaryFormat, getEnc(), and _CMPIStatus::rc.

CMPIDateTime* CmpiDateTime::getEnc  )  const [inline, protected]
 

Gets the encapsulated CMPIDateTime.

Definition at line 45 of file CmpiDateTime.h.

References CmpiObject::enc.

Referenced by getDateTime(), and isInterval().

CMPIBoolean CmpiDateTime::isInterval  ) 
 

isInterval - Tests whether time is an interval value.

Returns:
CmpiBoolean true when time is an interval value.

Definition at line 1195 of file CmpiImpl.cpp.

References CMPI_RC_OK, CmpiBoolean, _CMPIDateTime::ft, getEnc(), _CMPIDateTimeFT::isInterval, and _CMPIStatus::rc.

void * CmpiDateTime::makeDateTime CMPIBroker mb,
const CMPIUint64  binTime,
const CMPIBoolean  interval
[protected]
 

Definition at line 1187 of file CmpiImpl.cpp.

References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newDateTimeFromBinary, and _CMPIStatus::rc.

void * CmpiDateTime::makeDateTime CMPIBroker mb,
const char *  utcTime
[protected]
 

Definition at line 1180 of file CmpiImpl.cpp.

References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newDateTimeFromChars, and _CMPIStatus::rc.

void * CmpiDateTime::makeDateTime CMPIBroker mb  )  [protected]
 

Definition at line 1173 of file CmpiImpl.cpp.

References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newDateTime, and _CMPIStatus::rc.

Referenced by CmpiDateTime().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:12:05 2006 for openwbem by  doxygen 1.4.6