Missed a few name conversions.
authorJesse Williamson <jesse.f.williamson@intel.com>
Thu, 24 Jul 2014 03:42:30 +0000 (20:42 -0700)
committerGerrit Code Review <gerrit@fmygit6002.fm.intel.com>
Thu, 24 Jul 2014 18:30:15 +0000 (11:30 -0700)
OCLib/InProcServerWrapper.cpp
examples/Makefile
examples/old_tests/OCWrapper/testServer.cpp
examples/reflect/test_OCReflect.cpp
examples/simpleserver.cpp

index 6acb217..925acc4 100644 (file)
@@ -84,7 +84,7 @@ namespace OC
     {
         using OC::OCReflect::property_type;
         using OC::OCReflect::property_binding;
-        using namespace OC::OCReflect::to_OCStack;
+        using namespace OC::OCReflect::OCStack;
 
         std::vector<std::string> reps { convert(properties) };
 
index aca8919..986a93b 100644 (file)
@@ -5,7 +5,8 @@ CXX_FLAGS=-std=c++11 -Wall -pthread
 
 CXX_INC=-I../include/ -I./client/ -I../csdk/stack/include -I../csdk/ocsocket/include -I../csdk/ocrandom/include -I../csdk/logger/include
 
-LIB_SRC0=../OCLib/OCReflect.cpp ../OCLib/OCProperties.cpp ../OCLib/OCObserver.cpp ../OCLib/OCResource.cpp ./client/MyObserverHandler.cpp  ../OCLib/OCServer.cpp
+# LIB_SRC0=../OCLib/OCReflect.cpp ../OCLib/OCProperties.cpp ../OCLib/OCObserver.cpp ../OCLib/OCResource.cpp ./client/MyObserverHandler.cpp  ../OCLib/OCServer.cpp
+LIB_SRC0=../OCLib/OCReflect.cpp ../OCLib/OCProperties.cpp ../OCLib/OCObserver.cpp ../OCLib/OCResource.cpp ../OCLib/OCServer.cpp
 
 LIB_SRC1=../OCLib/OCReflect.cpp ../OCLib/OCObserver.cpp ./client/MyObserverHandler.cpp ../OCLib/OCResource.cpp ../OCLib/OCSecurityModel.cpp ../OCLib/InProcClientWrapper.cpp ../OCLib/OCPlatform.cpp ../OCLib/InProcServerWrapper.cpp ../csdk/liboctbstack.a ../OCLib/OCServer.cpp
 
index 3e11cea..a191f7e 100644 (file)
@@ -43,7 +43,7 @@ void rep_test()
               named_property_binding("power", property_type::integer),
        };
 
-       using namespace OC::OCReflect::to_OCStack;
+       using namespace OC::OCReflect::OCStack;
 
        std::vector<std::string> reps { convert(sigs) };
 
index 9c4c260..d2eabac 100644 (file)
@@ -221,6 +221,7 @@ class light
 
                 server.bind(b_manufacturer);
 */
+/*
                 // The canonical way to bind a property to a server in one step:
                 bind_property(
                                 server,                                      // server to bind to
@@ -229,6 +230,7 @@ class light
                                 OC::OCReflect::property_type::string,        // property
                                 OC::OCReflect::property_attribute::r         // type decoration
                 );
+*/
         }
 };
 
index bafdfd2..1e60c21 100644 (file)
@@ -82,8 +82,8 @@ public:
        {
         /*
         We could typedef to simpler names! :)
-        typedef named_property_binding_vector OCPropertyBindings;
-        typedef named_property_binding OCPropertyBinding;
+        typedef property_binding_vector OCPropertyBindings;
+        typedef property_binding OCPropertyBinding;
 
         OCPropertyBindings properties {
                        OCPropertyBinding("state", property_type::boolean),
@@ -99,8 +99,8 @@ public:
         */
 
         auto properties {
-                       named_property_binding{"state", property_type::boolean},
-                       named_property_binding{"power", property_type::integer}
+                       property_binding{"state", property_type::boolean},
+                       property_binding{"power", property_type::integer}
         };
 
                std::string resourceURI = "/a/light";