cmpi/CmpiDateTime.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * $Id: CmpiDateTime.h,v 1.3 2008/07/09 19:36:59 tyreld Exp $
00004  *
00005  * (C) Copyright IBM Corp. 2003, 2005, 2008
00006  *
00007  * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
00008  * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
00009  * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
00010  *
00011  * You can obtain a current copy of the Eclipse Public License from
00012  * http://www.opensource.org/licenses/eclipse-1.0.txt
00013  *
00014  * Author:        Adrian Schuur <schuur@de.ibm.com>
00015  * Contributors:  Heidi Neumann, heidineu@de.ibm.com
00016  *                Angel Nunez Mencias, anunez@de.ibm.com
00017  *                Viktor Mihajlovski, mihajlov@de.ibm.com
00018  *
00019  * Description: CMPI Datetime Definitions
00020  *
00021  */
00022 
00023 #ifndef _CmpiDateTime_h_
00024 #define _CmpiDateTime_h_
00025 
00026 #include "cmpidt.h"
00027 #include "cmpift.h"
00028 
00029 #include "Linkage.h"
00030 #include "CmpiObject.h"
00031 #include "CmpiStatus.h"
00032 #include "CmpiBaseMI.h"
00033 
00034 
00038 class CMPI_PROVIDER_LINKAGE CmpiDateTime : public CmpiObject {
00039 
00040 protected:
00041    void *makeDateTime(CMPIBroker *mb);
00042    void *makeDateTime(CMPIBroker *mb, const char* utcTime);
00043    void *makeDateTime(CMPIBroker *mb, const CMPIUint64 binTime,
00044                                     const CmpiBoolean interval);
00045 private:
00046 public:
00047 
00050    CmpiDateTime(const CMPIDateTime* enc);
00051 
00054    CmpiDateTime();
00055 
00056    CmpiDateTime(const CmpiDateTime& original);
00057 
00061    CmpiDateTime(const char* utcTime);
00062 
00068    CmpiDateTime(const CMPIUint64 binTime, const CmpiBoolean interval);
00069 
00073    CmpiBoolean isInterval() const;
00074 
00075 
00079    CMPIUint64 getDateTime() const;
00080 
00083    CMPIDateTime *getEnc() const;
00084 };
00085 
00086 #endif

Generated on Sat Feb 26 13:04:34 2022 for cmpi by  doxygen 1.4.6