Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Safir::Application::Backdoor Class Referenceabstract

Interface for handling PI commands. More...

#include <Safir/Application/Backdoor.h>

Public Member Functions

virtual ~Backdoor ()
 Destructor. More...
 
virtual void HandleCommand (const std::vector< std::wstring > &cmdTokens)=0
 Called when a 'Program Info' command aimed for this handler is received. More...
 
virtual std::wstring GetHelpText ()=0
 Called when a 'help' command aimed for this handler is received. More...
 

Detailed Description

Interface for handling PI commands.

Provides the interface needed for classes that want to handle PI commands. The class must use a BackdoorKeeper class to set up the subscriptions, and pass "itself" to its Start-routine. After this the abstract methods in the class will be called when a PI command is received.

Constructor & Destructor Documentation

virtual Safir::Application::Backdoor::~Backdoor ( )
virtual

Destructor.

Member Function Documentation

virtual std::wstring Safir::Application::Backdoor::GetHelpText ( )
pure virtual

Called when a 'help' command aimed for this handler is received.

To be implemented by subclasses.

Returns
Help text, typically describing supported Program Info commands.
virtual void Safir::Application::Backdoor::HandleCommand ( const std::vector< std::wstring > &  cmdTokens)
pure virtual

Called when a 'Program Info' command aimed for this handler is received.

To be implemented by subclasses.

Parameters
cmdTokens[in] - Tokenized command string.