source: trunk/VUT/GtpVisibilityPreprocessor/support/xerces/include/xercesc/validators/datatype/DateTimeDatatypeValidator.hpp @ 358

Revision 358, 4.7 KB checked in by bittner, 19 years ago (diff)

xerces added

RevLine 
[358]1/*
2 * Copyright 2001,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Id: DateTimeDatatypeValidator.hpp,v 1.11 2004/09/08 13:56:52 peiyongz Exp $
19 * $Log: DateTimeDatatypeValidator.hpp,v $
20 * Revision 1.11  2004/09/08 13:56:52  peiyongz
21 * Apache License Version 2.0
22 *
23 * Revision 1.10  2004/01/29 11:51:22  cargilld
24 * Code cleanup changes to get rid of various compiler diagnostic messages.
25 *
26 * Revision 1.9  2003/12/23 21:50:36  peiyongz
27 * Absorb exception thrown in getCanonicalRepresentation and return 0,
28 * only validate when required
29 *
30 * Revision 1.8  2003/12/17 00:18:38  cargilld
31 * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data.
32 *
33 * Revision 1.7  2003/11/28 18:53:07  peiyongz
34 * Support for getCanonicalRepresentation
35 *
36 * Revision 1.6  2003/10/02 19:21:06  peiyongz
37 * Implementation of Serialization/Deserialization
38 *
39 * Revision 1.5  2003/08/14 03:00:11  knoaman
40 * Code refactoring to improve performance of validation.
41 *
42 * Revision 1.4  2003/05/15 18:53:26  knoaman
43 * Partial implementation of the configurable memory manager.
44 *
45 * Revision 1.3  2002/12/18 14:17:55  gareth
46 * Fix to bug #13438. When you eant a vector that calls delete[] on its members you should use RefArrayVectorOf.
47 *
48 * Revision 1.2  2002/11/04 14:53:28  tng
49 * C++ Namespace Support.
50 *
51 * Revision 1.1.1.1  2002/02/01 22:22:40  peiyongz
52 * sane_include
53 *
54 * Revision 1.1  2001/11/07 19:18:52  peiyongz
55 * DateTime Port
56 *
57 */
58
59#if !defined(DATETIME_DATATYPE_VALIDATOR_HPP)
60#define DATETIME_DATATYPE_VALIDATOR_HPP
61
62#include <xercesc/validators/datatype/DateTimeValidator.hpp>
63
64XERCES_CPP_NAMESPACE_BEGIN
65
66class VALIDATORS_EXPORT DateTimeDatatypeValidator : public DateTimeValidator
67{
68public:
69
70    // -----------------------------------------------------------------------
71    //  Public ctor/dtor
72    // -----------------------------------------------------------------------
73        /** @name Constructors and Destructor */
74    //@{
75
76    DateTimeDatatypeValidator
77    (
78        MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
79    );
80    DateTimeDatatypeValidator
81    (
82        DatatypeValidator* const baseValidator
83        , RefHashTableOf<KVStringPair>* const facets
84        , RefArrayVectorOf<XMLCh>* const enums
85        , const int finalSet
86        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
87    );
88    ~DateTimeDatatypeValidator();
89
90        //@}
91
92    /**
93      * Returns an instance of the base datatype validator class
94          * Used by the DatatypeValidatorFactory.
95      */
96    virtual DatatypeValidator* newInstance
97    (
98        RefHashTableOf<KVStringPair>* const facets
99        , RefArrayVectorOf<XMLCh>* const enums
100        , const int finalSet
101        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
102    );
103
104    virtual const XMLCh* getCanonicalRepresentation
105                        (
106                          const XMLCh*         const rawData
107                        ,       MemoryManager* const memMgr = 0
108                        ,       bool                 toValidate = false
109                        ) const;
110
111    /***
112     * Support for Serialization/De-serialization
113     ***/
114    DECL_XSERIALIZABLE(DateTimeDatatypeValidator)
115
116protected:
117
118    // -----------------------------------------------------------------------
119    //  implementation of (DateTimeValidator's) virtual interface
120    // -----------------------------------------------------------------------
121    virtual XMLDateTime*          parse(const XMLCh* const, MemoryManager* const manager);
122    virtual void                  parse(XMLDateTime* const);
123
124private:
125    // -----------------------------------------------------------------------
126    //  Unimplemented constructors and operators
127    // -----------------------------------------------------------------------
128    DateTimeDatatypeValidator(const DateTimeDatatypeValidator&);
129    DateTimeDatatypeValidator& operator=(const DateTimeDatatypeValidator&);
130};
131
132XERCES_CPP_NAMESPACE_END
133
134#endif
135
136/**
137  * End of file DateTimeDatatypeValidator.hpp
138  */
139
Note: See TracBrowser for help on using the repository browser.