00001 #if !defined(_LANGVALUER_HPP) 00002 #define _LANGVALUER_HPP 00003 //============================================================================= 00004 // 00005 // XDFLengine library 00006 // 00007 //----------------------------------------------------------------------------- 00008 // LANGVALUER.HPP 00009 //----------------------------------------------------------------------------- 00015 //_____________________________________________________________________________ 00016 // 00017 // Copyright (C) 2003 Guillaume Baurand. All Rights Reserved. 00018 // 00019 // This file is part of the XDFLengine project. 00020 // 00021 // The XDFLengine is free software; you can redistribute it and/or modify 00022 // it under the terms of the GNU General Public License as published by 00023 // the Free Software Foundation; either version 2 of the License, or 00024 // (at your option) any later version. 00025 // 00026 // This program is distributed in the hope that it will be useful, 00027 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00028 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00029 // GNU General Public License for more details. 00030 // 00031 // You should have received a copy of the GNU General Public License 00032 // along with this program; if not, write to the Free Software 00033 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 00034 // USA. 00035 // 00036 // For more information, 00037 // contact : guillaume@baurand.net 00038 // or visit : http://xdflengine.sourceforge.net 00039 // 00040 //============================================================================= 00041 00042 # include "config/commonincs.hpp" 00043 # include "valuers/xmlvaluer.hpp" 00044 00045 BEGIN_XDFLENGINE_NS 00046 00047 class XMLFlowContext; 00048 class LangLoadStreamerFactory; 00049 00050 //============================================================================= 00051 // CLASS LANGVALUER 00052 //----------------------------------------------------------------------------- 00054 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00055 class XDFLENGINE_EXPORT LangValuer : public XMLValuer 00056 { 00057 00058 private: //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00059 00060 XMLFlowContext* m_pStreamContext; 00061 LangLoadStreamerFactory* m_LangLoader; 00062 char* m_pszLangCode; 00063 00064 public: //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00065 00066 //_____________________________________________________________________ 00067 // LANGVALUER 00068 //--------------------------------------------------------------------- 00071 // 00073 //_____________________________________________________________________ 00074 LangValuer(XMLFlowContext* p_pStreamContext); 00075 00076 //_____________________________________________________________________ 00077 // ~LANGVALUER 00078 //--------------------------------------------------------------------- 00080 //_____________________________________________________________________ 00081 ~LangValuer(); 00082 00083 //_____________________________________________________________________ 00084 // CALCULATEEXPRESSION 00085 //--------------------------------------------------------------------- 00087 // 00090 //_____________________________________________________________________ 00091 char* calculateExpression(const char* p_pszExpression); 00092 00093 00094 //_____________________________________________________________________ 00095 // SETLANGCODE 00096 //--------------------------------------------------------------------- 00097 void setLangCode( const char* p_pszLangCode); 00098 00099 }; 00100 00101 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00102 //============================================================================= 00103 00104 END_XDFLENGINE_NS 00105 00106 #endif