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

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

xerces added

Line 
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: HexBinaryDatatypeValidator.hpp,v 1.8 2004/09/08 13:56:53 peiyongz Exp $
19 * $Log: HexBinaryDatatypeValidator.hpp,v $
20 * Revision 1.8  2004/09/08 13:56:53  peiyongz
21 * Apache License Version 2.0
22 *
23 * Revision 1.7  2004/01/29 11:51:22  cargilld
24 * Code cleanup changes to get rid of various compiler diagnostic messages.
25 *
26 * Revision 1.6  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.5  2003/09/30 21:31:30  peiyongz
30 * Implementation of Serialization/Deserialization
31 *
32 * Revision 1.4  2003/05/15 18:53:26  knoaman
33 * Partial implementation of the configurable memory manager.
34 *
35 * Revision 1.3  2002/12/18 14:17:55  gareth
36 * Fix to bug #13438. When you eant a vector that calls delete[] on its members you should use RefArrayVectorOf.
37 *
38 * Revision 1.2  2002/11/04 14:53:28  tng
39 * C++ Namespace Support.
40 *
41 * Revision 1.1.1.1  2002/02/01 22:22:41  peiyongz
42 * sane_include
43 *
44 * Revision 1.6  2001/09/24 15:33:15  peiyongz
45 * DTV Reorganization: virtual methods moved to *.cpp
46 *
47 * Revision 1.5  2001/09/19 20:35:23  peiyongz
48 * DTV reorganization: inherit from AbstractStringVaildator
49 *
50 */
51
52#if !defined(HEXBINARY_DATATYPEVALIDATOR_HPP)
53#define HEXBINARY_DATATYPEVALIDATOR_HPP
54
55#include <xercesc/validators/datatype/AbstractStringValidator.hpp>
56
57XERCES_CPP_NAMESPACE_BEGIN
58
59class VALIDATORS_EXPORT HexBinaryDatatypeValidator : public AbstractStringValidator
60{
61public:
62
63    // -----------------------------------------------------------------------
64    //  Public ctor/dtor
65    // -----------------------------------------------------------------------
66        /** @name Constructors and Destructor */
67    //@{
68
69    HexBinaryDatatypeValidator
70    (
71        MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
72    );
73    HexBinaryDatatypeValidator
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
82    virtual ~HexBinaryDatatypeValidator();
83
84        //@}
85
86    /**
87      * Returns an instance of the base datatype validator class
88          * Used by the DatatypeValidatorFactory.
89      */
90    virtual DatatypeValidator* newInstance
91    (
92        RefHashTableOf<KVStringPair>* const facets
93        , RefArrayVectorOf<XMLCh>* const enums
94        , const int finalSet
95        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
96    );
97
98    /***
99     * Support for Serialization/De-serialization
100     ***/
101    DECL_XSERIALIZABLE(HexBinaryDatatypeValidator)
102
103protected:
104
105    virtual void checkValueSpace(const XMLCh* const content
106                                , MemoryManager* const manager);
107
108    virtual int  getLength(const XMLCh* const content
109                       , MemoryManager* const manager) const;
110
111private:
112    // -----------------------------------------------------------------------
113    //  Unimplemented constructors and operators
114    // -----------------------------------------------------------------------
115    HexBinaryDatatypeValidator(const HexBinaryDatatypeValidator&);
116    HexBinaryDatatypeValidator& operator=(const HexBinaryDatatypeValidator&);
117
118    // -----------------------------------------------------------------------
119    //  Private data members
120    //
121        //              Nil.
122    // -----------------------------------------------------------------------
123};
124
125XERCES_CPP_NAMESPACE_END
126
127#endif
128
129/**
130  * End of file HexBinaryDatatypeValidator.hpp
131  */
Note: See TracBrowser for help on using the repository browser.