BAOS SDK v2  1.0.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
BaosResponse< T > Struct Template Reference

An actual BAOS response with payload of template parameter T. More...

#include <baos/protocol/Response.h>

+ Inheritance diagram for BaosResponse< T >:

Public Types

using SPtr = std::shared_ptr< BaosResponse >
 An alias for a std::shared pointer holding an BaosResponse class.
 
- Public Types inherited from BaosBaseResponse
using SPtr = std::shared_ptr< BaosBaseResponse >
 An alias for a std::shared pointer holding an BaosBaseResponse class.
 
- Public Types inherited from BaseResponse
using SPtr = std::shared_ptr< BaseResponse >
 An alias for a std::shared pointer holding an BaseResponse class.
 

Public Member Functions

 BaosResponse (protocol::BaosResponseCode code_, T &&items)
 Construct a new BaosResponse object. More...
 
getPayload ()
 Getter for payload.
 
void setPayload (T &&value)
 Setter for payload.
 
- Public Member Functions inherited from BaosBaseResponse
 BaosBaseResponse (protocol::BaosResponseCode code_)
 Construct a new BaosBaseResponse object. More...
 

Additional Inherited Members

- Public Attributes inherited from BaosBaseResponse
protocol::BaosResponseCode code {protocol::BaosResponseCode::Success}
 holds the BaosResponse code
 

Detailed Description

template<class T>
struct wz::baos::protocol::BaosResponse< T >

An actual BAOS response with payload of template parameter T.

Constructor & Destructor Documentation

◆ BaosResponse()

BaosResponse ( protocol::BaosResponseCode  code_,
T &&  items 
)
inline

Construct a new BaosResponse object.

Parameters
code_The BaosResponse code
itemsThe payload items

The documentation for this struct was generated from the following file: