ROSE 0.11.145.247
Public Types | Public Member Functions | Public Attributes | List of all members
Rose::BinaryAnalysis::VxworksTerminal::DataTransfer Class Referenceabstract

Description

Handle data transfers to/from the VxWorks terminal.

Definition at line 41 of file VxworksTerminal.h.

#include <Rose/BinaryAnalysis/VxworksTerminal.h>

Public Types

enum class  State {
  NORMAL ,
  DRAIN ,
  TERMINATE
}
 

Public Member Functions

virtual std::string handleInput (const std::string &line)=0
 Called for each line emitted by the VxWorks terminal.
 
virtual std::string handlePrompt (const std::string &prompt)=0
 Called each time a prompt is detected from the VxWorks terminal.
 

Public Attributes

State state = State::NORMAL
 Current state of operation.
 

Member Enumeration Documentation

◆ State

Enumerator
NORMAL 

Normal operational state transferring and handling data.

DRAIN 

Terminate transfer when output to server becomes empty.

TERMINATE 

Terminate transfer at next opportunity.

Definition at line 43 of file VxworksTerminal.h.

Member Function Documentation

◆ handleInput()

virtual std::string Rose::BinaryAnalysis::VxworksTerminal::DataTransfer::handleInput ( const std::string &  line)
pure virtual

Called for each line emitted by the VxWorks terminal.

Returns output that should be sent to the terminal.

◆ handlePrompt()

virtual std::string Rose::BinaryAnalysis::VxworksTerminal::DataTransfer::handlePrompt ( const std::string &  prompt)
pure virtual

Called each time a prompt is detected from the VxWorks terminal.

If the data transfer times out waiting for a prompt, then this function is called with an empty string.

Returns output that should be sent to the terminal.

Member Data Documentation

◆ state

State Rose::BinaryAnalysis::VxworksTerminal::DataTransfer::state = State::NORMAL

Current state of operation.

Definition at line 50 of file VxworksTerminal.h.


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