00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XALANICUMESSAGELOADER_HEADER_GUARD_1357924680) 00019 #define ICUMSGLOADER_HEADER_GUARD_1357924680 00020 00021 #if defined (XALAN_ICU_MSG_LOADER) 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00025 00026 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00027 00028 #include <xalanc/PlatformSupport/XalanMessageLoader.hpp> 00029 00030 #include <xercesc/util/XMLUni.hpp> 00031 00032 00033 #include <unicode/ures.h> 00034 00035 00036 XALAN_CPP_NAMESPACE_BEGIN 00037 00038 00039 class XALAN_PLATFORMSUPPORT_EXPORT XalanICUMessageLoader : public XalanMessageLoader 00040 00041 { 00042 public: 00043 00044 XalanICUMessageLoader(MemoryManager& theManager); 00045 00046 virtual 00047 ~XalanICUMessageLoader(); 00048 00049 protected: 00050 00051 // ----------------------------------------------------------------------- 00052 // Implementation of the virtual message loader API 00053 // ----------------------------------------------------------------------- 00054 virtual bool 00055 loadMsg( 00056 XalanMessages::Codes msgToLoad, 00057 XalanDOMChar* toFill, 00058 XalanSize_t maxChars 00059 ); 00060 00061 private: 00062 00063 XalanICUMessageLoader(const XalanICUMessageLoader&); 00064 00065 XalanICUMessageLoader& 00066 operator=(const XalanICUMessageLoader&); 00067 00068 // ----------------------------------------------------------------------- 00069 // Private data members 00070 // 00071 // fLocaleBundle 00072 // pointer to the required locale specific resource bundle, 00073 // or to the default locale resrouce bundle in case the required 00074 // locale specific resource bundle unavailable. 00075 // 00076 // ----------------------------------------------------------------------- 00077 UResourceBundle* m_localeBundle; 00078 UResourceBundle* m_domainBundle; 00079 00080 const XalanDOMString m_unknownMessage; 00081 }; 00082 00083 00084 00085 00086 XALAN_CPP_NAMESPACE_END 00087 00088 #endif // defined (XALAN_ICU_MSG_LOADER) 00089 00090 #endif // XALANICUMESSAGELOADER_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|