TTerminalUserInterface class Reference

メインページ モジュール クラス階層 アルファベット順一覧 構成 ファイル一覧 構成メンバ ファイルメンバ 関連ページ

# クラス TTerminalUserInterface の解説

`#include <TTerminalUserInterface.hh>`

TTerminalUserInterfaceに対する継承グラフ

[凡例]
TTerminalUserInterfaceのコラボレーション図

[凡例]
すべてのメンバ一覧

## Public メソッド
| TTerminalUserInterface (const Tstring &prompt=Tprompt, const Tstring &history=Tproject+".last")
| ~TTerminalUserInterface ()
Tbool | AcceptCommand ()
const Tstring & | GetInputCommand ()
Tvoid | NotFoundCommand (const Tstring &commandname) const
Tint | GetCommandHistoryIndex () const
Tint | GetCursorPosition () const
const Tstring & | GetPrompt () const
const Tstring & | GetAcceptString () const
const Tstring & | GetStringBuffer () const
const Tstring & | GetCommandBuffer () const
Tvoid | SetCursorPosition (Tint position)
Tvoid | SetPrompt (const Tstring &prompt)
Tvoid | SetAcceptString (const Tstring &accept)
Tvoid | SetStringBuffer (const Tstring &buffer)
Tvoid | SetCommandBuffer (const Tstring &buffer)
Tvoid | SetCommandHistoryIndex (Tint index)
Tint | AddCommand (TCommand *command)
Tint | RemoveCommand (Tint index)
Tvoid | ClearCommands ()
TCommand * | FindCommand (const Tstring &fullname)
TCommand * | FindCommand (const Tstring &name, const Tstring &path)
TCommand * | GetCommand (Tint index)
TCommand * | GetCommand (const Tstring &fullname)
TCommand * | GetCommand (const Tstring &name, const Tstring &path)
Tvoid | ExecuteCommand (const Tstring &command, const TstringList &arguments)
Tvoid | ExecuteCommand (const Tstring &command)
Tint | GetCurrentWorkingDirectoryLevel () const
Tstring | ModifyPath (const Tstring &path) const
const TCommandTable & | GetCommandTable () const
TCommandTable & | GetCommandTable ()
const Tstring & | GetCurrentWorkingDirectory () const
Tstring & | GetCurrentWorkingDirectory ()
const TCommandHistory & | GetCommandHistory () const
TCommandHistory & | GetCommandHistory ()
Tofstream & | GetHistoryFileStream ()
Tvoid | SetCommandTable (const TCommandTable &table)
Tvoid | SetCurrentWorkingDirectory (const Tstring &directory)
Tvoid | SetCommandHistory (const TCommandHistory &history)
virtual Tvoid | ClearScreen () const
virtual Tint | GetNumberOfColumns () const
virtual Tint | GetNumberOfLines () const
## Protected メソッド
const Tstring & | readLine ()
Tvoid | initializeCommandLine ()
Tvoid | insertCharacter (Tchar cc)
Tvoid | backspaceCharacter ()
Tvoid | deleteCharacter ()
Tvoid | clearLine ()
Tvoid | clearScreen ()
Tvoid | clearAfterCursor ()
Tvoid | forwardCursor ()
Tvoid | backwardCursor ()
Tvoid | moveCursorTop ()
Tvoid | moveCursorEnd ()
Tvoid | nextCommand ()
Tvoid | previousCommand ()
Tvoid | completeCommand ()
Tvoid | complete ()
Tvoid | complete (const Tstring &input)
Tvoid | complete (const TstringList &inputs)
Tvoid | completeDirectory ()
Tvoid | completeDirectory (const Tstring &input)
Tvoid | cutCharacter ()
Tvoid | pasteCharacter ()
Tvoid | suspendTerminal () const
Tvoid | setTerminalInputMode ()
Tvoid | resetTerminal ()
Tbool | isCursorEnd () const
Tbool | isCursorTop () const
TstringList | divide (const Tstring &input) const
## Protected 変数
TCommandTable | theCommandTable
Tofstream | theHistoryFileStream
Tstring | theCurrentWorkingDirectory
TCommandHistory | theCommandHistory

## コンストラクタとデストラクタの解説

TTerminalUserInterface::TTerminalUserInterface | ( | const Tstring & | prompt = Tprompt,
|  | const Tstring & | history = Tproject+".last"
| ) |

TTerminalUserInterface::~TTerminalUserInterface | ( |  | ) |

## メソッドの解説

Tbool TTerminalUserInterface::AcceptCommand | ( |  | ) | `[virtual]`

| TUserInterfaceに実装されています.

Tint TUserInterface::AddCommand | ( | TCommand * | command | ) | `[inherited]`

Tvoid TTerminalUserInterface::backspaceCharacter | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::backwardCursor | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::clearAfterCursor | ( |  | ) | `[protected]`

Tvoid TUserInterface::ClearCommands | ( |  | ) | `[inherited]`

Tvoid TTerminalUserInterface::clearLine | ( |  | ) | `[protected]`

virtual Tvoid TUserInterface::ClearScreen | ( |  | ) | `[virtual, inherited]`

Tvoid TTerminalUserInterface::clearScreen | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::complete | ( | const TstringList & | inputs | ) | `[protected]`

Tvoid TTerminalUserInterface::complete | ( | const Tstring & | input | ) | `[protected]`

Tvoid TTerminalUserInterface::complete | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::completeCommand | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::completeDirectory | ( | const Tstring & | input | ) | `[protected]`

Tvoid TTerminalUserInterface::completeDirectory | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::cutCharacter | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::deleteCharacter | ( |  | ) | `[protected]`

TstringList TTerminalUserInterface::divide | ( | const Tstring & | input | ) | const`[protected]`

Tvoid TUserInterface::ExecuteCommand | ( | const Tstring & | command | ) | `[inherited]`

Tvoid TUserInterface::ExecuteCommand | ( | const Tstring & | command,
|  | const TstringList & | arguments
| ) | `[inherited]`

TCommand* TUserInterface::FindCommand | ( | const Tstring & | name,
|  | const Tstring & | path
| ) | `[inherited]`

TCommand* TUserInterface::FindCommand | ( | const Tstring & | fullname | ) | `[inherited]`

Tvoid TTerminalUserInterface::forwardCursor | ( |  | ) | `[protected]`

const Tstring & TTerminalUserInterface::GetAcceptString | ( |  | ) | `[inline]`

TCommand* TUserInterface::GetCommand | ( | const Tstring & | name,
|  | const Tstring & | path
| ) | `[inherited]`

TCommand* TUserInterface::GetCommand | ( | const Tstring & | fullname | ) | `[inherited]`

TCommand* TUserInterface::GetCommand | ( | Tint | index | ) | `[inherited]`

const Tstring & TTerminalUserInterface::GetCommandBuffer | ( |  | ) | `[inline]`

TCommandHistory & TUserInterface::GetCommandHistory | ( |  | ) | `[inline, inherited]`

const TCommandHistory & TUserInterface::GetCommandHistory | ( |  | ) | `[inline, inherited]`

Tint TTerminalUserInterface::GetCommandHistoryIndex | ( |  | ) | `[inline]`

TCommandTable & TUserInterface::GetCommandTable | ( |  | ) | `[inline, inherited]`

const TCommandTable & TUserInterface::GetCommandTable | ( |  | ) | `[inline, inherited]`

Tstring & TUserInterface::GetCurrentWorkingDirectory | ( |  | ) | `[inline, inherited]`

const Tstring & TUserInterface::GetCurrentWorkingDirectory | ( |  | ) | `[inline, inherited]`

Tint TUserInterface::GetCurrentWorkingDirectoryLevel | ( |  | ) | `[inherited]`

Tint TTerminalUserInterface::GetCursorPosition | ( |  | ) | `[inline]`

Tofstream & TUserInterface::GetHistoryFileStream | ( |  | ) | `[inline, inherited]`

const Tstring& TTerminalUserInterface::GetInputCommand | ( |  | ) | `[virtual]`

| TUserInterfaceに実装されています.

virtual Tint TUserInterface::GetNumberOfColumns | ( |  | ) | `[virtual, inherited]`

virtual Tint TUserInterface::GetNumberOfLines | ( |  | ) | `[virtual, inherited]`

const Tstring & TTerminalUserInterface::GetPrompt | ( |  | ) | `[inline]`

const Tstring & TTerminalUserInterface::GetStringBuffer | ( |  | ) | `[inline]`

Tvoid TTerminalUserInterface::initializeCommandLine | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::insertCharacter | ( | Tchar | cc | ) | `[protected]`

Tbool TTerminalUserInterface::isCursorEnd | ( |  | ) | `[inline, protected]`

Tbool TTerminalUserInterface::isCursorTop | ( |  | ) | `[inline, protected]`

Tstring TUserInterface::ModifyPath | ( | const Tstring & | path | ) | const`[inherited]`

Tvoid TTerminalUserInterface::moveCursorEnd | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::moveCursorTop | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::nextCommand | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::NotFoundCommand | ( | const Tstring & | commandname | ) | const`[virtual]`

| TUserInterfaceを再定義しています。

Tvoid TTerminalUserInterface::pasteCharacter | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::previousCommand | ( |  | ) | `[protected]`

const Tstring& TTerminalUserInterface::readLine | ( |  | ) | `[protected]`

Tint TUserInterface::RemoveCommand | ( | Tint | index | ) | `[inherited]`

Tvoid TTerminalUserInterface::resetTerminal | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::SetAcceptString | ( | const Tstring & | accept | ) | `[inline]`

Tvoid TTerminalUserInterface::SetCommandBuffer | ( | const Tstring & | buffer | ) | `[inline]`

Tvoid TUserInterface::SetCommandHistory | ( | const TCommandHistory & | history | ) | `[inline, inherited]`

Tvoid TTerminalUserInterface::SetCommandHistoryIndex | ( | Tint | index | ) | `[inline]`

Tvoid TUserInterface::SetCommandTable | ( | const TCommandTable & | table | ) | `[inline, inherited]`

Tvoid TUserInterface::SetCurrentWorkingDirectory | ( | const Tstring & | directory | ) | `[inherited]`

Tvoid TTerminalUserInterface::SetCursorPosition | ( | Tint | position | ) | `[inline]`

Tvoid TTerminalUserInterface::SetPrompt | ( | const Tstring & | prompt | ) | `[inline]`

Tvoid TTerminalUserInterface::SetStringBuffer | ( | const Tstring & | buffer | ) | `[inline]`

Tvoid TTerminalUserInterface::setTerminalInputMode | ( |  | ) | `[protected]`

Tvoid TTerminalUserInterface::suspendTerminal | ( |  | ) | `[protected]`

## 変数の解説

TCommandHistory TUserInterface::theCommandHistory`[protected, inherited]`

TCommandTable TUserInterface::theCommandTable`[protected, inherited]`

Tstring TUserInterface::theCurrentWorkingDirectory`[protected, inherited]`

Tofstream TUserInterface::theHistoryFileStream`[protected, inherited]`

このクラスの解説は次のファイルから生成されました:

- TTerminalUserInterface.hh