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
|