(file) Return to CIMDateTime.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMDateTime.h between version 1.22 and 1.29

version 1.22, 2002/05/09 21:08:55 version 1.29, 2002/07/26 20:01:19
Line 1 
Line 1 
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
   // The Open Group, Tivoli Systems
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 34 
Line 35 
  
 #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 <time.h> #include <time.h>
 #ifdef PEGASUS_INTERNALONLY #ifdef PEGASUS_INTERNALONLY
 #include <iostream> #include <iostream>
Line 47 
Line 49 
    the Java rep is probably tostring, not get string,    the Java rep is probably tostring, not get string,
 */ */
  
   class CIMDateTimeRep;
   
 /** /**
     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. A CIM datetime may contain a date or an interval. CIMDateTime     CIMDateTime. A CIM datetime may contain a date or an interval. CIMDateTime
Line 149 
Line 153 
     */     */
     Boolean isNull() const;     Boolean isNull() const;
  
     /** getString - Returns the string representing the DateTime value of the      /*  ATTN: P3 KS.  This simply returns a string whether the datetime is a
         CIMDateTime Object.  
         ATTN: P3 KS.  This simply returns a string whether the datetime is a  
         real value or the NULL value.  It is up to the user to test.  Should         real value or the NULL value.  It is up to the user to test.  Should
         this be modified so we do something like an interupt on NULL?         this be modified so we do something like an interupt on NULL?
     */     */
       /** getString - Returns the string representing the DateTime value of the
           CIMDateTime Object.
       */
     const char* getString() const;     const char* getString() const;
  
     /** method set - Sets the date time. Creates the CIMDateTime instance from     /** method set - Sets the date time. Creates the CIMDateTime instance from
Line 177 
Line 182 
     */     */
     void clear();     void clear();
  
       /** Makes a deep copy (clone) of the given object. */
       CIMDateTime clone() const;
   
     /**     /**
     Get current time as CIMDateTime. The time returned is always in UTC format.      Get current time as CIMDateTime. The time returned is the local time.
  
     @return CIMDateTime   Contains the current datetime as a CIMDateTime object.     @return CIMDateTime   Contains the current datetime as a CIMDateTime object.
  
Line 211 
Line 219 
  
 private: private:
  
     enum { FORMAT_LENGTH = 25 };      CIMDateTimeRep* _rep;
   
     char _rep[FORMAT_LENGTH + 1];  
   
 #ifdef PEGASUS_INTERNALONLY  
     //  
     // 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 };  
  
     Boolean _set(const char* str);     Boolean _set(const char* str);
  
Line 241 
Line 232 
        @param tm           Contains the tm structure to be updated.        @param tm           Contains the tm structure to be updated.
     */     */
     static void formatDateTime(char* dateTime, tm* tm);     static void formatDateTime(char* dateTime, tm* tm);
 #endif  
  
     /** CIMDateTime - ATTN: Friend operator Test for CIMDateTime      // ATTN
       /** CIMDateTime - Friend operator Test for CIMDateTime
         equality         equality
     */     */
     PEGASUS_COMMON_LINKAGE friend Boolean operator==(     PEGASUS_COMMON_LINKAGE friend Boolean operator==(
Line 262 
Line 253 
 #endif #endif
  
 #define PEGASUS_ARRAY_T CIMDateTime #define PEGASUS_ARRAY_T CIMDateTime
 # include "ArrayInter.h"  # include <Pegasus/Common/ArrayInter.h>
 #undef PEGASUS_ARRAY_T #undef PEGASUS_ARRAY_T
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.22  
changed lines
  Added in v.1.29

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2