- Prohibit implicit copy-contructor and assignment operator for certain classes.
- Update copyright note
Change-Id: I0893aa2a4de23832fb9d540128f106fd7b45bafa
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4489
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
{
public:
BMISensorResource();
+ BMISensorResource(const BMISensorResource &other)=delete;
+ BMISensorResource& operator=( const BMISensorResource& rhs )=delete;
~BMISensorResource();
virtual void handleSetAttributesRequest(RCSResourceAttributes &attrs);
#define MAX_PATH 2048
-/* Annother way to create a context: */
+/* Another way to create a context: */
auto info_logger = []() -> boost::iostreams::stream<OC::oc_log_stream> &
{
static OC::oc_log_stream ols(oc_make_ostream_logger);
static boost::iostreams::stream<OC::oc_log_stream> os(ols);
-
return os;
};
//******************************************************************
//
-// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
+// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-// OCClient.cpp : Defines the entry point for the console application.
-//
+
#include <string>
#include <map>
#include <cstdlib>
std::cout << "Posting light representation..." << std::endl;
- mylight.m_on_off = "false";
+ mylight.m_on_off = false;
rep.setValue("on-off", mylight.m_on_off);
public:
DiscomfortIndexSensorResource();
~DiscomfortIndexSensorResource();
+ DiscomfortIndexSensorResource(const DiscomfortIndexSensorResource &other)=delete;
+ DiscomfortIndexSensorResource& operator=( const DiscomfortIndexSensorResource& rhs )=delete;
virtual void handleSetAttributesRequest(RCSResourceAttributes &attrs);
{
executeLogic();
}
-}
\ No newline at end of file
+}
}
}
return false;
-}
\ No newline at end of file
+}
typedef RemoteResourceUnit::UPDATE_MSG REMOTE_MSG;
DiscoverResourceUnit(const std::string &bundleId);
+ DiscoverResourceUnit(const DiscoverResourceUnit &other)=delete;
+ DiscoverResourceUnit& operator=( const DiscoverResourceUnit& rhs )=delete;
~DiscoverResourceUnit();
void startDiscover(DiscoverResourceInfo info, UpdatedCB updatedCB);