[Mockpp-commits] mockpp/mockpp AbstractExpectation.h,1.25,1.26 AbstractExpectationCollection.h,1.17,
Brought to you by:
ewald-arnold
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12933/mockpp Modified Files: AbstractExpectation.h AbstractExpectationCollection.h CountParameters.h Expectation.h ExpectationBoundary.h ExpectationConglomeration.h ExpectationCounter.cpp ExpectationCounter.h ExpectationList.h ExpectationMap.h ExpectationSegment.h ExpectationSet.h ExpectationValue.h MixedMockObject.cpp MixedMockObject.h MockObject.cpp MockObject.h MockTimeServer.cpp MockTimeServer.h ReturnObjectList.h SelfDescribing.cpp SelfDescribing.h Throwable.cpp Throwable.h ThrowableList.cpp ThrowableList.h TrackingCounter.cpp TrackingCounter.h Verifiable.cpp Verifiable.h VerifiableList.cpp VerifiableList.h gen_countparams_N.pl mockpp.cpp mockpp.h mockpp_dbc.h Log Message: update copyright date Index: TrackingCounter.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/TrackingCounter.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- TrackingCounter.cpp 28 Dec 2005 21:30:16 -0000 1.12 +++ TrackingCounter.cpp 29 Dec 2005 19:29:50 -0000 1.13 @@ -8,7 +8,7 @@ /************************************************************************** begin : Fri Feb 18 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationCounter.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationCounter.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- ExpectationCounter.h 13 Nov 2005 11:53:18 -0000 1.23 +++ ExpectationCounter.h 29 Dec 2005 19:29:50 -0000 1.24 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 19 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationList.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationList.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- ExpectationList.h 26 Nov 2005 18:00:16 -0000 1.40 +++ ExpectationList.h 29 Dec 2005 19:29:50 -0000 1.41 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Dec 21 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationConglomeration.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationConglomeration.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- ExpectationConglomeration.h 26 Nov 2005 18:00:16 -0000 1.20 +++ ExpectationConglomeration.h 29 Dec 2005 19:29:50 -0000 1.21 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Dec 21 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationValue.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationValue.h,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- ExpectationValue.h 13 Nov 2005 11:53:18 -0000 1.31 +++ ExpectationValue.h 29 Dec 2005 19:29:50 -0000 1.32 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 17 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: Throwable.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Throwable.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- Throwable.h 23 Dec 2005 22:03:30 -0000 1.18 +++ Throwable.h 29 Dec 2005 19:29:50 -0000 1.19 @@ -8,7 +8,7 @@ /************************************************************************** begin : Mon Jan 20 2003 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: MockObject.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/MockObject.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- MockObject.h 26 Nov 2005 18:00:16 -0000 1.23 +++ MockObject.h 29 Dec 2005 19:29:50 -0000 1.24 @@ -8,7 +8,7 @@ /************************************************************************** begin : Fri Dec 18 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: SelfDescribing.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/SelfDescribing.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- SelfDescribing.h 30 Dec 2004 20:54:03 -0000 1.5 +++ SelfDescribing.h 29 Dec 2005 19:29:50 -0000 1.6 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sun Aug 22 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: SelfDescribing.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/SelfDescribing.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- SelfDescribing.cpp 30 Dec 2004 20:54:03 -0000 1.2 +++ SelfDescribing.cpp 29 Dec 2005 19:29:50 -0000 1.3 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sun Aug 22 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: VerifiableList.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/VerifiableList.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- VerifiableList.cpp 28 Dec 2005 21:30:16 -0000 1.20 +++ VerifiableList.cpp 29 Dec 2005 19:29:50 -0000 1.21 @@ -9,7 +9,7 @@ /************************************************************************** begin : Thu Dec 17 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: AbstractExpectation.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/AbstractExpectation.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- AbstractExpectation.h 28 Dec 2005 21:30:16 -0000 1.25 +++ AbstractExpectation.h 29 Dec 2005 19:29:50 -0000 1.26 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 19 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de Index: mockpp_dbc.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/mockpp_dbc.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- mockpp_dbc.h 29 Oct 2005 19:09:26 -0000 1.3 +++ mockpp_dbc.h 29 Dec 2005 19:29:50 -0000 1.4 @@ -23,7 +23,7 @@ /************************************************************************** begin : Sun Apr 23 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: MixedMockObject.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/MixedMockObject.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MixedMockObject.cpp 13 Nov 2005 11:53:18 -0000 1.2 +++ MixedMockObject.cpp 29 Dec 2005 19:29:50 -0000 1.3 @@ -9,7 +9,7 @@ /************************************************************************** begin : Sat Mar 05 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ThrowableList.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ThrowableList.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- ThrowableList.h 26 Nov 2005 20:16:55 -0000 1.23 +++ ThrowableList.h 29 Dec 2005 19:29:50 -0000 1.24 @@ -8,7 +8,7 @@ /************************************************************************** begin : Mon Jan 20 2003 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationCounter.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationCounter.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- ExpectationCounter.cpp 13 Nov 2005 11:53:18 -0000 1.23 +++ ExpectationCounter.cpp 29 Dec 2005 19:29:50 -0000 1.24 @@ -8,7 +8,7 @@ /************************************************************************** begin : Mon Dec 30 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationMap.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationMap.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- ExpectationMap.h 26 Nov 2005 18:00:16 -0000 1.26 +++ ExpectationMap.h 29 Dec 2005 19:29:50 -0000 1.27 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 26 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: MockObject.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/MockObject.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- MockObject.cpp 27 Nov 2005 15:34:36 -0000 1.25 +++ MockObject.cpp 29 Dec 2005 19:29:50 -0000 1.26 @@ -9,7 +9,7 @@ /************************************************************************** begin : Fri Dec 18 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ThrowableList.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ThrowableList.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- ThrowableList.cpp 28 Dec 2005 21:30:16 -0000 1.24 +++ ThrowableList.cpp 29 Dec 2005 19:29:50 -0000 1.25 @@ -8,7 +8,7 @@ /************************************************************************** begin : We Jan 22 2003 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: gen_countparams_N.pl =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/gen_countparams_N.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gen_countparams_N.pl 31 Oct 2005 20:50:37 -0000 1.2 +++ gen_countparams_N.pl 29 Dec 2005 19:29:50 -0000 1.3 @@ -28,7 +28,7 @@ /************************************************************************** begin : Sun Oct 30 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: Throwable.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Throwable.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- Throwable.cpp 28 Dec 2005 21:30:16 -0000 1.15 +++ Throwable.cpp 29 Dec 2005 19:29:50 -0000 1.16 @@ -9,7 +9,7 @@ /************************************************************************** begin : Sam Feb 8 2003 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: Verifiable.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Verifiable.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- Verifiable.h 27 Feb 2005 11:48:14 -0000 1.20 +++ Verifiable.h 29 Dec 2005 19:29:50 -0000 1.21 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 17 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: mockpp.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/mockpp.h,v retrieving revision 1.69 retrieving revision 1.70 diff -u -d -r1.69 -r1.70 --- mockpp.h 28 Dec 2005 19:43:08 -0000 1.69 +++ mockpp.h 29 Dec 2005 19:29:50 -0000 1.70 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 12 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify @@ -483,7 +483,8 @@ class AssertionFailedError; typedef void (*AssertionFailedForwarder_t)(const AssertionFailedError &err); -/** Sets the function pointer which handels failed assertions. +/** Sets the function pointer which handles failed assertions. + * Actually it is invoked instead of throwing exceptions. * @param fwd pointer to function. * @return previous pointer */ Index: AbstractExpectationCollection.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/AbstractExpectationCollection.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- AbstractExpectationCollection.h 13 Nov 2005 11:53:18 -0000 1.17 +++ AbstractExpectationCollection.h 29 Dec 2005 19:29:50 -0000 1.18 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Dec 21 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: MixedMockObject.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/MixedMockObject.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- MixedMockObject.h 10 Dec 2005 20:07:21 -0000 1.4 +++ MixedMockObject.h 29 Dec 2005 19:29:50 -0000 1.5 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Mar 05 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: mockpp.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/mockpp.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- mockpp.cpp 28 Dec 2005 19:43:08 -0000 1.23 +++ mockpp.cpp 29 Dec 2005 19:29:50 -0000 1.24 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 12 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify @@ -124,7 +124,7 @@ extern AssertionFailedForwarder_t forwardAssertionFailed; AssertionFailedForwarder_t -MOCKPP_EXPORT +MOCKPP_EXPORT setAssertionFailedForwarder(AssertionFailedForwarder_t fwd) { AssertionFailedForwarder_t temp = forwardAssertionFailed; Index: TrackingCounter.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/TrackingCounter.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- TrackingCounter.h 26 Nov 2005 18:00:17 -0000 1.7 +++ TrackingCounter.h 29 Dec 2005 19:29:50 -0000 1.8 @@ -8,7 +8,7 @@ /************************************************************************** begin : Fri Feb 18 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationSegment.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationSegment.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- ExpectationSegment.h 13 Nov 2005 11:53:18 -0000 1.27 +++ ExpectationSegment.h 29 Dec 2005 19:29:50 -0000 1.28 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 18 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationSet.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationSet.h,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- ExpectationSet.h 26 Nov 2005 18:00:16 -0000 1.34 +++ ExpectationSet.h 29 Dec 2005 19:29:50 -0000 1.35 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Dec 21 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ExpectationBoundary.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ExpectationBoundary.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- ExpectationBoundary.h 13 Nov 2005 11:53:18 -0000 1.21 +++ ExpectationBoundary.h 29 Dec 2005 19:29:50 -0000 1.22 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 17 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: Expectation.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Expectation.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Expectation.h 31 Aug 2005 15:22:03 -0000 1.17 +++ Expectation.h 29 Dec 2005 19:29:50 -0000 1.18 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 17 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: CountParameters.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/CountParameters.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- CountParameters.h 13 Nov 2005 11:53:18 -0000 1.4 +++ CountParameters.h 29 Dec 2005 19:29:50 -0000 1.5 @@ -9,7 +9,7 @@ /************************************************************************** begin : Sun Oct 30 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: Verifiable.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Verifiable.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- Verifiable.cpp 27 Feb 2005 11:48:14 -0000 1.20 +++ Verifiable.cpp 29 Dec 2005 19:29:50 -0000 1.21 @@ -9,7 +9,7 @@ /************************************************************************** begin : Thu Dec 17 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de Index: ReturnObjectList.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ReturnObjectList.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- ReturnObjectList.h 26 Nov 2005 20:16:55 -0000 1.33 +++ ReturnObjectList.h 29 Dec 2005 19:29:50 -0000 1.34 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Dec 21 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: VerifiableList.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/VerifiableList.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- VerifiableList.h 26 Nov 2005 18:00:17 -0000 1.18 +++ VerifiableList.h 29 Dec 2005 19:29:50 -0000 1.19 @@ -8,7 +8,7 @@ /************************************************************************** begin : Thu Dec 17 2002 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: MockTimeServer.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/MockTimeServer.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MockTimeServer.h 30 Apr 2005 21:15:45 -0000 1.2 +++ MockTimeServer.h 29 Dec 2005 19:29:50 -0000 1.3 @@ -1,78 +1,78 @@ -/** @file - @brief Time dependent objects - - $Id$ - - **************************************************************************/ - -/************************************************************************** - - begin : Sat Apr 30 2005 - copyright : (C) 2002-2005 by Ewald Arnold - email : mockpp at ewald-arnold dot de - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - **/ - -#ifndef MOCKPP_TimeServerMock_H -#define MOCKPP_TimeServerMock_H - -#include <mockpp/mockpp.h> // always first - -#include <mockpp/production/TimeServer.h> - -#include <mockpp/ReturnObjectList.h> - - -namespace mockpp { - -/** Mock object to return defined time points. - * \ingroup grp_basic_mo - * Some unix times: - * @li 2005-02-02T10:52:19 ==> 1107337939L (0x4200A2D3) - */ -class MockTimeServer : public TimeServer -{ - public: - - /** Construct a mock time server - * @param name object name - * @param parent parent verifiable - */ - MockTimeServer(const String &name = MOCKPP_PCHAR("") , mockpp::VerifiableList *parent = 0); - - /** Returns the "current" unix time - * @return unix time - */ - virtual std::time_t getUnixTime(); - - /** Adds another "current" unix time - * @param time unix time - */ - void addUnixTime(std::time_t time); - - private: - - mockpp::ReturnObjectList<std::time_t> mocktimes; -}; - - -} // namespace mockpp - - -#endif // MOCKPP_TimeServerMock_H - - +/** @file + @brief Time dependent objects + + $Id$ + + **************************************************************************/ + +/************************************************************************** + + begin : Sat Apr 30 2005 + copyright : (C) 2002-2006 by Ewald Arnold + email : mockpp at ewald-arnold dot de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2 of the License, + or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + **/ + +#ifndef MOCKPP_TimeServerMock_H +#define MOCKPP_TimeServerMock_H + +#include <mockpp/mockpp.h> // always first + +#include <mockpp/production/TimeServer.h> + +#include <mockpp/ReturnObjectList.h> + + +namespace mockpp { + +/** Mock object to return defined time points. + * \ingroup grp_basic_mo + * Some unix times: + * @li 2005-02-02T10:52:19 ==> 1107337939L (0x4200A2D3) + */ +class MockTimeServer : public TimeServer +{ + public: + + /** Construct a mock time server + * @param name object name + * @param parent parent verifiable + */ + MockTimeServer(const String &name = MOCKPP_PCHAR("") , mockpp::VerifiableList *parent = 0); + + /** Returns the "current" unix time + * @return unix time + */ + virtual std::time_t getUnixTime(); + + /** Adds another "current" unix time + * @param time unix time + */ + void addUnixTime(std::time_t time); + + private: + + mockpp::ReturnObjectList<std::time_t> mocktimes; +}; + + +} // namespace mockpp + + +#endif // MOCKPP_TimeServerMock_H + + Index: MockTimeServer.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/MockTimeServer.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- MockTimeServer.cpp 30 Apr 2005 15:06:05 -0000 1.1 +++ MockTimeServer.cpp 29 Dec 2005 19:29:50 -0000 1.2 @@ -1,59 +1,59 @@ -/** @file - @brief Mock time dependent objects - - $Id$ - - **************************************************************************/ - -/************************************************************************** - - begin : Sat Apr 30 2005 - copyright : (C) 2002-2005 by Ewald Arnold - email : mockpp at ewald-arnold dot de - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - **/ - -#include <mockpp/mockpp.h> // always first - -#include <mockpp/MockTimeServer.h> - - -namespace mockpp { - - -MOCKPP_EXPORT - MockTimeServer::MockTimeServer(const String &name, - VerifiableList *parent) - : mocktimes(name + MOCKPP_PCHAR("/MockTimeServer"), parent) -{ -} - - -std::time_t MOCKPP_EXPORT MockTimeServer::getUnixTime() -{ - return mocktimes.nextReturnObject(); -} - - -void MOCKPP_EXPORT MockTimeServer::addUnixTime(std::time_t time) -{ - mocktimes.addObjectToReturn(time); -} - - -} // namespace mockpp - +/** @file + @brief Mock time dependent objects + + $Id$ + + **************************************************************************/ + +/************************************************************************** + + begin : Sat Apr 30 2005 + copyright : (C) 2002-2006 by Ewald Arnold + email : mockpp at ewald-arnold dot de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2 of the License, + or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + **/ + +#include <mockpp/mockpp.h> // always first + +#include <mockpp/MockTimeServer.h> + + +namespace mockpp { + + +MOCKPP_EXPORT + MockTimeServer::MockTimeServer(const String &name, + VerifiableList *parent) + : mocktimes(name + MOCKPP_PCHAR("/MockTimeServer"), parent) +{ +} + + +std::time_t MOCKPP_EXPORT MockTimeServer::getUnixTime() +{ + return mocktimes.nextReturnObject(); +} + + +void MOCKPP_EXPORT MockTimeServer::addUnixTime(std::time_t time) +{ + mocktimes.addObjectToReturn(time); +} + + +} // namespace mockpp + |