InnerTemplate.h

00001 #ifndef REBECCA_FRAMEWORK_INNERTEMPLATE_H
00002 #define REBECCA_FRAMEWORK_INNERTEMPLATE_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  * shared_ptr needing dll-interface and
00027  * about it ignoring the throw specification
00028  */
00029 #ifdef _WIN32
00030 #    pragma warning ( push )
00031 #    pragma warning( disable : 4251 )
00032 #    pragma warning( disable : 4290 )
00033 #endif
00034 
00035 //Rebecca includes
00036 #include <rebecca/framework/InnerCategory.h>
00037 
00038 //Boost includes
00039 #include <boost/shared_ptr.hpp>
00040 
00041 namespace rebecca
00042 {
00043 namespace framework
00044 {
00045 namespace impl
00046 {
00047 using namespace boost;
00048 
00049 /*
00050  * Forward declerations
00051  */
00052 
00063 class InnerTemplateImpl;
00064 
00079 class REBECCA_EXPORT InnerTemplate : public InnerCategory
00080 {
00081 
00082     public:
00083         
00093         InnerTemplate() 
00094             throw(InternalProgrammerErrorException &);
00095         
00110         virtual void handleInnerTag(const shared_ptr<Tag> &tag) 
00111             throw(InternalProgrammerErrorException &);
00112 
00156         virtual void add(const shared_ptr<InnerTemplate> &tag) 
00157             throw(InternalProgrammerErrorException &);
00158         
00185         virtual StringPimpl getString() const 
00186             throw(InternalProgrammerErrorException &);
00187 
00192         virtual ~InnerTemplate();
00193 
00194     private:
00195 
00206         shared_ptr<InnerTemplateImpl> m_pimpl;
00207 };
00208 
00209 
00210 } //end of namespace impl
00211 
00212 //Expose just the class name to the framework namespace
00213 using rebecca::framework::impl::InnerTemplate;
00214 
00215 } //end of namespace framework
00216 } //end of namespace rebecca
00217 
00218 #ifdef _WIN32
00219 #    pragma warning ( pop )
00220 #endif
00221 
00222 #endif
00223 

Generated on Mon Apr 10 00:39:51 2006 for RebeccaAIML by  doxygen 1.4.5