Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6xpathtime.h
Go to the documentation of this file.
1 
10 #ifndef P6XPATHTTIME_H__
11 #define P6XPATHTIME_H__ 1
12 
13 #include "p6err.h"
14 
15 
16 #ifdef __cplusplus
17 namespace P6R {
18 extern "C" {
19 #endif
20 
27 #undef INTERFACE
28 #define INTERFACE p6IXpathTime
30 {
44  P6DECLCOMMETHOD(setTime)(P6THIS_ P6XPATH_TYPE type, P6TIME timeStamp, P6INT32 timeZone ) P6PURE;
45 
59  P6DECLCOMMETHOD(getTime)(P6THIS_ P6XPATH_TYPE* pType, P6TIME* pTimeStamp, P6INT32* pTimeZone ) P6PURE;
60 
72  P6DECLCOMMETHOD(extractYear)(P6THIS_ P6INT32* pYear ) P6PURE;
73 
85  P6DECLCOMMETHOD(extractDay)(P6THIS_ P6INT32* pDayOfMonth ) P6PURE;
86 
98  P6DECLCOMMETHOD(extractDayOfYear)(P6THIS_ P6INT32* pDayOfYear ) P6PURE;
99 
111  P6DECLCOMMETHOD(extractDayOfWeek)(P6THIS_ P6INT32* pDayOfWeek ) P6PURE;
112 
124  P6DECLCOMMETHOD(extractMonth)(P6THIS_ P6INT32* pMonth ) P6PURE;
125 
137  P6DECLCOMMETHOD(extractHours)(P6THIS_ P6INT32* pHour ) P6PURE;
138 
150  P6DECLCOMMETHOD(extractMinutes)(P6THIS_ P6INT32* pMinutes ) P6PURE;
151 
163  P6DECLCOMMETHOD(extractSeconds)(P6THIS_ P6INT32* pSeconds ) P6PURE;
164 
175  P6DECLCOMMETHOD(extractTimezone)(P6THIS_ P6INT32* pDelta ) P6PURE;
176 
187  P6DECLCOMMETHOD(expand)(P6THIS_ P6TIMEINFO* pExpandedTime ) P6PURE;
188 
200  P6DECLCOMMETHOD(toDate)(P6THIS_ p6IXpathTime** pConvert ) P6PURE;
201 
212  P6DECLCOMMETHOD(toDateTime)(P6THIS_ p6IXpathTime** pConvert ) P6PURE;
213 
225  P6DECLCOMMETHOD(toTime)(P6THIS_ p6IXpathTime** pConvert ) P6PURE;
226 
242  P6DECLCOMMETHOD(toStringA)(P6THIS_ P6CHAR* pBuffer, P6UINT32 cBuffer, P6UINT32* pWritten ) P6PURE;
243 
259  P6DECLCOMMETHOD(toStringW)(P6THIS_ P6WCHAR* pBuffer, P6UINT32 cBuffer, P6UINT32* pWritten ) P6PURE;
260 
272  P6DECLCOMMETHOD(lessThan)(P6THIS_ p6IXpathTime* pTime, P6BOOL* pbResult ) P6PURE;
273 };
274 
275 // {352A0954-16B9-4833-B65A-EAFCD3641F8C}
276 #define IF_p6IXpathTime {0x352a0954,0x16b9,0x4833,{0xb6,0x5a,0xea,0xfc,0xd3,0x64,0x1f,0x8c}}
277 
278 #ifdef __cplusplus
279 }
280 } // namespace
281 #endif
282 
283 
284 
285 #endif
286 
287 
288 
289 
290 
291 
292 
293 
294 
uint32_t P6UINT32
Definition: p6types.h:77
#define P6PURE
Definition: p6defs.h:192
Standard error codes.
unsigned char P6BOOL
Boolean type.
Definition: p6types.h:133
This interface is an implementation of the following XPath 2.0 time types: xs:date, xs:dateTime, xs:time.
Definition: p6xpathtime.h:29
P6XPATH_TYPE
Part of the XPath type system.
Definition: p6domxmltypes.h:46
wchar_t P6WCHAR
Wide character type see p6i18n.h.
Definition: p6types.h:111
A structure that is used to describe a specified time.
Definition: p6types.h:264
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
P6INT64 P6TIME
The wallclock time represented as the number of microseconds since midnight January 1 1970 UTC...
Definition: p6types.h:259
#define P6THIS_
Definition: p6defs.h:193
int32_t P6INT32
Definition: p6types.h:76
char P6CHAR
Narrow character type.
Definition: p6types.h:105
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188