Web Analytics Made Easy - Statcounter
Skip to content

Class SBDAssistant#

ClassList > SBDAssistant

This class is the base class for assistants. More...

  • #include "SBDAssistant.hpp"

Inherits the following classes: SBCReferenceTarget

Public Functions#

Type Name
SBDAssistant ()
Constructs an assistant.
SB_DECLARE_DATA (SBDAssistant)
virtual SBDAssistantAnswer * act (const std::wstring & question, const std::wstring & translation)
Executes an action.
virtual SBDAssistantAnswer * getAnswer (const std::wstring & question, const std::wstring & translation)
Returns an answer to a question.
virtual SBDAssistantAnswer * getCompletion (const std::wstring & question, const std::wstring & translation, const std::wstring & system, const std::wstring & queryType)
Returns a completion to a single question.
const SBUUID & getConversationUUID () const
Returns the conversation UUID.
SBGAssistant * getGUI () const
Returns a pointer to the GUI of the assistant.
virtual SBDAssistantAnswer * getNSLExpression (const std::wstring & question, const std::wstring & translation)
Returns an NSL expression.
virtual std::wstring getTranscription (const std::wstring & fileName, std::wstring & language)
Returns a transcription for an audio file with file name fileName and the detectedlanguage .
virtual std::wstring getTranslation (const std::wstring & text, const std::wstring & language)
Returns the translation of text inlanguage into English.
const SBUUID & getUserUUID () const
Returns the user UUID.
virtual SBDAssistantAnswer * memorize (const std::wstring & fileName)
Memorizes a document.
virtual SBDAssistantAnswer * memorize (const std::wstring & url, const std::wstring & include=L"", const std::wstring & exclude=L"")
Memorizes a webpage.
virtual SBDAssistantAnswer * search (const std::wstring & question, const std::wstring & translation)
Performs a search.
virtual SBDAssistantAnswer * select (const std::wstring & question, const std::wstring & translation)
Selects nodes in the document.
void setConversationUUID (const SBUUID & conversationUUID)
Sets the conversation UUID.
void setGUI (SBGAssistant * gui)
Sets the pointer to the GUI of the assistant.
void setUserUUID (const SBUUID & userUUID)
Sets the user UUID.
virtual ~SBDAssistant ()
Destructs the assistant.

Public Functions inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTarget ()
Builds the reference target.
unsigned int getMemoryFootprint () const
Returns the memory footprint.
void printReferencesToOwners () const
Prints the references to the owners of this reference target.
virtual ~SBCReferenceTarget ()
Destructor.

Protected Attributes inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTargetData * dataPointer
A pointer to the private data.

Protected Functions inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTarget (SBCReferenceTargetData * dataPointer)
Protected constructor.
void removeAllReferenceOwners ()
Stops all the reference owners from referencing this reference target.

Detailed Description#

Short name: SBAssistant

Public Functions Documentation#

function SBDAssistant#

Constructs an assistant.

SBDAssistant::SBDAssistant () 


function SB_DECLARE_DATA#

SBDAssistant::SB_DECLARE_DATA (
    SBDAssistant
) 

function act#

Executes an action.

virtual SBDAssistantAnswer * SBDAssistant::act (
    const std::wstring & question,
    const std::wstring & translation
) 


function getAnswer#

Returns an answer to a question.

virtual SBDAssistantAnswer * SBDAssistant::getAnswer (
    const std::wstring & question,
    const std::wstring & translation
) 


function getCompletion#

Returns a completion to a single question.

virtual SBDAssistantAnswer * SBDAssistant::getCompletion (
    const std::wstring & question,
    const std::wstring & translation,
    const std::wstring & system,
    const std::wstring & queryType
) 


function getConversationUUID#

Returns the conversation UUID.

const SBUUID & SBDAssistant::getConversationUUID () const


function getGUI#

Returns a pointer to the GUI of the assistant.

SBGAssistant * SBDAssistant::getGUI () const


function getNSLExpression#

Returns an NSL expression.

virtual SBDAssistantAnswer * SBDAssistant::getNSLExpression (
    const std::wstring & question,
    const std::wstring & translation
) 


function getTranscription#

Returns a transcription for an audio file with file name fileName and the detectedlanguage .

virtual std::wstring SBDAssistant::getTranscription (
    const std::wstring & fileName,
    std::wstring & language
) 


function getTranslation#

Returns the translation of text inlanguage into English.

virtual std::wstring SBDAssistant::getTranslation (
    const std::wstring & text,
    const std::wstring & language
) 


function getUserUUID#

Returns the user UUID.

const SBUUID & SBDAssistant::getUserUUID () const


function memorize [1/2]#

Memorizes a document.

virtual SBDAssistantAnswer * SBDAssistant::memorize (
    const std::wstring & fileName
) 


function memorize [2/2]#

Memorizes a webpage.

virtual SBDAssistantAnswer * SBDAssistant::memorize (
    const std::wstring & url,
    const std::wstring & include=L"",
    const std::wstring & exclude=L""
) 


Performs a search.

virtual SBDAssistantAnswer * SBDAssistant::search (
    const std::wstring & question,
    const std::wstring & translation
) 


function select#

Selects nodes in the document.

virtual SBDAssistantAnswer * SBDAssistant::select (
    const std::wstring & question,
    const std::wstring & translation
) 


function setConversationUUID#

Sets the conversation UUID.

void SBDAssistant::setConversationUUID (
    const SBUUID & conversationUUID
) 


function setGUI#

Sets the pointer to the GUI of the assistant.

void SBDAssistant::setGUI (
    SBGAssistant * gui
) 


function setUserUUID#

Sets the user UUID.

void SBDAssistant::setUserUUID (
    const SBUUID & userUUID
) 


function ~SBDAssistant#

Destructs the assistant.

virtual SBDAssistant::~SBDAssistant ()