AimlFacade.h

00001 #ifndef REBECCA_AIMLFACADE_H
00002 #define REBECCA_AIMLFACADE_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 //To get the REBECA_EXPORT macro
00027 #include <rebecca/exports.h>
00028 #include <rebecca/Exceptions.h>
00029 
00030 //To get the size_t for the deletions
00031 #include <cstddef>
00032 
00033 /* Disable Windows VC 7.x warning about 
00034  * it ignoring the throw specification
00035  */
00036 #ifdef _WIN32
00037 #    pragma warning ( push )
00038 #    pragma warning( disable : 4290 )
00039 #endif
00040 
00053 namespace rebecca
00054 {
00055 
00074 namespace impl
00075 {
00076 
00077 //Forward decleration
00078 class GraphBuilder;
00079 class Factory;
00080 
00107 class REBECCA_EXPORT AimlFacade
00108 {
00109     public:
00110 
00124         AimlFacade() 
00125             throw(Exception &);
00126 
00145         GraphBuilder &getGraphBuilder() 
00146             throw(Exception &);
00147     
00154         virtual ~AimlFacade();
00155         
00178         void operator delete(void* p);
00179 
00180 
00205         void *operator new(size_t size);
00206 
00207     private:
00208 
00218         AimlFacade &operator=(const AimlFacade &aimlFacade);
00219 
00229         AimlFacade(const AimlFacade& aimlFacade);
00230 
00240         GraphBuilder *m_graphBuilder;
00241 
00246         Factory *m_factory;
00247 };
00248 
00249 
00250 
00251 } //end namespace impl
00252 
00253 //expose AimlFacade to the rebecca namespace
00254 using rebecca::impl::AimlFacade;
00255 
00256 } //end namespace rebecca
00257 
00258 #ifdef _WIN32
00259 #    pragma warning ( pop )
00260 #endif
00261 
00262 
00263 #endif

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