Struct InferenceEngine::DescriptionBuffer

struct DescriptionBuffer : public std::basic_streambuf<char, std::char_traits<char>>

A description buffer wrapping StatusCode and ResponseDesc.

Public Functions

inline DescriptionBuffer(StatusCode err, ResponseDesc *desc)

Creeates a description buffer with parameters.

Parameters
  • err[in] The error code

  • desc – The response desc to write an error message to

inline explicit DescriptionBuffer(StatusCode err)

Constructs with StatusCode.

Parameters

err[in] The StatusCode value

inline explicit DescriptionBuffer(ResponseDesc *desc)

Constructs with ResponseDesc.

Parameters

desc – The ResponseDesc pointer

inline DescriptionBuffer(char *pBuffer, size_t len)

Constructs with parameters.

Parameters
  • pBuffer – The buffer to wrtie to.

  • len[in] The length of pBuffer

inline DescriptionBuffer(StatusCode err, char *pBuffer, size_t len)

Constructs with parameters.

Parameters
  • err[in] The StatusCode value

  • pBuffer – The buffer to wrtie to.

  • len[in] The length of pBuffer

template<class T>
inline DescriptionBuffer &operator<<(const T &obj)

Writes to ResponseDesc stream.

Parameters

obj[in] The object to write to stream

Template Parameters

T – An object type

Returns

A reference to itself

inline operator StatusCode() const

Converts to StatusCode.

Returns

A StatusCode value