version 1.38, 2004/05/05 19:43:41
|
version 1.39, 2004/05/31 10:47:41
|
|
|
// Roger Kumpf, Hewlett Packard Company (roger_kumpf@hp.com) | // Roger Kumpf, Hewlett Packard Company (roger_kumpf@hp.com) |
// Carol Ann Krug Graves, Hewlett-Packard Company | // Carol Ann Krug Graves, Hewlett-Packard Company |
// (carolann_graves@hp.com) | // (carolann_graves@hp.com) |
// Amit K Arora (amita@in.ibm.com) for PEP-101 |
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/Array.h> | #include <Pegasus/Common/Array.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/AutoPtr.h> |
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class CIMDateTimeRep |
class CIMDateTimeRep; |
{ |
|
public: |
|
enum { FORMAT_LENGTH = 25 }; |
|
|
|
// |
|
// Length of the string required to store only the date and time without |
|
// the UTC sign and UTC offset. |
|
// Format is yyyymmddhhmmss. |
|
// Note : The size does not include the null byte. |
|
// |
|
enum { DATE_TIME_LENGTH = 14 }; |
|
|
|
// |
|
// Length of the string required to store the formatted date and time |
|
// Format is yyyy:mm:dd:hh:mm:ss. |
|
// |
|
enum { FORMATTED_DATE_TIME = 20 }; |
|
|
|
char data[FORMAT_LENGTH + 1]; |
|
}; |
|
|
|
| |
/** | /** |
The CIMDateTime class represents the CIM datetime data type as a C++ class | The CIMDateTime class represents the CIM datetime data type as a C++ class |
|
|
*/ | */ |
CIMDateTime(const CIMDateTime& x); | CIMDateTime(const CIMDateTime& x); |
| |
|
/** CIMDateTime destructor. */ |
|
~CIMDateTime(); |
| |
/** Assigns one instance of the CIMDateTime object to another. | /** Assigns one instance of the CIMDateTime object to another. |
@param x The CIMDateTime Object to assign to the CIMDateTime object. | @param x The CIMDateTime Object to assign to the CIMDateTime object. |
|
|
| |
private: | private: |
| |
AutoPtr<CIMDateTimeRep> _rep;//PEP101 |
CIMDateTimeRep* _rep; |
Boolean _set(const String & dateTimeStr); | Boolean _set(const String & dateTimeStr); |
}; | }; |
/** | /** |