http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XMLInteger.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2001,2004 The Apache Software Foundation.
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * $Id: XMLInteger.hpp,v 1.5 2004/09/08 13:56:24 peiyongz Exp $
00019  * $Log: XMLInteger.hpp,v $
00020  * Revision 1.5  2004/09/08 13:56:24  peiyongz
00021  * Apache License Version 2.0
00022  *
00023  * Revision 1.4  2004/01/29 11:48:47  cargilld
00024  * Code cleanup changes to get rid of various compiler diagnostic messages.
00025  *
00026  * Revision 1.3  2003/05/15 19:07:46  knoaman
00027  * Partial implementation of the configurable memory manager.
00028  *
00029  * Revision 1.2  2002/11/04 15:22:05  tng
00030  * C++ Namespace Support.
00031  *
00032  * Revision 1.1.1.1  2002/02/01 22:22:15  peiyongz
00033  * sane_include
00034  *
00035  * Revision 1.1  2001/08/16 21:53:52  peiyongz
00036  * new class creation
00037  *
00038  */
00039 
00040 #ifndef XML_INTEGER_HPP
00041 #define XML_INTEGER_HPP
00042 
00043 #include <xercesc/util/XMemory.hpp>
00044 
00045 XERCES_CPP_NAMESPACE_BEGIN
00046 
00047 class  XMLInteger : public XMemory
00048 {
00049 public:
00050 
00057     XMLInteger(const int intVal);
00058 
00059     ~XMLInteger();
00060 
00064     int intValue() const;
00065 
00066 private:
00067     // -----------------------------------------------------------------------
00068     //  Unimplemented constructors and operators
00069     // -----------------------------------------------------------------------
00070     XMLInteger(const XMLInteger&);
00071     XMLInteger& operator=(const XMLInteger&);
00072 
00073     // -----------------------------------------------------------------------
00074     //  Private data members
00075     //
00076     //  fData
00077     //     the value
00078     //
00079     // -----------------------------------------------------------------------
00080     int         fData;
00081 
00082 };
00083 
00084 inline XMLInteger::XMLInteger(const int intVal)
00085 :fData(intVal)
00086 {
00087 }
00088 
00089 inline XMLInteger::~XMLInteger()
00090 {
00091 }
00092 
00093 inline int XMLInteger::intValue() const
00094 {
00095     return fData;
00096 }
00097 
00098 XERCES_CPP_NAMESPACE_END
00099 
00100 #endif


Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.