CustomTopic.h

00001 #ifndef CUSTOMHTML_TAG_LAYER_CUSTOMTOPIC_H
00002 #define CUSTOMHTML_TAG_LAYER_CUSTOMTOPIC_H
00003 
00004 /*
00005  * RebeccaAIML, Artificial Intelligence Markup Language 
00006  * C++ api and engine.
00007  *
00008  * Copyright (C) 2005,2006,2007 Frank Hassanabad
00009  *
00010  * This file is part of RebeccaAIML.
00011  *
00012  * RebeccaAIML is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 3 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * RebeccaAIML is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00024  */
00025 
00026 //Rebecca includes
00027 #include <rebecca/framework/Topic.h>
00028 #include <rebecca/StringPimpl.h>
00029 #include <rebecca/framework/GraphBuilderFramework.h>
00030 
00031 //Custom Tag includes
00032 #include "exports.h"
00033 #include "typedefs.h"
00034 
00035 //Std includes
00036 #include <iostream>
00037 #include <string>
00038 #include <map>
00039 
00040 /* Disable Windows VC 7.x warning about 
00041  * it ignoring the throw specification
00042  */
00043 #ifdef _WIN32
00044 #    pragma warning( disable : 4290 )
00045 #endif
00046 
00047 namespace customTag
00048 {
00049 namespace impl
00050 {
00051 
00052 using namespace rebecca::framework;
00053 using namespace rebecca;
00054 using namespace std;
00055 
00056 /*
00057  * Forward declerations
00058  */
00059 class Html;
00060 
00079 class CUSTOM_TAG_EXPORT CustomTopic : public Topic
00080 {
00085     typedef map<string, ofstream *> fileStringMap;
00086     
00087     public:
00088         
00109         CustomTopic(Html &htmlPage)
00110             throw(InternalProgrammerErrorException &);
00111         
00125         void handleInnerTag(Tag *tag) 
00126             throw(InternalProgrammerErrorException &);
00127         
00144         void setAttribute(const StringPimpl &name, const StringPimpl &value) 
00145             throw(InternalProgrammerErrorException &);
00146 
00147     private:
00148 
00153         string m_topic;
00154 
00159         Html &m_htmlPage;
00160 };
00161 
00162 } //end of namespace impl
00163 } //end namespace customTag
00164 
00165 #endif
00166 
00167 

Generated on Mon Aug 27 12:26:52 2007 for RebeccaAIML by  doxygen 1.5.3