Xerces-C++ 3.2.4
|
#include <xercesc/util/XMLDateTime.hpp>
Public Types | |
enum | valueIndex { CentYear = 0 , Month , Day , Hour , Minute , Second , MiliSecond , utc , TOTAL_SIZE } |
enum | utcType { UTC_UNKNOWN = 0 , UTC_STD , UTC_POS , UTC_NEG } |
![]() | |
enum | { LESS_THAN = -1 , EQUAL = 0 , GREATER_THAN = 1 , INDETERMINATE = 2 } |
enum | NumberType { Float , Double , BigDecimal , DateTime , UnKnown } |
Public Member Functions | |
XMLDateTime (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
XMLDateTime (const XMLCh *const, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
XMLDateTime (time_t epoch, bool duration, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
~XMLDateTime () | |
void | setBuffer (const XMLCh *const) |
XMLDateTime (const XMLDateTime &) | |
XMLDateTime & | operator= (const XMLDateTime &) |
virtual XMLCh * | getRawData () const |
Return string representation of the decimal value. More... | |
virtual const XMLCh * | getFormattedString () const |
Return the original and converted value of the original data. More... | |
virtual int | getSign () const |
Returns the sign of this number. More... | |
XMLCh * | getDateTimeCanonicalRepresentation (MemoryManager *const memMgr) const |
XMLCh * | getTimeCanonicalRepresentation (MemoryManager *const memMgr) const |
XMLCh * | getDateCanonicalRepresentation (MemoryManager *const memMgr) const |
void | parseDateTime () |
void | parseDate () |
void | parseTime () |
void | parseDay () |
void | parseMonth () |
void | parseYear () |
void | parseMonthDay () |
void | parseYearMonth () |
void | parseDuration () |
int | getYear () const |
int | getMonth () const |
int | getDay () const |
int | getHour () const |
int | getMinute () const |
int | getSecond () const |
time_t | getEpoch (bool duration=false) const |
![]() | |
virtual | ~XMLNumber () |
virtual XMLCh * | getRawData () const =0 |
Return string representation of the decimal value. More... | |
virtual const XMLCh * | getFormattedString () const =0 |
Return the original and converted value of the original data. More... | |
virtual int | getSign () const =0 |
Returns the sign of this number. More... | |
![]() | |
void * | operator new (size_t size) |
This method overrides operator new. More... | |
void * | operator new (size_t size, MemoryManager *memMgr) |
This method defines a custom operator new, that will use the provided memory manager to perform the allocation. More... | |
void * | operator new (size_t size, void *ptr) |
This method overrides placement operator new. More... | |
void | operator delete (void *p) |
This method overrides operator delete. More... | |
void | operator delete (void *p, MemoryManager *memMgr) |
This method provides a matching delete for the custom operator new. More... | |
void | operator delete (void *p, void *ptr) |
This method provides a matching delete for the placement new. More... | |
Static Public Member Functions | |
static int | compare (const XMLDateTime *const, const XMLDateTime *const) |
static int | compare (const XMLDateTime *const, const XMLDateTime *const, bool) |
static int | compareOrder (const XMLDateTime *const, const XMLDateTime *const) |
![]() | |
static XMLNumber * | loadNumber (XMLNumber::NumberType numType, XSerializeEngine &serEng) |
Friends | |
class | XSValue |
Additional Inherited Members | |
![]() | |
XMLNumber () | |
XMLNumber (const XMLNumber &) | |
![]() | |
XMemory () | |
Protected default constructor. More... | |
enum XMLDateTime::utcType |
XMLDateTime::XMLDateTime | ( | MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager | ) |
XMLDateTime::XMLDateTime | ( | const XMLCh * const | , |
MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager |
||
) |
XMLDateTime::XMLDateTime | ( | time_t | epoch, |
bool | duration, | ||
MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager |
||
) |
XMLDateTime::~XMLDateTime | ( | ) |
XMLDateTime::XMLDateTime | ( | const XMLDateTime & | ) |
|
static |
|
static |
|
static |
XMLCh * XMLDateTime::getDateCanonicalRepresentation | ( | MemoryManager *const | memMgr | ) | const |
XMLCh * XMLDateTime::getDateTimeCanonicalRepresentation | ( | MemoryManager *const | memMgr | ) | const |
int XMLDateTime::getDay | ( | ) | const |
time_t XMLDateTime::getEpoch | ( | bool | duration = false | ) | const |
|
virtual |
Return the original and converted value of the original data.
(applicable to double/float)
The internal buffer is returned directly, user is not required to delete the returned buffer
Implements XMLNumber.
int XMLDateTime::getHour | ( | ) | const |
int XMLDateTime::getMinute | ( | ) | const |
int XMLDateTime::getMonth | ( | ) | const |
|
virtual |
Return string representation of the decimal value.
A decimal point will be included as necessary. Similar to toString above, but the internal buffer is returned directly, user is not required to delete the returned buffer
Implements XMLNumber.
int XMLDateTime::getSecond | ( | ) | const |
|
virtual |
XMLCh * XMLDateTime::getTimeCanonicalRepresentation | ( | MemoryManager *const | memMgr | ) | const |
int XMLDateTime::getYear | ( | ) | const |
XMLDateTime & XMLDateTime::operator= | ( | const XMLDateTime & | ) |
void XMLDateTime::parseDate | ( | ) |
void XMLDateTime::parseDateTime | ( | ) |
void XMLDateTime::parseDay | ( | ) |
void XMLDateTime::parseDuration | ( | ) |
void XMLDateTime::parseMonth | ( | ) |
void XMLDateTime::parseMonthDay | ( | ) |
void XMLDateTime::parseTime | ( | ) |
void XMLDateTime::parseYear | ( | ) |
void XMLDateTime::parseYearMonth | ( | ) |
void XMLDateTime::setBuffer | ( | const XMLCh * const | aString | ) |
|
friend |