AIML.h

00001 #ifndef REBECCA_FRAMEWORK_AIML_H
00002 #define REBECCA_FRAMEWORK_AIML_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 //Rebecca includes
00026 #include <rebecca/framework/Tag.h>
00027 #include <rebecca/framework/Topic.h>
00028 
00029 /* Disable Windows VC 7.x warning about 
00030  * shared_ptr needing dll-interface and
00031  * about it ignoring the throw specification
00032  */
00033 #ifdef _WIN32
00034 #    pragma warning ( push )
00035 #    pragma warning( disable : 4251 )
00036 #    pragma warning( disable : 4290 )
00037 #endif
00038 
00039 namespace rebecca
00040 {
00041 namespace framework
00042 {
00043 namespace impl
00044 {
00045 
00046 /*
00047  * Forward declarations
00048  */
00049 
00060 class AIMLImpl;
00061 
00062 class GraphBuilderFramework;
00063 
00075 class REBECCA_EXPORT AIML : public Tag
00076 {
00077     
00078     public:
00079 
00099         AIML(GraphBuilderFramework &builder) throw(InternalProgrammerErrorException &);
00100         
00112         virtual void setAttribute(const StringPimpl &name, const StringPimpl &value) 
00113             throw(InternalProgrammerErrorException &);
00114         
00135         virtual void handleInnerTag(const shared_ptr<Tag> &tag) 
00136             throw(InternalProgrammerErrorException &);
00137 
00142         virtual ~AIML();
00143 
00144     private:
00145 
00156         shared_ptr<AIMLImpl> m_pimpl;
00157 };
00158 
00159 
00160 } //end of namespace impl
00161 
00162 //Expose just the class name to the framework namespace
00163 using rebecca::framework::impl::AIML;
00164 
00165 } //end of namespace framework 
00166 } //end of namespace rebecca
00167 
00168 #ifdef _WIN32
00169 #    pragma warning ( pop )
00170 #endif
00171 
00172 #endif
00173 

Generated on Wed Jul 26 21:39:04 2006 for RebeccaAIML by  doxygen 1.4.5