GlobalBpiLib  1.0
BasicInputHandler Class Reference

Basic input handler for protocol implementations. More...

#include <BasicInputHandler.h>

Collaboration diagram for BasicInputHandler:

Public Member Functions

void runLoop ()
 
void basicHandleCommand (char *cmdIn)
 
virtual void handleCommand (char *cmdIn)
 
virtual void handleCommandFI (char *cmdIn)
 

Public Attributes

BpiOutStream bpiout
 
BpiOutStream bpierr
 

Protected Member Functions

virtual void _CommandStatus (std::string input)
 
void _CommandExit ()
 

Protected Attributes

bool _run = true
 
ProtocolLogicprotocol = nullptr
 

Detailed Description

Basic input handler for protocol implementations.

Member Function Documentation

◆ _CommandExit()

void BasicInputHandler::_CommandExit ( )
protected

Implementation of the command COMMAND_EXIT.

◆ _CommandStatus()

void BasicInputHandler::_CommandStatus ( std::string  input)
protectedvirtual

Implementation of the command COMMAND_STATUS.

◆ basicHandleCommand()

void BasicInputHandler::basicHandleCommand ( char *  cmdIn)

Realizes basic command handling.

◆ handleCommand()

void BasicInputHandler::handleCommand ( char *  cmdIn)
virtual

Realizes extended command handling.

◆ handleCommandFI()

void BasicInputHandler::handleCommandFI ( char *  cmdIn)
virtual

Realizes FI command handling.

◆ runLoop()

void BasicInputHandler::runLoop ( )

Obtains and handles in an infinite loop incoming commands.

Reads Commands from STDIN and initiates a command handling.

Member Data Documentation

◆ _run

bool BasicInputHandler::_run = true
protected

Indicates whether the InputHandler is active or not.

◆ bpierr

BpiOutStream BasicInputHandler::bpierr

Error output printer.

◆ bpiout

BpiOutStream BasicInputHandler::bpiout

Standard output printer.

◆ protocol

ProtocolLogic* BasicInputHandler::protocol = nullptr
protected

Pointer to a ProtocolLogic.


The documentation for this class was generated from the following files: