00001 /* 00002 * Copyright (c) 2001-2006 00003 * DecisionSoft Limited. All rights reserved. 00004 * Copyright (c) 2004-2006 00005 * Progress Software Corporation. All rights reserved. 00006 * Copyright (c) 2004-2006 00007 * Oracle. All rights reserved. 00008 * 00009 * See the file LICENSE for redistribution information. 00010 * 00011 * $Id: DateOrTimeType.hpp,v 1.7 2006/11/01 16:37:14 jpcs Exp $ 00012 */ 00013 00014 #ifndef _DATEORTIMETYPE_HPP 00015 #define _DATEORTIMETYPE_HPP 00016 00017 #include <xercesc/util/XMLString.hpp> 00018 #include <xqilla/items/AnyAtomicType.hpp> 00019 00020 #include <xqilla/framework/XQillaExport.hpp> 00021 00022 class ATDecimalOrDerived; 00023 class ATDurationOrDerived; 00024 00025 class XQILLA_API DateOrTimeType : public AnyAtomicType 00026 { 00027 public: 00028 typedef RefCountPointer<const DateOrTimeType> Ptr; 00029 00030 /* is this type date or time based? Return true by default */ 00031 virtual bool isDateOrTimeTypeValue() const; 00032 00036 virtual bool hasTimezone() const = 0; 00037 00038 }; 00039 00040 #endif // _ATDATETIMEORDERIVED_HPP