Boost logo

Boost-Commit :

From: jmcintyre_at_[hidden]
Date: 2007-12-04 13:50:21


Author: jared
Date: 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
New Revision: 41692
URL: http://svn.boost.org/trac/boost/changeset/41692

Log:
Cleaned up includes and added library build step
Added:
   sandbox/pinhole/boost/pinhole.hpp (contents, props changed)
   sandbox/pinhole/boost/pinhole/config.hpp (contents, props changed)
   sandbox/pinhole/libs/pinhole/build/
   sandbox/pinhole/libs/pinhole/build/Jamfile.v2 (contents, props changed)
   sandbox/pinhole/libs/pinhole/src/
   sandbox/pinhole/libs/pinhole/src/globals.cpp (contents, props changed)
Text files modified:
   sandbox/pinhole/boost/pinhole/BoolEditor.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/DoubleEditor.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/Editor.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/EditorTypeFinder.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/FloatEditor.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/IntegerEditor.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/StringEditor.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/action_info.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/exceptions.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/find.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/main.cpp | 2 +-
   sandbox/pinhole/boost/pinhole/map_key_value_iterators.hpp | 3 +--
   sandbox/pinhole/boost/pinhole/property_group.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/property_group_wrapper.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/property_info.hpp | 2 +-
   sandbox/pinhole/boost/pinhole/property_manager.hpp | 7 +++----
   sandbox/pinhole/libs/pinhole/test/Jamfile.v2 | 3 ++-
   sandbox/pinhole/libs/pinhole/test/TestClassesAndConstants.hpp | 8 +-------
   sandbox/pinhole/libs/pinhole/test/test_actions.cpp | 4 ----
   sandbox/pinhole/libs/pinhole/test/test_bool_properties.cpp | 8 +-------
   sandbox/pinhole/libs/pinhole/test/test_double_properties.cpp | 7 +------
   sandbox/pinhole/libs/pinhole/test/test_float_properties.cpp | 7 +------
   sandbox/pinhole/libs/pinhole/test/test_integer_properties.cpp | 7 +------
   sandbox/pinhole/libs/pinhole/test/test_property_group_wrapper.cpp | 6 +-----
   sandbox/pinhole/libs/pinhole/test/test_property_groups.cpp | 6 +-----
   sandbox/pinhole/libs/pinhole/test/test_string_properties.cpp | 7 +------
   26 files changed, 28 insertions(+), 73 deletions(-)

Added: sandbox/pinhole/boost/pinhole.hpp
==============================================================================
--- (empty file)
+++ sandbox/pinhole/boost/pinhole.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -0,0 +1,14 @@
+// Pinhole pinhole.hpp file
+//
+// Copyright Jared McIntyre 2007.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_PROPERTY_PINHOLE
+#define BOOST_PROPERTY_PINHOLE
+
+#include "pinhole/config.hpp"
+#include "pinhole/property_group.hpp"
+
+#endif //BOOST_PROPERTY_PINHOLE
\ No newline at end of file

Modified: sandbox/pinhole/boost/pinhole/BoolEditor.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/BoolEditor.hpp (original)
+++ sandbox/pinhole/boost/pinhole/BoolEditor.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system BoolEditor.h file
+// Pinhole BoolEditor.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/DoubleEditor.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/DoubleEditor.hpp (original)
+++ sandbox/pinhole/boost/pinhole/DoubleEditor.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system DoubleEditor.h file
+// Pinhole DoubleEditor.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/Editor.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/Editor.hpp (original)
+++ sandbox/pinhole/boost/pinhole/Editor.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system Editor.h file
+// Pinhole Editor.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/EditorTypeFinder.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/EditorTypeFinder.hpp (original)
+++ sandbox/pinhole/boost/pinhole/EditorTypeFinder.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system EditorTypeFinder.h file
+// Pinhole EditorTypeFinder.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/FloatEditor.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/FloatEditor.hpp (original)
+++ sandbox/pinhole/boost/pinhole/FloatEditor.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system FloatEditor.h file
+// Pinhole FloatEditor.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/IntegerEditor.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/IntegerEditor.hpp (original)
+++ sandbox/pinhole/boost/pinhole/IntegerEditor.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system IntegerEditor.h file
+// Pinhole IntegerEditor.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/StringEditor.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/StringEditor.hpp (original)
+++ sandbox/pinhole/boost/pinhole/StringEditor.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system StringEditor.h file
+// Pinhole StringEditor.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/action_info.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/action_info.hpp (original)
+++ sandbox/pinhole/boost/pinhole/action_info.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system action_info.h file
+// Pinhole action_info.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Added: sandbox/pinhole/boost/pinhole/config.hpp
==============================================================================
--- (empty file)
+++ sandbox/pinhole/boost/pinhole/config.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -0,0 +1,47 @@
+// Pinhole pinhole.h file
+// Copyright Jared McIntyre 2007.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// Some parts based on boost::regex config.hpp
+
+#ifndef BOOST_PINHOLE_CONFIG_HPP
+#define BOOST_PINHOLE_CONFIG_HPP
+
+#include <boost/config.hpp>
+
+/*****************************************************************************
+ *
+ * Set up dll import/export options:
+ *
+ ****************************************************************************/
+
+#if defined(BOOST_HAS_DECLSPEC) && (defined(BOOST_PINHOLE_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_PINHOLE_STATIC_LINK)
+# if defined(BOOST_PINHOLE_SOURCE)
+# define BOOST_PINHOLE_DECL __declspec(dllexport)
+# define BOOST_PINHOLE_BUILD_DLL
+# else
+# define BOOST_PINHOLE_DECL __declspec(dllimport)
+# endif
+#endif
+
+#ifndef BOOST_PINHOLE_DECL
+# define BOOST_PINHOLE_DECL
+#endif
+
+/* Not currently supported
+
+#if !defined(BOOST_PINHOLE_NO_LIB) && !defined(BOOST_PINHOLE_SOURCE) && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
+# define BOOST_LIB_NAME boost_pinhole
+# if defined(BOOST_PINHOLE_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
+# define BOOST_DYN_LINK
+# endif
+# ifdef BOOST_PINHOLE_DIAG
+# define BOOST_LIB_DIAGNOSTIC
+# endif
+# include <boost/config/auto_link.hpp>
+#endif
+*/
+
+#endif // BOOST_PINHOLE_CONFIG_HPP

Modified: sandbox/pinhole/boost/pinhole/exceptions.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/exceptions.hpp (original)
+++ sandbox/pinhole/boost/pinhole/exceptions.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system Exceptions.h file
+// Pinhole Exceptions.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/find.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/find.hpp (original)
+++ sandbox/pinhole/boost/pinhole/find.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system Find.h file
+// Pinhole Find.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/main.cpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/main.cpp (original)
+++ sandbox/pinhole/boost/pinhole/main.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system property_manager.h file
+// Pinhole demo source
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/map_key_value_iterators.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/map_key_value_iterators.hpp (original)
+++ sandbox/pinhole/boost/pinhole/map_key_value_iterators.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system map_key_value_iterators.h file
+// Pinhole map_key_value_iterators.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.
@@ -8,7 +8,6 @@
 #ifndef BOOST_MAP_KEY_VALUE_ITERATORS
 #define BOOST_MAP_KEY_VALUE_ITERATORS
 
-#include <boost/config.hpp>
 #if defined(BOOST_MSVC)
     #pragma warning(push)
     #pragma warning(disable: 4561 4996)

Modified: sandbox/pinhole/boost/pinhole/property_group.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/property_group.hpp (original)
+++ sandbox/pinhole/boost/pinhole/property_group.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system property_group.h file
+// Pinhole property_group.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/property_group_wrapper.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/property_group_wrapper.hpp (original)
+++ sandbox/pinhole/boost/pinhole/property_group_wrapper.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system property_group_wrapper.h file
+// Pinhole property_group_wrapper.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/property_info.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/property_info.hpp (original)
+++ sandbox/pinhole/boost/pinhole/property_info.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system property_manager.h file
+// Pinhole property_manager.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/pinhole/boost/pinhole/property_manager.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/property_manager.hpp (original)
+++ sandbox/pinhole/boost/pinhole/property_manager.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-// MscProperty system property_manager.h file
+// Pinhole property_manager.hpp file
 //
 // Copyright Jared McIntyre 2007.
 // Distributed under the Boost Software License, Version 1.0.
@@ -13,7 +13,6 @@
 #include <set>
 #include <string>
 
-#include <boost/config.hpp>
 #if defined(BOOST_MSVC)
     #pragma warning(push)
     #pragma warning( disable: 4561 4793 )
@@ -32,7 +31,7 @@
     typedef std::set<std::string> category_collection;
     typedef std::list<property_group*> children_collection;
     
- class event_source
+ class BOOST_PINHOLE_DECL event_source
     {
     public :
         static event_source* instance()
@@ -70,7 +69,7 @@
         
     };
 
- class property_manager
+ class BOOST_PINHOLE_DECL property_manager
     {
     private:
         static void deleter(property_manager* manager)

Added: sandbox/pinhole/libs/pinhole/build/Jamfile.v2
==============================================================================
--- (empty file)
+++ sandbox/pinhole/libs/pinhole/build/Jamfile.v2 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -0,0 +1,22 @@
+# Boost.Pinhole Library
+
+# Copyright Jared McIntyre 2007. Use, modification and
+# distribution is subject to the Boost Software License, Version
+# 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+# For more information, see http://www.boost.org
+
+
+project boost/pinhole
+ : requirements
+ <link>shared:<define>BOOST_ALL_DYN_LINK=1
+ <link>static:<define>BOOST_PINHOLE_STATIC_LINK
+ : usage-requirements
+ <link>shared:<define>BOOST_PINHOLE_DYN_LINK=1
+ : source-location ../src
+ ;
+
+lib boost_pinhole : globals.cpp ;
+
+#boost-install boost_pinhole ;

Added: sandbox/pinhole/libs/pinhole/src/globals.cpp
==============================================================================
--- (empty file)
+++ sandbox/pinhole/libs/pinhole/src/globals.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -0,0 +1,14 @@
+// Pinhole pinhole.hpp file
+//
+// Copyright Jared McIntyre 2007.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#include <boost/pinhole.hpp>
+
+boost::shared_ptr<boost::pinhole::property_manager>
+ boost::pinhole::property_manager::m_instance(new boost::pinhole::property_manager);
+
+boost::pinhole::event_source
+ *boost::pinhole::event_source::m_instance = 0;
\ No newline at end of file

Modified: sandbox/pinhole/libs/pinhole/test/Jamfile.v2
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/Jamfile.v2 (original)
+++ sandbox/pinhole/libs/pinhole/test/Jamfile.v2 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -1,4 +1,4 @@
-# Boost.Print Library
+# Boost.Pinhole Library
 
 # Copyright Jared McIntyre 2007. Use, modification and
 # distribution is subject to the Boost Software License, Version
@@ -15,6 +15,7 @@
     : requirements
       <library>/boost/test//boost_unit_test_framework/<link>static
       <library>/boost/signals//boost_signals/<link>static
+ <library>../build//boost_pinhole/<link>static
       <define>BOOST_ALL_NO_LIB=1
     ;
 {

Modified: sandbox/pinhole/libs/pinhole/test/TestClassesAndConstants.hpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/TestClassesAndConstants.hpp (original)
+++ sandbox/pinhole/libs/pinhole/test/TestClassesAndConstants.hpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -7,13 +7,7 @@
 
 // For more information, see http://www.boost.org
 
-#include <boost/pinhole/property_group.hpp>
-#include <boost/pinhole/IntegerEditor.hpp>
-#include <boost/pinhole/FloatEditor.hpp>
-#include <boost/pinhole/StringEditor.hpp>
-#include <boost/pinhole/BoolEditor.hpp>
-#include <boost/pinhole/DoubleEditor.hpp>
-#include <boost/pinhole/property_manager.hpp>
+#include <boost/pinhole.hpp>
 
 using namespace boost::pinhole;
 

Modified: sandbox/pinhole/libs/pinhole/test/test_actions.cpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/test_actions.cpp (original)
+++ sandbox/pinhole/libs/pinhole/test/test_actions.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -11,10 +11,6 @@
 #include <boost/test/unit_test.hpp>
 #include "TestClassesAndConstants.hpp"
 
-// I can hide these two line if I don't do everything in headers
-boost::shared_ptr<property_manager> property_manager::m_instance(new property_manager);
-event_source* event_source::m_instance = 0;
-
 BOOST_AUTO_TEST_CASE( TestTriggerAction )
 {
         TestActionsFixture testFixture;

Modified: sandbox/pinhole/libs/pinhole/test/test_bool_properties.cpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/test_bool_properties.cpp (original)
+++ sandbox/pinhole/libs/pinhole/test/test_bool_properties.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -9,19 +9,13 @@
 
 #define BOOST_TEST_MODULE PinholeLib
 
-#include <boost/pinhole/property_group.hpp>
-#include <boost/pinhole/property_manager.hpp>
+#include <boost/pinhole.hpp>
 #include <boost/test/unit_test.hpp>
 
 using namespace std;
 using namespace boost;
 using namespace boost::pinhole;
 
-
-// I can hide these two line if I don't do everything in headers
-shared_ptr<property_manager> property_manager::m_instance(new property_manager);
-event_source* event_source::m_instance = 0;
-
 class TestGroup : public property_group
 {
 public:

Modified: sandbox/pinhole/libs/pinhole/test/test_double_properties.cpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/test_double_properties.cpp (original)
+++ sandbox/pinhole/libs/pinhole/test/test_double_properties.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -9,8 +9,7 @@
 
 #define BOOST_TEST_MODULE PinholeLib
 
-#include <boost/pinhole/property_group.hpp>
-#include <boost/pinhole/property_manager.hpp>
+#include <boost/pinhole.hpp>
 #include <boost/test/unit_test.hpp>
 
 using namespace std;
@@ -44,10 +43,6 @@
         double m_double_Var;
 };
 
-// I can hide these two line if I don't do everything in headers
-boost::shared_ptr<property_manager> property_manager::m_instance(new property_manager);
-event_source* event_source::m_instance = 0;
-
 BOOST_AUTO_TEST_CASE( TestSetGetDouble_Func )
 {
     TestGroup testGroup;

Modified: sandbox/pinhole/libs/pinhole/test/test_float_properties.cpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/test_float_properties.cpp (original)
+++ sandbox/pinhole/libs/pinhole/test/test_float_properties.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -9,8 +9,7 @@
 
 #define BOOST_TEST_MODULE PinholeLib
 
-#include <boost/pinhole/property_group.hpp>
-#include <boost/pinhole/property_manager.hpp>
+#include <boost/pinhole.hpp>
 #include <boost/test/unit_test.hpp>
 
 using namespace std;
@@ -44,10 +43,6 @@
         float m_float_Var;
 };
 
-// I can hide these two line if I don't do everything in headers
-boost::shared_ptr<property_manager> property_manager::m_instance(new property_manager);
-event_source* event_source::m_instance = 0;
-
 BOOST_AUTO_TEST_CASE( TestSetGetFloat_Func )
 {
     TestGroup testGroup;

Modified: sandbox/pinhole/libs/pinhole/test/test_integer_properties.cpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/test_integer_properties.cpp (original)
+++ sandbox/pinhole/libs/pinhole/test/test_integer_properties.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -9,18 +9,13 @@
 
 #define BOOST_TEST_MODULE PinholeLib
 
-#include <boost/pinhole/property_group.hpp>
-#include <boost/pinhole/property_manager.hpp>
+#include <boost/pinhole.hpp>
 #include <boost/test/unit_test.hpp>
 
 using namespace std;
 using namespace boost;
 using namespace boost::pinhole;
 
-// I can hide these two line if I don't do everything in headers
-boost::shared_ptr<property_manager> property_manager::m_instance(new property_manager);
-event_source* event_source::m_instance = 0;
-
 class TestGroup : public property_group
 {
 public:

Modified: sandbox/pinhole/libs/pinhole/test/test_property_group_wrapper.cpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/test_property_group_wrapper.cpp (original)
+++ sandbox/pinhole/libs/pinhole/test/test_property_group_wrapper.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -10,11 +10,7 @@
 #define BOOST_TEST_MODULE PinholeLib
 #include <boost/test/unit_test.hpp>
 #include "TestClassesAndConstants.hpp"
-#include <boost/pinhole/property_group_wrapper.hpp>
-
-// I can hide these two line if I don't do everything in headers
-boost::shared_ptr<property_manager> property_manager::m_instance(new property_manager);
-event_source* event_source::m_instance = 0;
+#include <boost/pinhole.hpp>
 
 BOOST_AUTO_TEST_CASE( TestPropertyGroupWrapper_Bool )
 {

Modified: sandbox/pinhole/libs/pinhole/test/test_property_groups.cpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/test_property_groups.cpp (original)
+++ sandbox/pinhole/libs/pinhole/test/test_property_groups.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -10,11 +10,7 @@
 #define BOOST_TEST_MODULE PinholeLib
 #include <boost/test/unit_test.hpp>
 #include "TestClassesAndConstants.hpp"
-#include <boost/pinhole/find.hpp>
-
-// I can hide these two line if I don't do everything in headers
-boost::shared_ptr<property_manager> property_manager::m_instance(new property_manager);
-event_source* event_source::m_instance = 0;
+#include <boost/pinhole.hpp>
 
 class TestPropertyManager : public property_manager
 {

Modified: sandbox/pinhole/libs/pinhole/test/test_string_properties.cpp
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/test_string_properties.cpp (original)
+++ sandbox/pinhole/libs/pinhole/test/test_string_properties.cpp 2007-12-04 13:50:19 EST (Tue, 04 Dec 2007)
@@ -9,18 +9,13 @@
 
 #define BOOST_TEST_MODULE PinholeLib
 
-#include <boost/pinhole/property_group.hpp>
-#include <boost/pinhole/property_manager.hpp>
+#include <boost/pinhole.hpp>
 #include <boost/test/unit_test.hpp>
 
 using namespace std;
 using namespace boost;
 using namespace boost::pinhole;
 
-// I can hide these two line if I don't do everything in headers
-boost::shared_ptr<property_manager> property_manager::m_instance(new property_manager);
-event_source* event_source::m_instance = 0;
-
 class TestGroup : public property_group
 {
 public:


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