Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67103 - in sandbox/configurator/boost/configurator: . detail
From: for.dshevchenko_at_[hidden]
Date: 2010-12-08 11:39:00


Author: dshevchenko
Date: 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
New Revision: 67103
URL: http://svn.boost.org/trac/boost/changeset/67103

Log:
1.0pre continue

Text files modified:
   sandbox/configurator/boost/configurator/configurator.hpp | 7 ++++---
   sandbox/configurator/boost/configurator/detail/comments_remover.hpp | 7 +++----
   sandbox/configurator/boost/configurator/detail/incorrect_options_checker.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/macro.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/misc.hpp | 17 +++++++++--------
   sandbox/configurator/boost/configurator/detail/necessary_options_checker.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/option.hpp | 17 ++++++++++++++++-
   sandbox/configurator/boost/configurator/detail/options_repetition_handler.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/pure_options_obtainer.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/pure_strings_obtainer.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/semantics_checker.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/singleton.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/types.hpp | 3 ++-
   sandbox/configurator/boost/configurator/detail/validators.hpp | 3 ++-
   14 files changed, 52 insertions(+), 26 deletions(-)

Modified: sandbox/configurator/boost/configurator/configurator.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/configurator.hpp (original)
+++ sandbox/configurator/boost/configurator/configurator.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// configurator.hpp
+// ~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //
@@ -130,7 +131,7 @@
>
     Value get_value_of() {
         const std::string value_as_string = get_value_of< Option >();
- return detail::cast< Value >( value_as_string );
+ return detail::cast< std::string, Value >( value_as_string );
     }
 
     template
@@ -140,7 +141,7 @@
>
     configurator& get_value_of( Value& value ) {
         const std::string value_as_string = get_value_of< Option >();
- value = detail::cast< Value >( value_as_string );
+ value = detail::cast< std::string, Value >( value_as_string );
         return *this;
     }
 private:

Modified: sandbox/configurator/boost/configurator/detail/comments_remover.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/comments_remover.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/comments_remover.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,5 +1,6 @@
-// Configurator (C++ library for configuration file parsing)
-//
+// detail/comments_remover.hpp
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+//
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //
 // Distributed under the Boost Software License, version 1.0
@@ -13,8 +14,6 @@
 #include <boost/mem_fn.hpp>
 #include <boost/assign.hpp>
 
-// #include <iostream>
-
 namespace boost {
 
 /// \namespace cf

Modified: sandbox/configurator/boost/configurator/detail/incorrect_options_checker.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/incorrect_options_checker.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/incorrect_options_checker.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/incorrect_options_checker.hpp
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/macro.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/macro.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/macro.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/macro.hpp
+// ~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/misc.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/misc.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/misc.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/misc.hpp
+// ~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //
@@ -115,18 +116,18 @@
 
 template
 <
- typename SourceType
- , typename TargetType
+ typename Source
+ , typename Target
>
-inline TargetType cast( const SourceType& source ) {
- TargetType target;
+inline Target cast( const Source& source ) {
+ Target target;
     try {
- target = boost::lexical_cast< TargetType >( source );
+ target = boost::lexical_cast< Target >( source );
     } catch ( const std::exception& /* exc */ ) {
         notify( std::string( "Cannot cast value of type '" )
- + BOOST_PP_STRINGIZE( SourceType )
+ + BOOST_PP_STRINGIZE( Source )
                 + "' to type '"
- + BOOST_PP_STRINGIZE( TargetType ) + "'!" );
+ + BOOST_PP_STRINGIZE( Target ) + "'!" );
     }
     return target;
 }

Modified: sandbox/configurator/boost/configurator/detail/necessary_options_checker.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/necessary_options_checker.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/necessary_options_checker.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/necessary_options_checker.hpp
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/option.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/option.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/option.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/option.hpp
+// ~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //
@@ -71,6 +72,20 @@
         default_value.assign( value.begin(), value.end() );
         return *this;
     }
+
+ option& set_default_value( const std::string& _value ) {
+ check_option_necessity();
+ value.assign( _value.begin(), _value.end() );
+ default_value.assign( value.begin(), value.end() );
+ return *this;
+ }
+
+ option& set_default_value( const char* _value ) {
+ check_option_necessity();
+ value.assign( _value );
+ default_value.assign( value.begin(), value.end() );
+ return *this;
+ }
 private:
     void check_option_necessity() const {
         if ( necessary ) {

Modified: sandbox/configurator/boost/configurator/detail/options_repetition_handler.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/options_repetition_handler.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/options_repetition_handler.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/options_repetition_handler.hpp
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/pure_options_obtainer.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/pure_options_obtainer.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/pure_options_obtainer.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Boost.Configurator
+// detail/pure_options_obtainer.hpp
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/pure_strings_obtainer.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/pure_strings_obtainer.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/pure_strings_obtainer.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/pure_strings_obtainer.hpp
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/semantics_checker.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/semantics_checker.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/semantics_checker.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/semantics_checker.hpp
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/singleton.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/singleton.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/singleton.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/singleton.hpp
+// ~~~~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/types.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/types.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/types.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/types.hpp
+// ~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //

Modified: sandbox/configurator/boost/configurator/detail/validators.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/detail/validators.hpp (original)
+++ sandbox/configurator/boost/configurator/detail/validators.hpp 2010-12-08 11:38:57 EST (Wed, 08 Dec 2010)
@@ -1,4 +1,5 @@
-// Configurator (C++ library for configuration file parsing)
+// detail/validators.hpp
+// ~~~~~~~~~~~~~~~~~~~~~
 //
 // Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
 //


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk