//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-/// @file OCResourceResponse.h
-
-/// @brief This file contains the declaration of classes and its members related to
-/// ResourceResponse.
+/**
+ * @file
+ *
+ * This file contains the declaration of classes and its members related to
+ * ResourceResponse.
+ */
#ifndef __OCRESOURCERESPONSE_H
#define __OCRESOURCERESPONSE_H
public:
typedef std::shared_ptr<OCResourceResponse> Ptr;
- OCResourceResponse()
- {}
+ OCResourceResponse():
+ m_newResourceUri{},
+ m_errorCode{},
+ m_headerOptions{},
+ m_interface{},
+ m_representation{},
+ m_requestHandle{nullptr},
+ m_resourceHandle{nullptr},
+ m_responseResult{}
+ {
+ }
+ OCResourceResponse(OCResourceResponse&&) = default;
+ OCResourceResponse& operator=(OCResourceResponse&&) = default;
virtual ~OCResourceResponse(void) {}
/**
/**
* API to set the entire resource attribute representation
- * @param attributeMap reference containing the name value pairs representing
- * the resource's attributes
+ * @param rep reference to the resource's representation
* @param interface specifies the interface
*/
void setResourceRepresentation(OCRepresentation& rep, std::string interface) {
/**
* API to set the entire resource attribute representation
- * @param attributeMap rvalue reference containing the name value pairs representing
- * the resource's attributes
+ * @param rep rvalue reference to the resource's representation
* @param interface specifies the interface
*/
void setResourceRepresentation(OCRepresentation&& rep, std::string interface) {
/**
* API to set the entire resource attribute representation
- * @param attributeMap reference containing the name value pairs representing the resource's
- * attributes
+ * @param rep reference to the resource's representation
*/
void setResourceRepresentation(OCRepresentation& rep) {
// Call the default
/**
* API to set the entire resource attribute representation
- * @param attributeMap rvalue reference containing the name value pairs representing the
- * resource's attributes
+ * @param rep rvalue reference to the resource's representation
*/
void setResourceRepresentation(OCRepresentation&& rep) {
// Call the above function