[2674] | 1 | /* |
---|
| 2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
---|
| 3 | * contributor license agreements. See the NOTICE file distributed with |
---|
| 4 | * this work for additional information regarding copyright ownership. |
---|
| 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
| 6 | * (the "License"); you may not use this file except in compliance with |
---|
| 7 | * the License. You may obtain a copy of the License at |
---|
| 8 | * |
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 10 | * |
---|
| 11 | * Unless required by applicable law or agreed to in writing, software |
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 14 | * See the License for the specific language governing permissions and |
---|
| 15 | * limitations under the License. |
---|
| 16 | */ |
---|
| 17 | |
---|
| 18 | /* |
---|
| 19 | * $Id: XMLDTDDescriptionImpl.hpp 568078 2007-08-21 11:43:25Z amassari $ |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | #if !defined(XMLDTDDescriptionImplIMPL_HPP) |
---|
| 23 | #define XMLDTDDescriptionImplIMPL_HPP |
---|
| 24 | |
---|
| 25 | #include <xercesc/framework/XMLDTDDescription.hpp> |
---|
| 26 | |
---|
| 27 | XERCES_CPP_NAMESPACE_BEGIN |
---|
| 28 | |
---|
| 29 | class XMLPARSER_EXPORT XMLDTDDescriptionImpl : public XMLDTDDescription |
---|
| 30 | { |
---|
| 31 | public : |
---|
| 32 | // ----------------------------------------------------------------------- |
---|
| 33 | /** @name constructor and destructor */ |
---|
| 34 | // ----------------------------------------------------------------------- |
---|
| 35 | //@{ |
---|
| 36 | XMLDTDDescriptionImpl( |
---|
| 37 | const XMLCh* const systemId |
---|
| 38 | , MemoryManager* const memMgr |
---|
| 39 | ); |
---|
| 40 | |
---|
| 41 | ~XMLDTDDescriptionImpl(); |
---|
| 42 | //@} |
---|
| 43 | |
---|
| 44 | // ----------------------------------------------------------------------- |
---|
| 45 | /** @name Implementation of GrammarDescription Interface */ |
---|
| 46 | // ----------------------------------------------------------------------- |
---|
| 47 | //@{ |
---|
| 48 | /** |
---|
| 49 | * getGrammarKey |
---|
| 50 | * |
---|
| 51 | */ |
---|
| 52 | virtual const XMLCh* getGrammarKey() const ; |
---|
| 53 | //@} |
---|
| 54 | |
---|
| 55 | // ----------------------------------------------------------------------- |
---|
| 56 | /** @name Implementation of DTDDescription Interface */ |
---|
| 57 | // ----------------------------------------------------------------------- |
---|
| 58 | //@{ |
---|
| 59 | /** |
---|
| 60 | * Getter |
---|
| 61 | * |
---|
| 62 | */ |
---|
| 63 | virtual const XMLCh* getRootName() const; |
---|
| 64 | virtual const XMLCh* getSystemId() const; |
---|
| 65 | |
---|
| 66 | /** |
---|
| 67 | * Setter |
---|
| 68 | * |
---|
| 69 | */ |
---|
| 70 | virtual void setRootName(const XMLCh* const); |
---|
| 71 | virtual void setSystemId(const XMLCh* const); |
---|
| 72 | //@} |
---|
| 73 | |
---|
| 74 | /*** |
---|
| 75 | * Support for Serialization/De-serialization |
---|
| 76 | ***/ |
---|
| 77 | DECL_XSERIALIZABLE(XMLDTDDescriptionImpl) |
---|
| 78 | |
---|
| 79 | XMLDTDDescriptionImpl(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager); |
---|
| 80 | |
---|
| 81 | private : |
---|
| 82 | // ----------------------------------------------------------------------- |
---|
| 83 | /** name Unimplemented copy constructor and operator= */ |
---|
| 84 | // ----------------------------------------------------------------------- |
---|
| 85 | //@{ |
---|
| 86 | XMLDTDDescriptionImpl(const XMLDTDDescriptionImpl& ); |
---|
| 87 | XMLDTDDescriptionImpl& operator=(const XMLDTDDescriptionImpl& ); |
---|
| 88 | //@} |
---|
| 89 | |
---|
| 90 | // ----------------------------------------------------------------------- |
---|
| 91 | // |
---|
| 92 | // fSystemId: |
---|
| 93 | // SYSTEM ID of the grammar |
---|
| 94 | // |
---|
| 95 | // fRootName: |
---|
| 96 | // root name of the grammar |
---|
| 97 | // |
---|
| 98 | // ----------------------------------------------------------------------- |
---|
| 99 | |
---|
| 100 | const XMLCh* fSystemId; |
---|
| 101 | const XMLCh* fRootName; |
---|
| 102 | |
---|
| 103 | }; |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | XERCES_CPP_NAMESPACE_END |
---|
| 107 | |
---|
| 108 | #endif |
---|