00001 00009 /************************************************************************** 00010 00011 begin : Sun Aug 22 2004 00012 copyright : (C) 2002-2010 by Ewald Arnold 00013 email : mockpp at ewald-arnold dot de 00014 00015 This program is free software; you can redistribute it and/or modify 00016 it under the terms of the GNU Lesser General Public License as 00017 published by the Free Software Foundation; either version 2 of the License, 00018 or (at your option) any later version. 00019 00020 This program is distributed in the hope that it will be useful, 00021 but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 GNU General Public License for more details. 00024 00025 You should have received a copy of the GNU Lesser General Public License 00026 along with this program; if not, write to the Free Software 00027 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 00029 * 00030 * Original Java Sources: Copyright (c) 2000-2004, jMock.org 00031 * 00032 00033 **/ 00034 00035 #ifndef MOCKPP_BUILDERNAMESPACE_H 00036 #define MOCKPP_BUILDERNAMESPACE_H 00037 00038 #include <mockpp/mockpp.h> // always first 00039 00040 #include <mockpp/chaining/Invocation.h> 00041 00042 #include <mockpp/matcher/InvokedRecorder.h> 00043 00044 00045 MOCKPP_NS_START 00046 00047 00048 class MatchBuilderAdapterBase; 00049 00053 class MOCKPP_API_DECL0 BuilderNamespace 00054 { 00055 public: 00056 00060 BuilderNamespace(const String &name); 00061 00065 virtual ~BuilderNamespace(); 00066 00070 String getIdent() const; 00071 00077 virtual void registerUniqueID( const String &id, MatchBuilderAdapterBase *builder ) = 0; 00078 00083 virtual void storeBuilder(AutoPointer<MatchBuilderAdapterBase> builder) = 0; 00084 00091 virtual MatchBuilderAdapterBase *lookupID( const String &id ) const = 0; 00092 00096 virtual void reset() = 0; 00097 00103 virtual void addPendingRecorder(const String &id, InvokedRecorder::AP recorder) = 0; 00104 00105 private: 00106 00107 String ns_name; 00108 }; 00109 00110 00111 MOCKPP_NS_END 00112 00113 00114 #endif // MOCKPP_BUILDERNAMESPACE_H