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

Revision 358, 4.1 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: MonthDayDatatypeValidator.hpp,v 1.9 2004/09/08 13:56:53 peiyongz Exp $
19 * $Log: MonthDayDatatypeValidator.hpp,v $
20 * Revision 1.9  2004/09/08 13:56:53  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:39  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:42  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(MONTHDAY_DATATYPE_VALIDATOR_HPP)
53#define MONTHDAY_DATATYPE_VALIDATOR_HPP
54
55#include <xercesc/validators/datatype/DateTimeValidator.hpp>
56
57XERCES_CPP_NAMESPACE_BEGIN
58
59class VALIDATORS_EXPORT MonthDayDatatypeValidator : public DateTimeValidator
60{
61public:
62
63    // -----------------------------------------------------------------------
64    //  Public ctor/dtor
65    // -----------------------------------------------------------------------
66        /** @name Constructors and Destructor */
67    //@{
68
69    MonthDayDatatypeValidator
70    (
71        MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
72    );
73    MonthDayDatatypeValidator
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    ~MonthDayDatatypeValidator();
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(MonthDayDatatypeValidator)
101
102protected:
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
110private:
111    // -----------------------------------------------------------------------
112    //  Unimplemented constructors and operators
113    // -----------------------------------------------------------------------
114    MonthDayDatatypeValidator(const MonthDayDatatypeValidator&);
115    MonthDayDatatypeValidator& operator=(const MonthDayDatatypeValidator&);
116};
117
118XERCES_CPP_NAMESPACE_END
119
120#endif
121
122/**
123  * End of file MonthDayDatatypeValidator.hpp
124  */
125
Note: See TracBrowser for help on using the repository browser.