source: NonGTP/Xerces/xerces/include/xercesc/util/XMLInteger.hpp @ 358

Revision 358, 2.5 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: XMLInteger.hpp,v 1.5 2004/09/08 13:56:24 peiyongz Exp $
19 * $Log: XMLInteger.hpp,v $
20 * Revision 1.5  2004/09/08 13:56:24  peiyongz
21 * Apache License Version 2.0
22 *
23 * Revision 1.4  2004/01/29 11:48:47  cargilld
24 * Code cleanup changes to get rid of various compiler diagnostic messages.
25 *
26 * Revision 1.3  2003/05/15 19:07:46  knoaman
27 * Partial implementation of the configurable memory manager.
28 *
29 * Revision 1.2  2002/11/04 15:22:05  tng
30 * C++ Namespace Support.
31 *
32 * Revision 1.1.1.1  2002/02/01 22:22:15  peiyongz
33 * sane_include
34 *
35 * Revision 1.1  2001/08/16 21:53:52  peiyongz
36 * new class creation
37 *
38 */
39
40#ifndef XML_INTEGER_HPP
41#define XML_INTEGER_HPP
42
43#include <xercesc/util/XMemory.hpp>
44
45XERCES_CPP_NAMESPACE_BEGIN
46
47class XMLUTIL_EXPORT XMLInteger : public XMemory
48{
49public:
50
51        /**
52         * Constructs a newly allocated <code>XMLInteger</code> object
53     *
54         * @param      intVal   the <code>integer</code>
55         */
56
57        XMLInteger(const int intVal);
58
59        ~XMLInteger();
60
61        /**
62         * Returns the built in integer value.
63         */
64    int intValue() const;
65
66private:
67    // -----------------------------------------------------------------------
68    //  Unimplemented constructors and operators
69    // -----------------------------------------------------------------------
70    XMLInteger(const XMLInteger&);
71    XMLInteger& operator=(const XMLInteger&);
72
73    // -----------------------------------------------------------------------
74    //  Private data members
75    //
76        //  fData
77    //     the value
78    //
79    // -----------------------------------------------------------------------
80    int         fData;
81
82};
83
84inline XMLInteger::XMLInteger(const int intVal)
85:fData(intVal)
86{
87}
88
89inline XMLInteger::~XMLInteger()
90{
91}
92
93inline int XMLInteger::intValue() const
94{
95    return fData;
96}
97
98XERCES_CPP_NAMESPACE_END
99
100#endif
Note: See TracBrowser for help on using the repository browser.