|
||||
File indexing completed on 2025-01-30 10:27:27
0001 /* 0002 * Licensed to the Apache Software Foundation (ASF) under one or more 0003 * contributor license agreements. See the NOTICE file distributed with 0004 * this work for additional information regarding copyright ownership. 0005 * The ASF licenses this file to You under the Apache License, Version 2.0 0006 * (the "License"); you may not use this file except in compliance with 0007 * the License. You may obtain a copy of the License at 0008 * 0009 * http://www.apache.org/licenses/LICENSE-2.0 0010 * 0011 * Unless required by applicable law or agreed to in writing, software 0012 * distributed under the License is distributed on an "AS IS" BASIS, 0013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0014 * See the License for the specific language governing permissions and 0015 * limitations under the License. 0016 */ 0017 0018 /* 0019 * $Id$ 0020 */ 0021 0022 #if !defined(XERCESC_INCLUDE_GUARD_XMLCHTRANSCODER_HPP) 0023 #define XERCESC_INCLUDE_GUARD_XMLCHTRANSCODER_HPP 0024 0025 #include <xercesc/util/XercesDefs.hpp> 0026 #include <xercesc/util/TransService.hpp> 0027 0028 XERCES_CPP_NAMESPACE_BEGIN 0029 0030 // 0031 // This class provides an implementation of the XMLTranscoder interface 0032 // for a simple XMLCh transcoder. This is used for internal entities, which 0033 // are already in the native XMLCh format. 0034 // 0035 class XMLUTIL_EXPORT XMLChTranscoder : public XMLTranscoder 0036 { 0037 public : 0038 // ----------------------------------------------------------------------- 0039 // Public constructors and destructor 0040 // ----------------------------------------------------------------------- 0041 XMLChTranscoder 0042 ( 0043 const XMLCh* const encodingName 0044 , const XMLSize_t blockSize 0045 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager 0046 ); 0047 0048 virtual ~XMLChTranscoder(); 0049 0050 0051 // ----------------------------------------------------------------------- 0052 // Implementation of the XMLTranscoder interface 0053 // ----------------------------------------------------------------------- 0054 virtual XMLSize_t transcodeFrom 0055 ( 0056 const XMLByte* const srcData 0057 , const XMLSize_t srcCount 0058 , XMLCh* const toFill 0059 , const XMLSize_t maxChars 0060 , XMLSize_t& bytesEaten 0061 , unsigned char* const charSizes 0062 ); 0063 0064 virtual XMLSize_t transcodeTo 0065 ( 0066 const XMLCh* const srcData 0067 , const XMLSize_t srcCount 0068 , XMLByte* const toFill 0069 , const XMLSize_t maxBytes 0070 , XMLSize_t& charsEaten 0071 , const UnRepOpts options 0072 ); 0073 0074 virtual bool canTranscodeTo 0075 ( 0076 const unsigned int toCheck 0077 ); 0078 0079 0080 private : 0081 // ----------------------------------------------------------------------- 0082 // Unimplemented constructors and operators 0083 // ----------------------------------------------------------------------- 0084 XMLChTranscoder(const XMLChTranscoder&); 0085 XMLChTranscoder& operator=(const XMLChTranscoder&); 0086 }; 0087 0088 XERCES_CPP_NAMESPACE_END 0089 0090 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |