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: DateDatatypeValidator.hpp,v 1.9 2004/09/08 13:56:52 peiyongz Exp $
|
---|
19 | * $Log: DateDatatypeValidator.hpp,v $
|
---|
20 | * Revision 1.9 2004/09/08 13:56:52 peiyongz
|
---|
21 | * Apache License Version 2.0
|
---|
22 | *
|
---|
23 | * Revision 1.8 2004/01/29 11:51:22 cargilld
|
---|
24 | * Code cleanup changes to get rid of various compiler diagnostic messages.
|
---|
25 | *
|
---|
26 | * Revision 1.7 2003/12/17 00:18:38 cargilld
|
---|
27 | * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data.
|
---|
28 | *
|
---|
29 | * Revision 1.6 2003/10/02 19:21:06 peiyongz
|
---|
30 | * Implementation of Serialization/Deserialization
|
---|
31 | *
|
---|
32 | * Revision 1.5 2003/08/14 03:00:11 knoaman
|
---|
33 | * Code refactoring to improve performance of validation.
|
---|
34 | *
|
---|
35 | * Revision 1.4 2003/05/15 18:53:26 knoaman
|
---|
36 | * Partial implementation of the configurable memory manager.
|
---|
37 | *
|
---|
38 | * Revision 1.3 2002/12/18 14:17:55 gareth
|
---|
39 | * Fix to bug #13438. When you eant a vector that calls delete[] on its members you should use RefArrayVectorOf.
|
---|
40 | *
|
---|
41 | * Revision 1.2 2002/11/04 14:53:28 tng
|
---|
42 | * C++ Namespace Support.
|
---|
43 | *
|
---|
44 | * Revision 1.1.1.1 2002/02/01 22:22:40 peiyongz
|
---|
45 | * sane_include
|
---|
46 | *
|
---|
47 | * Revision 1.1 2001/11/07 19:18:52 peiyongz
|
---|
48 | * DateTime Port
|
---|
49 | *
|
---|
50 | */
|
---|
51 |
|
---|
52 | #if !defined(DATE_DATATYPE_VALIDATOR_HPP)
|
---|
53 | #define DATE_DATATYPE_VALIDATOR_HPP
|
---|
54 |
|
---|
55 | #include <xercesc/validators/datatype/DateTimeValidator.hpp>
|
---|
56 |
|
---|
57 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
58 |
|
---|
59 | class VALIDATORS_EXPORT DateDatatypeValidator : public DateTimeValidator
|
---|
60 | {
|
---|
61 | public:
|
---|
62 |
|
---|
63 | // -----------------------------------------------------------------------
|
---|
64 | // Public ctor/dtor
|
---|
65 | // -----------------------------------------------------------------------
|
---|
66 | /** @name Constructors and Destructor */
|
---|
67 | //@{
|
---|
68 |
|
---|
69 | DateDatatypeValidator
|
---|
70 | (
|
---|
71 | MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
|
---|
72 | );
|
---|
73 | DateDatatypeValidator
|
---|
74 | (
|
---|
75 | DatatypeValidator* const baseValidator
|
---|
76 | , RefHashTableOf<KVStringPair>* const facets
|
---|
77 | , RefArrayVectorOf<XMLCh>* const enums
|
---|
78 | , const int finalSet
|
---|
79 | , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
|
---|
80 | );
|
---|
81 | ~DateDatatypeValidator();
|
---|
82 |
|
---|
83 | //@}
|
---|
84 |
|
---|
85 | /**
|
---|
86 | * Returns an instance of the base datatype validator class
|
---|
87 | * Used by the DatatypeValidatorFactory.
|
---|
88 | */
|
---|
89 | virtual DatatypeValidator* newInstance
|
---|
90 | (
|
---|
91 | RefHashTableOf<KVStringPair>* const facets
|
---|
92 | , RefArrayVectorOf<XMLCh>* const enums
|
---|
93 | , const int finalSet
|
---|
94 | , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
|
---|
95 | );
|
---|
96 |
|
---|
97 | /***
|
---|
98 | * Support for Serialization/De-serialization
|
---|
99 | ***/
|
---|
100 | DECL_XSERIALIZABLE(DateDatatypeValidator)
|
---|
101 |
|
---|
102 | protected:
|
---|
103 |
|
---|
104 | // -----------------------------------------------------------------------
|
---|
105 | // implementation of (DateTimeValidator's) virtual interface
|
---|
106 | // -----------------------------------------------------------------------
|
---|
107 | virtual XMLDateTime* parse(const XMLCh* const, MemoryManager* const manager);
|
---|
108 | virtual void parse(XMLDateTime* const);
|
---|
109 |
|
---|
110 | private:
|
---|
111 | // -----------------------------------------------------------------------
|
---|
112 | // Unimplemented constructors and operators
|
---|
113 | // -----------------------------------------------------------------------
|
---|
114 | DateDatatypeValidator(const DateDatatypeValidator&);
|
---|
115 | DateDatatypeValidator& operator=(const DateDatatypeValidator&);
|
---|
116 | };
|
---|
117 |
|
---|
118 | XERCES_CPP_NAMESPACE_END
|
---|
119 |
|
---|
120 | #endif
|
---|
121 |
|
---|
122 | /**
|
---|
123 | * End of file DateDatatypeValidator.hpp
|
---|
124 | */
|
---|
125 |
|
---|