Change-Id: I4fd030a951c7d2c655b1a1c7c01e0812328dde78
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6207
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Inga Stotland <inga.stotland@intel.com>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
* @param interface Resource interface
*
*/
* @param interface Resource interface
*
*/
- Builder(std::string &&uri, std::string &&type, std::string &&interface);
-
- /**
- * Constructs a Builder.
- *
- * @param uri Resource uri
- * @param type Resource type
- * @param interface Resource interface
- *
- */
- Builder(const std::string &uri, const std::string &type, const std::string &interface);
+ Builder(std::string uri, std::string type, std::string interface);
/**
* Add an interface for the resource.
/**
* Add an interface for the resource.
- RCSResourceObject::Builder::Builder(std::string &&uri, std::string &&type,
- std::string &&interface) :
+ RCSResourceObject::Builder::Builder(std::string uri, std::string type,
+ std::string interface) :
m_uri{ std::move(uri) },
m_types{ std::move(type) },
m_interfaces{ },
m_uri{ std::move(uri) },
m_types{ std::move(type) },
m_interfaces{ },
- RCSResourceObject::Builder::Builder(const std::string &uri, const std::string &type,
- const std::string &interface) :
- m_uri{ uri },
- m_types{ type },
- m_interfaces{ interface },
- m_defaultInterface { BASELINE_INTERFACE },
- m_properties{ OC_DISCOVERABLE | OC_OBSERVABLE },
- m_resourceAttributes{ }
- {
- }
-
RCSResourceObject::Builder& RCSResourceObject::Builder::addInterface(std::string interface)
{
insertValue(m_interfaces, std::move(interface));
RCSResourceObject::Builder& RCSResourceObject::Builder::addInterface(std::string interface)
{
insertValue(m_interfaces, std::move(interface));