OpenStructure
Public Member Functions | Protected Attributes
ShellHistory Class Reference

#include <shell_history.hh>

Public Member Functions

 ShellHistory ()
 
void SetCurrentCommand (const QString &command, BlockEditMode block_edit_mode)
 
void AppendCommand (const QString &command, BlockEditMode block_edit_mode)
 
QString GetCommand ()
 
BlockEditMode GetCommandMode ()
 
bool AtEnd ()
 
void MoveToPreviousMatch ()
 
void MoveToNextMatch ()
 

Protected Attributes

std::vector< std::pair< QString, BlockEditMode > > history_list_
 
QString current_
 
BlockEditMode current_mode_
 
unsigned int index_
 

Detailed Description

Definition at line 32 of file shell_history.hh.

Constructor & Destructor Documentation

◆ ShellHistory()

Member Function Documentation

◆ AppendCommand()

void AppendCommand ( const QString &  command,
BlockEditMode  block_edit_mode 
)

◆ AtEnd()

bool AtEnd ( )

◆ GetCommand()

QString GetCommand ( )

◆ GetCommandMode()

BlockEditMode GetCommandMode ( )

◆ MoveToNextMatch()

void MoveToNextMatch ( )

◆ MoveToPreviousMatch()

void MoveToPreviousMatch ( )

◆ SetCurrentCommand()

void SetCurrentCommand ( const QString &  command,
BlockEditMode  block_edit_mode 
)

Field Documentation

◆ current_

QString current_
protected

Definition at line 45 of file shell_history.hh.

◆ current_mode_

BlockEditMode current_mode_
protected

Definition at line 46 of file shell_history.hh.

◆ history_list_

std::vector<std::pair<QString,BlockEditMode> > history_list_
protected

Definition at line 44 of file shell_history.hh.

◆ index_

unsigned int index_
protected

Definition at line 47 of file shell_history.hh.


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