IdentificationManager.h

00001 #ifndef REBECCA_FRAMEWORK_IDENTIFICATION_H
00002 #define REBECCA_FRAMEWORK_IDENTIFICATION_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 /* Disable Windows VC 7.x warning about 
00027  * shared_ptr needing dll-interface and
00028  * about it ignoring the throw specification
00029  */
00030 #ifdef _WIN32
00031 #    pragma warning ( push )
00032 #    pragma warning( disable : 4251 )
00033 #    pragma warning( disable : 4290 )
00034 #endif
00035 
00036 //rebecca includes
00037 #include <rebecca/StringPimpl.h>
00038 
00039 namespace rebecca
00040 {
00041 namespace framework
00042 {
00043 namespace impl
00044 {
00045 
00046 //forward declerations
00047 class IdentificationManagerImpl;
00048 
00062 class IdentificationManager
00063 {
00064     public:
00065 
00074         StringPimpl getUserId()
00075             throw(InternalProgrammerErrorException &);
00076 
00085         StringPimpl getBotId()
00086             throw(InternalProgrammerErrorException &);
00087 
00096         StringPimpl getEndUserId()
00097             throw(InternalProgrammerErrorException &);
00098         
00111         static IdentificationManager *getInstance()
00112             throw(InternalProgrammerErrorException &);
00113 
00127         void setUserIdBotIdEndUserId(const StringPimpl &userId, 
00128                                      const StringPimpl &botId,
00129                                      const StringPimpl &endUserId)
00130             throw(InternalProgrammerErrorException &);
00131 
00138         static IdentificationManager *reset()
00139             throw(InternalProgrammerErrorException &);
00140 
00171         void setThreadSpecific(bool mode)
00172             throw(InternalProgrammerErrorException &);
00173 
00178         virtual ~IdentificationManager();
00179 
00180     private:
00181         
00194         IdentificationManager()
00195             throw(InternalProgrammerErrorException &);
00196 
00207         IdentificationManagerImpl *m_pimpl;
00208 };
00209 
00210 } //end namespace impl
00211 
00212 //Expose just the class name to the framework namespace
00213 using rebecca::framework::impl::IdentificationManager;
00214 
00215 } //end namespace framework
00216 } //end namespace rebecca
00217 
00218 #ifdef _WIN32
00219 #    pragma warning ( pop )
00220 #endif
00221 
00222 #endif
00223 

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