Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71878 - sandbox/property/libs/property/test
From: eldiener_at_[hidden]
Date: 2011-05-11 16:47:25


Author: eldiener
Date: 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
New Revision: 71878
URL: http://svn.boost.org/trac/boost/changeset/71878

Log:
Added test header files and included one of them.
Added:
   sandbox/property/libs/property/test/test_auto_value.hpp (contents, props changed)
   sandbox/property/libs/property/test/test_enum.hpp (contents, props changed)
   sandbox/property/libs/property/test/test_global_data.hpp (contents, props changed)
   sandbox/property/libs/property/test/test_pod.hpp (contents, props changed)
Text files modified:
   sandbox/property/libs/property/test/test_auto_value_bool.cpp | 2 +-
   sandbox/property/libs/property/test/test_auto_value_character.cpp | 2 +-
   sandbox/property/libs/property/test/test_auto_value_enum.cpp | 2 +-
   sandbox/property/libs/property/test/test_auto_value_floating_point.cpp | 2 +-
   sandbox/property/libs/property/test/test_auto_value_integer.cpp | 2 +-
   sandbox/property/libs/property/test/test_auto_value_pointer.cpp | 2 +-
   sandbox/property/libs/property/test/test_auto_value_user_defined.cpp | 2 +-
   7 files changed, 7 insertions(+), 7 deletions(-)

Added: sandbox/property/libs/property/test/test_auto_value.hpp
==============================================================================
--- (empty file)
+++ sandbox/property/libs/property/test/test_auto_value.hpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -0,0 +1,100 @@
+#if !defined(TEST_AUTO_VALUE_HPP)
+#define TEST_AUTO_VALUE_HPP
+
+#include "test_enum.hpp"
+#include "test_pod.hpp"
+#include "test_global_data.hpp"
+#include <boost/property/property_auto_value.hpp>
+#include <boost/property/property_notification_boost_signal.hpp>
+
+using namespace properties;
+
+extern prop_auto<char> p_gl_char;
+extern prop_auto<int> p_gl_int;
+extern prop_auto<double> p_gl_double;
+extern prop_auto<bool> p_gl_bool;
+extern prop_auto<int *> p_gl_pointer;
+extern prop_auto<test_enum> p_gl_enum;
+extern prop_auto<test_pod> p_gl_class;
+
+extern prop_auto<char const> p_gl_char_const;
+extern prop_auto<int,default_policy_tag,read_tag> p_gl_int_const;
+extern prop_auto<double const> p_gl_double_const;
+extern prop_auto<bool,default_policy_tag,read_tag> p_gl_bool_const;
+extern prop_auto<int * const> p_gl_pointer_const;
+extern prop_auto<test_enum,default_policy_tag,read_tag> p_gl_enum_const;
+extern prop_auto<test_pod const> p_gl_class_const;
+
+extern prop_auto<char,notification_boost_signal> p_gl_char_ntf;
+extern prop_auto<int,notification_boost_signal> p_gl_int_ntf;
+extern prop_auto<double,notification_boost_signal> p_gl_double_ntf;
+extern prop_auto<bool,notification_boost_signal> p_gl_bool_ntf;
+extern prop_auto<int *,notification_boost_signal> p_gl_pointer_ntf;
+extern prop_auto<test_enum,notification_boost_signal> p_gl_enum_ntf;
+extern prop_auto<test_pod,notification_boost_signal> p_gl_class_ntf;
+
+class PAuto_class
+ {
+
+ public:
+
+ PAuto_class();
+
+ prop_auto<char> p_char;
+ prop_auto<int> p_int;
+ prop_auto<double> p_double;
+ prop_auto<bool> p_bool;
+ prop_auto<int *> p_pointer;
+ prop_auto<test_enum> p_enum;
+ prop_auto<test_pod> p_class;
+
+ prop_auto<char const> p_char_const;
+ prop_auto<int,default_policy_tag,read_tag> p_int_const;
+ prop_auto<double const> p_double_const;
+ prop_auto<bool,default_policy_tag,read_tag> p_bool_const;
+ prop_auto<int * const> p_pointer_const;
+ prop_auto<test_enum,default_policy_tag,read_tag> p_enum_const;
+ prop_auto<test_pod const> p_class_const;
+
+ prop_auto<char,notification_boost_signal> p_char_ntf;
+ prop_auto<int,notification_boost_signal> p_int_ntf;
+ prop_auto<double,notification_boost_signal> p_double_ntf;
+ prop_auto<bool,notification_boost_signal> p_bool_ntf;
+ prop_auto<int *,notification_boost_signal> p_pointer_ntf;
+ prop_auto<test_enum,notification_boost_signal> p_enum_ntf;
+ prop_auto<test_pod,notification_boost_signal> p_class_ntf;
+
+ static prop_auto<char> p_st_char;
+ static prop_auto<int> p_st_int;
+ static prop_auto<double> p_st_double;
+ static prop_auto<bool> p_st_bool;
+ static prop_auto<int *> p_st_pointer;
+ static prop_auto<test_enum> p_st_enum;
+ static prop_auto<test_pod> p_st_class;
+
+ static prop_auto<char const> p_st_char_const;
+ static prop_auto<int,default_policy_tag,read_tag> p_st_int_const;
+ static prop_auto<double const> p_st_double_const;
+ static prop_auto<bool,default_policy_tag,read_tag> p_st_bool_const;
+ static prop_auto<int * const> p_st_pointer_const;
+ static prop_auto<test_enum,default_policy_tag,read_tag> p_st_enum_const;
+ static prop_auto<test_pod const> p_st_class_const;
+
+ static prop_auto<char,notification_boost_signal> p_st_char_ntf;
+ static prop_auto<int,notification_boost_signal> p_st_int_ntf;
+ static prop_auto<double,notification_boost_signal> p_st_double_ntf;
+ static prop_auto<bool,notification_boost_signal> p_st_bool_ntf;
+ static prop_auto<int *,notification_boost_signal> p_st_pointer_ntf;
+ static prop_auto<test_enum,notification_boost_signal> p_st_enum_ntf;
+ static prop_auto<test_pod,notification_boost_signal> p_st_class_ntf;
+
+ private:
+
+ int some_int;
+ int some_int_const;
+ static int st_some_int;
+ static int st_some_int_const;
+
+ };
+
+#endif

Modified: sandbox/property/libs/property/test/test_auto_value_bool.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_value_bool.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_value_bool.cpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -1,5 +1,5 @@
 #include <boost/detail/lightweight_test.hpp>
-#include <boost/property/property_auto_value.hpp>
+#include "test_auto_value.hpp"
 
 int main()
   {

Modified: sandbox/property/libs/property/test/test_auto_value_character.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_value_character.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_value_character.cpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -1,5 +1,5 @@
 #include <boost/detail/lightweight_test.hpp>
-#include <boost/property/property_auto_value.hpp>
+#include "test_auto_value.hpp"
 
 int main()
   {

Modified: sandbox/property/libs/property/test/test_auto_value_enum.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_value_enum.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_value_enum.cpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -1,5 +1,5 @@
 #include <boost/detail/lightweight_test.hpp>
-#include <boost/property/property_auto_value.hpp>
+#include "test_auto_value.hpp"
 
 int main()
   {

Modified: sandbox/property/libs/property/test/test_auto_value_floating_point.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_value_floating_point.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_value_floating_point.cpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -1,5 +1,5 @@
 #include <boost/detail/lightweight_test.hpp>
-#include <boost/property/property_auto_value.hpp>
+#include "test_auto_value.hpp"
 
 int main()
   {

Modified: sandbox/property/libs/property/test/test_auto_value_integer.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_value_integer.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_value_integer.cpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -1,5 +1,5 @@
 #include <boost/detail/lightweight_test.hpp>
-#include <boost/property/property_auto_value.hpp>
+#include "test_auto_value.hpp"
 
 int main()
   {

Modified: sandbox/property/libs/property/test/test_auto_value_pointer.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_value_pointer.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_value_pointer.cpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -1,5 +1,5 @@
 #include <boost/detail/lightweight_test.hpp>
-#include <boost/property/property_auto_value.hpp>
+#include "test_auto_value.hpp"
 
 int main()
   {

Modified: sandbox/property/libs/property/test/test_auto_value_user_defined.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_value_user_defined.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_value_user_defined.cpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -1,5 +1,5 @@
 #include <boost/detail/lightweight_test.hpp>
-#include <boost/property/property_auto_value.hpp>
+#include "test_auto_value.hpp"
 
 int main()
   {

Added: sandbox/property/libs/property/test/test_enum.hpp
==============================================================================
--- (empty file)
+++ sandbox/property/libs/property/test/test_enum.hpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -0,0 +1,11 @@
+#if !defined(TEST_ENUM_HPP)
+#define TEST_ENUM_HPP
+
+enum test_enum
+ {
+ e_test_first,
+ e_test_second,
+ e_test_third
+ };
+
+#endif

Added: sandbox/property/libs/property/test/test_global_data.hpp
==============================================================================
--- (empty file)
+++ sandbox/property/libs/property/test/test_global_data.hpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -0,0 +1,7 @@
+#if !defined(TEST_PROPERTY_GLOBAL_DATA_HPP)
+#define TEST_PROPERTY_GLOBAL_DATA_HPP
+
+extern int gl_some_int;
+extern int gl_some_int_const;
+
+#endif

Added: sandbox/property/libs/property/test/test_pod.hpp
==============================================================================
--- (empty file)
+++ sandbox/property/libs/property/test/test_pod.hpp 2011-05-11 16:47:24 EDT (Wed, 11 May 2011)
@@ -0,0 +1,20 @@
+#if !defined(TEST_POD_HPP)
+#define TEST_POD_HPP
+
+struct test_pod
+ {
+ test_pod() :
+ a_char(' '),
+ an_int(0),
+ a_double(0),
+ a_bool(false)
+ {
+ }
+
+ char a_char;
+ int an_int;
+ double a_double;
+ bool a_bool;
+ };
+
+#endif


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