Class Hierarchy   Class Index   Method Index  

CHMdateTime.h

00001 //---------------------------------------------------------------------------
00002 // Module: CHMdateTime
00003 //
00004 // Description:
00005 //
00006 // Thin interface wrapper class around HL7dateTime
00007 //
00008 //---------------------------------------------------------------------------
00009 
00010 #ifndef __CHM_DATETIME__
00011 #define __CHM_DATETIME__
00012 
00013 #include <CHM/CHMminCInclude.h>
00014 #include <time.h>
00015 
00016 CHM_DLL_FUNC(CHMdateTimeCreate)
00017 (
00018    CHMdateTimeHandle* Handle
00019 );
00020 
00021 CHM_DLL_FUNC(CHMdateTimeAddRef)
00022 (
00023    CHMdateTimeHandle Handle
00024 );
00025 
00026 CHM_DLL_FUNC(CHMdateTimeRelease)
00027 (
00028    CHMdateTimeHandle Handle
00029 );
00030 
00031 CHM_DLL_FUNC(CHMdateTimeGetDATE)
00032 (
00033    CHMdateTimeHandle Handle,
00034    DATE*             pValue
00035 );
00036 
00037 CHM_DLL_FUNC(CHMdateTimeGetSecondFraction)
00038 (
00039    CHMdateTimeHandle Handle,
00040    double*           pValue
00041 );
00042 
00043 CHM_DLL_FUNC(CHMdateTimeGetZone)
00044 (
00045    CHMdateTimeHandle Handle,
00046    short*            pValue
00047 );
00048 
00049 CHM_DLL_FUNC(CHMdateTimeGetOffsetInMinutes)
00050 (
00051    CHMdateTimeHandle Handle,
00052    short*            pValue
00053 );
00054 
00055 CHM_DLL_FUNC(CHMdateTimeGetOffsetIsDefined)
00056 (
00057    CHMdateTimeHandle Handle,
00058    short*            pValue
00059 );
00060 
00061 CHM_DLL_FUNC(CHMdateTimeSetDATE)
00062 (
00063    CHMdateTimeHandle Handle,
00064    DATE              NewValue
00065 );
00066 
00067 CHM_DLL_FUNC(CHMdateTimeSetSecondFraction)
00068 (
00069    CHMdateTimeHandle Handle,
00070    double            NewValue
00071 );
00072 
00073 CHM_DLL_FUNC(CHMdateTimeSetZone)
00074 (
00075    CHMdateTimeHandle Handle,
00076    short             NewValue
00077 );
00078 
00079 CHM_DLL_FUNC(CHMdateTimeSetOffsetInMinutes)
00080 (
00081    CHMdateTimeHandle Handle,
00082    short             NewValue,
00083    short             IsDefined
00084 );
00085 
00086 CHM_DLL_FUNC(CHMdateTimeGetIsNull)
00087 (
00088     CHMdateTimeHandle Handle,
00089     short*            pValue
00090 );
00091 
00092 CHM_DLL_FUNC(CHMdateTimeGetTimeT)
00093 (
00094    CHMdateTimeHandle Handle,
00095    time_t*           pValue
00096 );
00097 
00098 CHM_DLL_FUNC(CHMdateTimeSetTimeT)
00099 (
00100    CHMdateTimeHandle Handle,
00101    time_t            Value
00102 );
00103 
00104 CHM_DLL_FUNC(CHMdateTimeSetNow)
00105 (
00106    CHMdateTimeHandle Handle
00107 );
00108 
00109 CHM_DLL_FUNC(CHMdateTimeFormat)
00110 (
00111    CHMdateTimeHandle Handle,
00112    const CHMchar*    pFormat,
00113    const CHMchar**   ppOutput
00114 );
00115 
00116 CHM_DLL_FUNC(CHMdateTimeSetNull)
00117 (
00118    CHMdateTimeHandle Handle
00119 );
00120 
00121 #endif // end of defensive include