Think.h

00001 #ifndef REBECCA_FRAMEWORK_THINK_H
00002 #define REBECCA_FRAMEWORK_THINK_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/InnerTemplateListImpl.h>
00037 
00038 //Boost includes
00039 #include <boost/enable_shared_from_this.hpp>
00040 #include <boost/shared_ptr.hpp>
00041 
00042 namespace rebecca
00043 {
00044 namespace framework
00045 {
00046 namespace impl
00047 {
00048 
00049 using namespace boost;
00050 
00051 /*
00052  * Forward declerations
00053  */
00054 
00065 class ThinkImpl;
00066 
00078 class REBECCA_EXPORT Think : public InnerTemplateListImpl, public enable_shared_from_this<Think>
00079 {
00080     public:
00081 
00091         Think() 
00092             throw(InternalProgrammerErrorException &);
00093 
00101         virtual StringPimpl getString() const
00102             throw(InternalProgrammerErrorException &);
00103 
00108         virtual ~Think();
00109 
00110     private:
00111         
00122         shared_ptr<ThinkImpl> m_pimpl;
00123 
00124 };
00125 
00126 } //end of namespace impl
00127 
00128 //Expose just the class name to the framework namespace
00129 using rebecca::framework::impl::Think;
00130 
00131 } //end of namespace framework
00132 } //end of namespace rebecca
00133 
00134 #ifdef _WIN32
00135 #    pragma warning ( pop )
00136 #endif
00137 
00138 #endif
00139 

Generated on Wed Jul 26 21:38:57 2006 for RebeccaAIML by  doxygen 1.4.5