Web Analytics Made Easy - Statcounter
Skip to content

Class SBDAssistantAnswer#

ClassList > SBDAssistantAnswer

More...

  • #include <SBDAssistantAnswer.hpp>

Inherits the following classes: SBCReferenceTarget

Public Types#

Type Name
enum Status
The answer status.

Public Functions#

Type Name
SBDAssistantAnswer ()
Constructs an assistant answer.
SBDAssistantAnswer (const std::wstring & answer, Status status=Status::Success)
Constructs an assistant answer.
SB_DECLARE_DATA (SBDAssistantAnswer)
const std::wstring & getAnswer () const
Returns the answer.
const Status getStatus () const
Returns the status.
void setAnswer (const std::wstring & answer)
Sets the answer.
void setStatus (Status status)
Sets the status.
virtual ~SBDAssistantAnswer ()
Destructs the assistant answer.

Public Functions inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTarget ()
unsigned int getMemoryFootprint () const
void printReferencesToOwners () const
virtual ~SBCReferenceTarget ()

Protected Attributes inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTargetData * dataPointer

Protected Functions inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTarget (SBCReferenceTargetData * dataPointer)
void removeAllReferenceOwners ()

Detailed Description#

This class is the base class for assistant answers

Short name: SBAssistantAnswer

Public Types Documentation#

enum Status#

The answer status.

enum SBDAssistantAnswer::Status {
    Error = 0,
    Success = 1
};


Public Functions Documentation#

function SBDAssistantAnswer [1/2]#

Constructs an assistant answer.

SBDAssistantAnswer::SBDAssistantAnswer () 


function SBDAssistantAnswer [2/2]#

Constructs an assistant answer.

SBDAssistantAnswer::SBDAssistantAnswer (
    const std::wstring & answer,
    Status status=Status::Success
) 


function SB_DECLARE_DATA#

SBDAssistantAnswer::SB_DECLARE_DATA (
    SBDAssistantAnswer
) 

function getAnswer#

Returns the answer.

const std::wstring & SBDAssistantAnswer::getAnswer () const


function getStatus#

Returns the status.

const Status SBDAssistantAnswer::getStatus () const


function setAnswer#

Sets the answer.

void SBDAssistantAnswer::setAnswer (
    const std::wstring & answer
) 


function setStatus#

Sets the status.

void SBDAssistantAnswer::setStatus (
    Status status
) 


function ~SBDAssistantAnswer#

Destructs the assistant answer.

virtual SBDAssistantAnswer::~SBDAssistantAnswer ()