CmpiDateTime Class Reference

#include <cmpi/CmpiDateTime.h>

Inheritance diagram for CmpiDateTime:
CmpiObject

List of all members.

Public Member Functions

 CmpiDateTime (const CMPIDateTime *enc)
 CmpiDateTime ()
 CmpiDateTime (const CmpiDateTime &original)
 CmpiDateTime (const char *utcTime)
 CmpiDateTime (const CMPIUint64 binTime, const CmpiBoolean interval)
CmpiBoolean isInterval () const
CMPIUint64 getDateTime () const
CMPIDateTimegetEnc () const

Protected Member Functions

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.


Constructor & Destructor Documentation

CmpiDateTime::CmpiDateTime ( const CMPIDateTime enc  ) 

Constructor from CMPI type

CmpiDateTime::CmpiDateTime (  ) 

Constructor - Return current time and date.

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

CmpiDateTime::CmpiDateTime ( const CmpiDateTime original  ) 
CmpiDateTime::CmpiDateTime ( const char *  utcTime  ) 

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

Parameters:
utcTime Date/Time definition in UTC format

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

CmpiDateTime::CmpiDateTime ( const CMPIUint64  binTime,
const CmpiBoolean  interval 
)

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

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


Member Function Documentation

CMPIUint64 CmpiDateTime::getDateTime (  )  const

getDateTime - Returns DateTime in binary format.

Returns:
Uint64 DateTime in binary.

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

Referenced by CmpiDateTime().

CMPIDateTime * CmpiDateTime::getEnc (  )  const

Gets the encapsulated CMPIDateTime.

References CmpiObject::enc.

Referenced by CmpiData::CmpiData(), getDateTime(), and isInterval().

CmpiBoolean CmpiDateTime::isInterval (  )  const

isInterval - Tests whether time is an interval value.

Returns:
CmpiBoolean true when time is an interval value.

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

Referenced by CmpiDateTime().

void * CmpiDateTime::makeDateTime ( CMPIBroker mb,
const CMPIUint64  binTime,
const CmpiBoolean  interval 
) [protected]
void * CmpiDateTime::makeDateTime ( CMPIBroker mb,
const char *  utcTime 
) [protected]
void * CmpiDateTime::makeDateTime ( CMPIBroker mb  )  [protected]

The documentation for this class was generated from the following files:
Generated on Mon Jul 5 13:04:54 2010 for cmpi by  doxygen 1.6.3