[Cppunit-cvs] cppunit2/src/cpput properties.cpp,NONE,1.1
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2004-11-19 19:32:26
|
Update of /cvsroot/cppunit/cppunit2/src/cpput In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11992/src/cpput Added Files: properties.cpp Log Message: * added support for PropertyPath --- NEW FILE: properties.cpp --- #include <opentest/properties.h> #include <string.h> namespace OpenTest { // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// // class Value // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// Value::Value() { guts_.type_ = vtNone; } Value::Value( bool value ) { [...1013 lines suppressed...] if ( !it->value().isProperties() ) { throw std::invalid_argument( "Properties: invalid path, '" + name + "' is not a properties." ); } properties = &(it->value().asProperties()); } return *properties; } void Properties::checkPathNotEmpty( const PropertyPath &path ) const { if ( path.isEmpty() ) throw std::invalid_argument( "Properties: invalid path (empty)." ); } } // namespace OpenTest |