Condition.h

00001 #ifndef REBECCA_FRAMEWORK_CONDITION_H
00002 #define REBECCA_FRAMEWORK_CONDITION_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 namespace rebecca
00039 {
00040 namespace framework
00041 {
00042 namespace impl
00043 {
00044 
00045 /*
00046  * Forward declerations
00047  */
00048 
00059 class ConditionImpl;
00060 class GraphBuilderFramework;
00061 
00073 class REBECCA_EXPORT Condition : public InnerTemplate
00074 {
00075     public:
00076 
00093         Condition(GraphBuilderFramework &builder) 
00094             throw(InternalProgrammerErrorException &);
00095 
00108         virtual StringPimpl getString() const
00109             throw(InternalProgrammerErrorException &);
00110 
00123         virtual void add(const shared_ptr<InnerTemplate> &tag) 
00124             throw(InternalProgrammerErrorException &);
00125         
00137         virtual void addCharacters(const StringPimpl &characters) 
00138             throw(InternalProgrammerErrorException &);
00139         
00151         virtual void setAttribute(const StringPimpl &name, const StringPimpl &value) 
00152             throw(InternalProgrammerErrorException &);
00153         
00170         virtual bool isBlockCondition() const
00171             throw(InternalProgrammerErrorException &);
00172 
00192         virtual bool isSinglePredicateCondition() const
00193             throw(InternalProgrammerErrorException &);
00194 
00213         virtual bool isMutliPredicateCondition() const
00214             throw(InternalProgrammerErrorException &);
00215 
00220         virtual ~Condition();
00221     
00222     private:
00223 
00234         shared_ptr<ConditionImpl> m_pimpl;
00235 };
00236 
00237 } //end of namespace impl
00238 
00239 //Expose just the class name to the framework namespace
00240 using rebecca::framework::impl::Condition;
00241 
00242 } //end of namespace framework
00243 } //end of namespace rebecca
00244 
00245 #ifdef _WIN32
00246 #    pragma warning ( pop )
00247 #endif
00248 
00249 #endif

Generated on Fri Sep 1 17:35:36 2006 for RebeccaAIML by  doxygen 1.4.5