[Cppunit-cvs] cppunit2/include/opentest properties.h,1.2,1.3
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2004-11-18 09:20:43
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13378/include/opentest Modified Files: properties.h Log Message: * started implementing assertion support for both checking and aborting assertion * TestInfo to send incremental update on the test result to the test driver (logging...) Index: properties.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/properties.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** properties.h 15 Nov 2004 08:45:24 -0000 1.2 --- properties.h 18 Nov 2004 09:20:34 -0000 1.3 *************** *** 2,6 **** # define OPENTEST_PROPERTIES_H_INCLUDED ! # include <opentest/config.h> # include <cpptl/enumerator.h> # include <exception> --- 2,6 ---- # define OPENTEST_PROPERTIES_H_INCLUDED ! # include <opentest/forwards.h> # include <cpptl/enumerator.h> # include <exception> *************** *** 136,139 **** --- 136,142 ---- const Value &operator[]( const std::string &name ) const; + /// Delegates to Properties::append if the value is a Properties. + Properties &append( const Value &value ); + private: *************** *** 242,245 **** --- 245,250 ---- void swap( Properties &other ); + void clear(); + Properties &set( const Property &property ); *************** *** 757,760 **** --- 762,772 ---- + inline Properties & + Value::append( const Value &value ) + { + return asProperties().append( value ); + } + + inline void Value::throwBadCast() const *************** *** 937,940 **** --- 949,960 ---- + inline void + Properties::clear() + { + properties_.clear(); + indexedProperties_.clear(); + } + + inline Properties & Properties::set( const Property &property ) |