arcstk::v_1_0_0::DefaultContentHandler class final

Populates an existing ARResponse instance.

Create an ARResponse instance and use set_object() to inform the handler about that object. The handler instance will then populate this object with the parsed content.

DefaultContentHandler is movable but not copyable.

Base classes

class v_1_0_0::ContentHandler
Interface for ARStreamParser content handlers.

Constructors, destructors, conversion operators

DefaultContentHandler()
Constructor.
DefaultContentHandler(DefaultContentHandler&& rhs) noexcept
Move constructor.
~DefaultContentHandler() final noexcept
Default destructor.

Public functions

auto object() const -> const ARResponse&
Return the object to be populated with the parsed content.
void set_object(ARResponse& object)
Set the object to be populated with the parsed content.

Function documentation

arcstk::v_1_0_0::DefaultContentHandler::DefaultContentHandler(DefaultContentHandler&& rhs) noexcept

Move constructor.

Parameters
rhs in Instance to move

const ARResponse& arcstk::v_1_0_0::DefaultContentHandler::object() const

Return the object to be populated with the parsed content.

Returns Object to be populated with parsed content.

void arcstk::v_1_0_0::DefaultContentHandler::set_object(ARResponse& object)

Set the object to be populated with the parsed content.

Parameters
object in Object to populate with parsed content.