$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r67190 - in sandbox/configurator/boost/configurator: . detail
From: for.dshevchenko_at_[hidden]
Date: 2010-12-12 11:58:56
Author: dshevchenko
Date: 2010-12-12 11:58:53 EST (Sun, 12 Dec 2010)
New Revision: 67190
URL: http://svn.boost.org/trac/boost/changeset/67190
Log:
Remove configurator_settings from boost::cf namespace
Added:
   sandbox/configurator/boost/configurator/detail/configurator_settings.hpp   (contents, props changed)
Text files modified: 
   sandbox/configurator/boost/configurator/configurator.hpp |    42 ++------------------------------------- 
   1 files changed, 3 insertions(+), 39 deletions(-)
Modified: sandbox/configurator/boost/configurator/configurator.hpp
==============================================================================
--- sandbox/configurator/boost/configurator/configurator.hpp	(original)
+++ sandbox/configurator/boost/configurator/configurator.hpp	2010-12-12 11:58:53 EST (Sun, 12 Dec 2010)
@@ -9,6 +9,7 @@
 #ifndef BOOST_CONFIGURATOR_HPP
 #define BOOST_CONFIGURATOR_HPP
 
+#include <boost/configurator/configurator_settings.hpp>
 #include <boost/configurator/macro.hpp>
 #include <boost/configurator/detail/validators.hpp>
 #include <boost/configurator/detail/type_name.hpp>
@@ -20,6 +21,7 @@
 #include <boost/configurator/detail/necessary_options_checker.hpp>
 #include <boost/configurator/detail/semantics_checker.hpp>
 #include <boost/configurator/detail/options_repetition_handler.hpp>
+#include <boost/spirit/include/qi.hpp>
 #include <boost/spirit/include/phoenix_core.hpp>
 #include <boost/spirit/include/phoenix_operator.hpp>
 #include <boost/spirit/include/phoenix_stl.hpp>
@@ -34,44 +36,6 @@
 /// \brief Main namespace of library.
 namespace cf {
 
-struct configurator_settings {
-    configurator_settings() :
-            option_name_value_separator( '=' )
-            , option_name_value_separator_str( "=" )
-            , one_line_comment_sign( "//" ) 
-            , case_sensitivity( false ) {}
-public:
-    char        option_name_value_separator;
-    std::string one_line_comment_sign;
-    bool        case_sensitivity;
-    std::string option_name_value_separator_str;
-    //
-public:
-    configurator_settings& set_case_sensitivity_for_names() {
-        case_sensitivity = true;
-        return *this;
-    }
-
-    configurator_settings& set_name_value_separator( char separator ) {
-        option_name_value_separator = separator;
-        check_separator_validity();
-        return *this;
-    }
-private:
-    void check_separator_validity() const {
-        const int ascii_code = option_name_value_separator;
-        if ( ascii_code < 0x20 ) {
-            detail::o_stream what_happened;
-            what_happened << "Symbol (ASCII-code is " << ascii_code
-                          << ") is not suitable for name-value separator!"
-                          ;
-            notify( what_happened.str() );
-        } else {}
-    }
-public:
-    //
-};
-
 /// \class configurator
 /// \brief Configurator.
 ///
@@ -92,7 +56,7 @@
 private:
     const std::string sections_separator;
 private:
-    configurator_settings settings_of_configurator;
+    detail::configurator_settings settings_of_configurator;
 public:
     configurator_settings& settings() {
         return settings_of_configurator;
Added: sandbox/configurator/boost/configurator/detail/configurator_settings.hpp
==============================================================================
--- (empty file)
+++ sandbox/configurator/boost/configurator/detail/configurator_settings.hpp	2010-12-12 11:58:53 EST (Sun, 12 Dec 2010)
@@ -0,0 +1,70 @@
+// detail/configurator_settings.hpp
+// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+// 
+// Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
+//
+// Distributed under the Boost Software License, version 1.0
+// (see http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_CONFIGURATOR_SETTINGS_HPP
+#define BOOST_CONFIGURATOR_SETTINGS_HPP
+
+#include <boost/configurator/detail/types.hpp>
+#include <boost/configurator/detail/misc.hpp>
+
+#include <string>
+
+namespace boost {
+
+/// \namespace cf
+/// \brief Main namespace of library.
+namespace cf {
+
+/// \namespace cf::detail
+/// \brief Details of realization.
+namespace detail {
+
+///
+struct configurator_settings {
+    configurator_settings() :
+            option_name_value_separator( '=' )
+            , option_name_value_separator_str( "=" )
+            , one_line_comment_sign( "//" ) 
+            , case_sensitivity( false ) {}
+public:
+    char        option_name_value_separator;
+    std::string one_line_comment_sign;
+    bool        case_sensitivity;
+    std::string option_name_value_separator_str;
+    //
+public:
+    configurator_settings& set_case_sensitivity_for_names() {
+        case_sensitivity = true;
+        return *this;
+    }
+
+    configurator_settings& set_name_value_separator( char separator ) {
+        option_name_value_separator = separator;
+        check_separator_validity();
+        return *this;
+    }
+private:
+    void check_separator_validity() const {
+        const int ascii_code = option_name_value_separator;
+        if ( ascii_code < 0x20 ) {
+            detail::o_stream what_happened;
+            what_happened << "Symbol (ASCII-code is " << ascii_code
+                          << ") is not suitable for name-value separator!"
+                          ;
+            notify( what_happened.str() );
+        } else {}
+    }
+public:
+    //
+};
+
+} // namespace detail
+} // namespace cf
+} // namespace boost
+
+#endif // BOOST_CONFIGURATOR_SETTINGS_HPP