CustomTagsImpl.h

00001 #ifndef CUSTOMHTML_TAG_LAYER_CUSTOMTAGSIMPL_H
00002 #define CUSTOMHTML_TAG_LAYER_CUSTOMTAGSIMPL_H
00003 
00004 /*
00005  * RebeccaAIML, Artificial Intelligence Markup Language 
00006  * C++ api and engine.
00007  *
00008  * Copyright (C) 2005 Frank Hassanabad
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00023  */
00024 
00025 /* Disable Windows VC 7.x warning about 
00026  * needing dll-interface 
00027  */
00028 #ifdef _WIN32
00029 #    pragma warning ( push )
00030 #    pragma warning( disable : 4251 )
00031 #    pragma warning( disable : 4290 )
00032 #endif
00033 
00034 //Rebecca includes
00035 #include <rebecca/framework/CustomTags.h>
00036 
00037 //CustomTag includes
00038 #include "exports.h"
00039 #include "typedefs.h"
00040 #include "Html.h"
00041 
00042 //Boost includes
00043 #include <boost/shared_ptr.hpp>
00044 
00045 //Std lncludes
00046 #include <map>
00047 
00056 namespace customTag
00057 {
00058 
00068 namespace impl
00069 {
00070 
00072 
00073 using namespace rebecca::framework;
00074 using namespace boost;
00075 using namespace std;
00076 
00096 class CUSTOM_TAG_EXPORT CustomTagsImpl : public CustomTags
00097 {
00098     public:
00099 
00108         CustomTagsImpl() 
00109             throw(InternalProgrammerErrorException &);
00110 
00144         virtual shared_ptr<Tag> createTagClass(const char * const className, GraphBuilderFramework &builder) 
00145             throw(InternalProgrammerErrorException &);
00146 
00155         virtual ~CustomTagsImpl();
00156 
00157     private:
00158 
00163         Html m_htmlPage;
00164 
00172         bool m_templateSideThat;
00173 
00174 };
00175 
00176 } //end of namespace impl
00177 } //end namespace customTag
00178 
00179 
00186 extern "C" CUSTOM_TAG_EXPORT customTag::impl::CustomTags *rebeccaAIMLLoadCustomTags()
00187 {
00188     return new customTag::impl::CustomTagsImpl;
00189 }
00190 
00191 
00198 extern "C" CUSTOM_TAG_EXPORT void rebeccaAIMLRemoveCustomTags(customTag::impl::CustomTagsImpl *customTags)
00199 {
00200     delete customTags;
00201 }
00202 
00203 #ifdef _WIN32
00204 #    pragma warning ( pop )
00205 #endif
00206 
00207 #endif

Generated on Thu Sep 7 22:05:51 2006 for RebeccaAIML by  doxygen 1.4.5