Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

XalanMessageLoader.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-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 #if !defined(XALANMESSAGELOADER_HEADER_GUARD_1357924680)
00017 #define XALANMESSAGELOADER_HEADER_GUARD_1357924680
00018 
00019 
00020 // Base include file.  Must be first.
00021 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp>
00022 
00023 
00024 #include <xalanc/XalanDOM/XalanDOMString.hpp>
00025 
00026 #include <LocalMsgIndex.hpp>
00027 
00028 
00029 XALAN_CPP_NAMESPACE_BEGIN
00030 
00031 
00032 
00033 // class for calling fom outside of the module 
00034 class  XALAN_PLATFORMSUPPORT_EXPORT XalanMessageLoader {
00035 
00036 
00037 public:
00038 
00039     
00040     // -----------------------------------------------------------------------
00041     //  Public Constructors and Destructor
00042     // -----------------------------------------------------------------------
00043     virtual
00044     ~XalanMessageLoader();
00045 
00046     XalanMessageLoader()
00047     {
00048     }
00049 
00050     static void
00051     createLoader();
00052 
00053     static void
00054     destroyLoader();
00055 
00056     static const XalanDOMString
00057     getMessage(XalanMessages::Codes     msgToLoad
00058         , const char*           repText1 
00059         , const char*           repText2 = 0
00060         , const char*           repText3 = 0
00061         , const char*           repText4 = 0);
00062 
00063     static const XalanDOMString
00064     getMessage(XalanMessages::Codes     msgToLoad
00065         , const XalanDOMChar*           repText1 
00066         , const XalanDOMChar*           repText2 = 0
00067         , const XalanDOMChar*           repText3 = 0
00068         , const XalanDOMChar*           repText4 = 0);
00069 
00070     static const XalanDOMString
00071     getMessage(XalanMessages::Codes     msgToLoad);
00072 
00073     static const XalanDOMString
00074     getMessage(XalanMessages::Codes     msgToLoad
00075         , const XalanDOMString&                 repText1 );
00076 
00077     static const XalanDOMString
00078     getMessage(XalanMessages::Codes     msgToLoad
00079         , const XalanDOMString&                 repText1 
00080         , const XalanDOMString&                 repText2 );
00081 
00082     static const XalanDOMString
00083     getMessage(XalanMessages::Codes     msgToLoad
00084         , const XalanDOMString&                 repText1 
00085         , const XalanDOMString&                 repText2 
00086         , const XalanDOMString&                 repText3);
00087 
00088 protected:
00089     virtual bool loadMsg
00090         (
00091           XalanMessages::Codes      msgToLoad
00092         , XalanDOMChar*             toFill
00093         , unsigned int              maxChars
00094         ) =0;
00095 
00096 private:
00097 
00098     bool load
00099         (
00100         XalanMessages::Codes        msgToLoad
00101         , XalanDOMChar*             toFill
00102         , unsigned int              maxChars
00103         , const XalanDOMChar*       repText1 
00104         , const XalanDOMChar*       repText2 = 0
00105         , const XalanDOMChar*       repText3 = 0
00106         , const XalanDOMChar*       repText4 = 0
00107         );
00108     
00109     bool load
00110         (
00111         XalanMessages::Codes        msgToLoad
00112         , XalanDOMChar*             toFill
00113         , unsigned int              maxChars
00114         , const char*               repText1 
00115         , const char*               repText2 = 0
00116         , const char*               repText3 = 0
00117         , const char*               repText4 = 0
00118         );
00119 
00120     XalanMessageLoader(const XalanMessageLoader&);
00121 
00122     XalanMessageLoader&
00123     operator=(const XalanMessageLoader&);
00124 
00125     static XalanMessageLoader*  s_msgLoader;
00126 };
00127 
00128 
00129 
00130 XALAN_CPP_NAMESPACE_END
00131 
00132 #endif  // XALANMESSAGELOADER_HEADER_GUARD_1357924680

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.