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

クラス TTerminalUserInterface の解説
[Interfaces Category]

This is the TTerminalUserInterface class. [詳細]

#include <TTerminalUserInterface.hh>

TTerminalUserInterfaceに対する継承グラフ

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

Public メソッド

 TTerminalUserInterface (const Tstring &prompt=Tprompt, const Tstring &history=Tproject+".last")
 ~TTerminalUserInterface ()
Tbool AcceptCommand ()
const TstringGetInputCommand ()
Tvoid NotFoundCommand (const Tstring &commandname) const
Tint GetCommandHistoryIndex () const
Tint GetCursorPosition () const
const TstringGetPrompt () const
const TstringGetAcceptString () const
const TstringGetStringBuffer () const
const TstringGetCommandBuffer () 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 TstringGetCurrentWorkingDirectory () const
TstringGetCurrentWorkingDirectory ()
const TCommandHistoryGetCommandHistory () const
TCommandHistoryGetCommandHistory ()
TofstreamGetHistoryFileStream ()
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 TstringreadLine ()
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

解説

This is the TTerminalUserInterface class.

作者:
Go IWAI <goiwai@users.sourceforge.jp>
The TTerminalUserInterface class detail description. Write it down ASAP!

TODO:
None?

バグ:
None?
例:

bt00.cc, rs00.cc, st00.cc, st01.cc, st02.cc, sw00.cc, と terminal.cc.

TTerminalUserInterface.hh55 行で定義されています。


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

TTerminalUserInterface::TTerminalUserInterface const Tstring prompt = Tprompt,
const Tstring history = Tproject+".last"
 

TTerminalUserInterface.cc41 行で定義されています。

TTerminalUserInterface::~TTerminalUserInterface  ) 
 

TTerminalUserInterface.cc50 行で定義されています。


メソッドの解説

Tbool TTerminalUserInterface::AcceptCommand  )  [virtual]
 

TUserInterfaceに実装されています.

TTerminalUserInterface.cc661 行で定義されています。

参照 Tbool, Tfalse, と Ttrue.

Tint TUserInterface::AddCommand TCommand *  command  )  [inherited]
 

TUserInterface.cc76 行で定義されています。

参照 TCommandTable::AddCommand(), TCommandTable::AlreadyExist(), TCommandTable::GetSize(), Tcerr, Tendl, TUserInterface::theCommandTable, と Tint.

Tvoid TTerminalUserInterface::backspaceCharacter  )  [protected]
 

TTerminalUserInterface.cc212 行で定義されています。

参照 isCursorEnd(), isCursorTop(), Tint, と Tvoid.

呼出 cutCharacter(), deleteCharacter(), と readLine().

Tvoid TTerminalUserInterface::backwardCursor  )  [protected]
 

TTerminalUserInterface.cc296 行で定義されています。

参照 isCursorTop(), と Tvoid.

呼出 clearScreen(), complete(), moveCursorTop(), と readLine().

Tvoid TTerminalUserInterface::clearAfterCursor  )  [protected]
 

TTerminalUserInterface.cc270 行で定義されています。

参照 isCursorEnd(), Tint, と Tvoid.

呼出 clearLine().

Tvoid TUserInterface::ClearCommands  )  [inherited]
 

TUserInterface.cc103 行で定義されています。

参照 TCommandTable::Clear(), TCommandTable::GetSize(), Tcout, Tendl, TUserInterface::theCommandTable, Tint, Tstring, と Tvoid.

呼出 TUserInterface::~TUserInterface().

Tvoid TTerminalUserInterface::clearLine  )  [protected]
 

TTerminalUserInterface.cc243 行で定義されています。

参照 clearAfterCursor(), moveCursorTop(), と Tvoid.

呼出 complete(), completeDirectory(), nextCommand(), と previousCommand().

Tvoid TUserInterface::ClearScreen  )  const [virtual, inherited]
 

TUserInterface.cc173 行で定義されています。

参照 Tvoid.

呼出 clearScreen(), と TUserInterface::TUserInterface().

Tvoid TTerminalUserInterface::clearScreen  )  [protected]
 

TTerminalUserInterface.cc250 行で定義されています。

参照 backwardCursor(), TUserInterface::ClearScreen(), Tint, と Tvoid.

呼出 readLine().

Tvoid TTerminalUserInterface::complete const TstringList inputs  )  [protected]
 

TTerminalUserInterface.cc512 行で定義されています。

参照 Tvoid.

Tvoid TTerminalUserInterface::complete const Tstring input  )  [protected]
 

TTerminalUserInterface.cc435 行で定義されています。

参照 clearLine(), TCommandTable::GetCommandSpecified(), TUserInterface::GetNumberOfColumns(), TCommandTable::GetSize(), TCommandSpecified::IsAliasedCommand(), TCommandTable::List(), TUserInterface::ModifyPath(), TCommandTable::Sort(), Tbool, TUserInterface::theCommandTable, Tint, Tsize_t, Tstring, TstringList, Ttrue, と Tvoid.

Tvoid TTerminalUserInterface::complete  )  [protected]
 

TTerminalUserInterface.cc411 行で定義されています。

参照 backwardCursor(), TUserInterface::ExecuteCommand(), Tint, と Tvoid.

呼出 completeCommand().

Tvoid TTerminalUserInterface::completeCommand  )  [protected]
 

TTerminalUserInterface.cc389 行で定義されています。

参照 complete(), completeDirectory(), divide(), Tstring, TstringList, と Tvoid.

呼出 readLine().

Tvoid TTerminalUserInterface::completeDirectory const Tstring input  )  [protected]
 

TTerminalUserInterface.cc535 行で定義されています。

参照 TCommandTable::AlreadyExistDirectory(), clearLine(), TCommandTable::GetDirectoryList(), TUserInterface::GetNumberOfColumns(), TCommandTable::List(), TUserInterface::ModifyPath(), TCommandTable::Sort(), Tbool, TUserInterface::theCommandTable, Tint, Tsize_t, Tstring, TstringList, Ttrue, と Tvoid.

Tvoid TTerminalUserInterface::completeDirectory  )  [protected]
 

TTerminalUserInterface.cc520 行で定義されています。

参照 TCommandTable::GetDirectoryList(), TUserInterface::GetNumberOfColumns(), TCommandTable::List(), TCommandTable::Sort(), TUserInterface::theCommandTable, TUserInterface::theCurrentWorkingDirectory, TstringList, と Tvoid.

呼出 completeCommand().

Tvoid TTerminalUserInterface::cutCharacter  )  [protected]
 

TTerminalUserInterface.cc322 行で定義されています。

参照 backspaceCharacter(), moveCursorEnd(), Tint, と Tvoid.

呼出 readLine().

Tvoid TTerminalUserInterface::deleteCharacter  )  [protected]
 

TTerminalUserInterface.cc236 行で定義されています。

参照 backspaceCharacter(), forwardCursor(), と Tvoid.

呼出 readLine().

TstringList TTerminalUserInterface::divide const Tstring input  )  const [protected]
 

TTerminalUserInterface.cc677 行で定義されています。

参照 Tsize_t, と TstringList.

呼出 completeCommand().

Tvoid TUserInterface::ExecuteCommand const Tstring command  )  [inherited]
 

TUserInterface.cc158 行で定義されています。

参照 TUserInterface::ExecuteCommand(), TstringList, と Tvoid.

Tvoid TUserInterface::ExecuteCommand const Tstring command,
const TstringList arguments
[inherited]
 

TUserInterface.cc148 行で定義されています。

参照 TUserInterface::FindCommand(), TUserInterface::ModifyPath(), Tstring, と Tvoid.

呼出 complete(), と TUserInterface::ExecuteCommand().

TCommand * TUserInterface::FindCommand const Tstring name,
const Tstring path
[inherited]
 

TUserInterface.cc124 行で定義されています。

参照 TCommandTable::FindCommand(), と TUserInterface::theCommandTable.

TCommand * TUserInterface::FindCommand const Tstring fullname  )  [inherited]
 

TUserInterface.cc119 行で定義されています。

参照 TCommandTable::FindCommand(), と TUserInterface::theCommandTable.

呼出 TUserInterface::ExecuteCommand(), と TUserInterface::GetCommand().

Tvoid TTerminalUserInterface::forwardCursor  )  [protected]
 

TTerminalUserInterface.cc286 行で定義されています。

参照 isCursorEnd(), Tsize_t, と Tvoid.

呼出 deleteCharacter(), moveCursorEnd(), と readLine().

const Tstring & TTerminalUserInterface::GetAcceptString  )  const [inline]
 

TTerminalUserInterface.hh149 行で定義されています。

参照 Tstring.

TCommand * TUserInterface::GetCommand const Tstring name,
const Tstring path
[inherited]
 

TUserInterface.cc143 行で定義されています。

参照 TUserInterface::FindCommand().

TCommand * TUserInterface::GetCommand const Tstring fullname  )  [inherited]
 

TUserInterface.cc138 行で定義されています。

参照 TUserInterface::FindCommand().

TCommand * TUserInterface::GetCommand Tint  index  )  [inherited]
 

TUserInterface.cc129 行で定義されています。

参照 TCommandTable::GetSize(), index(), Tcerr, Tendl, と TUserInterface::theCommandTable.

const Tstring & TTerminalUserInterface::GetCommandBuffer  )  const [inline]
 

TTerminalUserInterface.hh159 行で定義されています。

参照 Tstring.

TCommandHistory & TUserInterface::GetCommandHistory  )  [inline, inherited]
 

TUserInterface.hh138 行で定義されています。

参照 TCommandHistory, と TUserInterface::theCommandHistory.

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

TUserInterface.hh133 行で定義されています。

参照 TCommandHistory, と TUserInterface::theCommandHistory.

Tint TTerminalUserInterface::GetCommandHistoryIndex  )  const [inline]
 

TTerminalUserInterface.hh128 行で定義されています。

参照 Tint.

TCommandTable & TUserInterface::GetCommandTable  )  [inline, inherited]
 

TUserInterface.hh118 行で定義されています。

参照 TUserInterface::theCommandTable.

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

TUserInterface.hh113 行で定義されています。

参照 TUserInterface::theCommandTable.

Tstring & TUserInterface::GetCurrentWorkingDirectory  )  [inline, inherited]
 

TUserInterface.hh128 行で定義されています。

参照 TUserInterface::theCurrentWorkingDirectory, と Tstring.

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

TUserInterface.hh123 行で定義されています。

参照 TUserInterface::theCurrentWorkingDirectory, と Tstring.

Tint TUserInterface::GetCurrentWorkingDirectoryLevel  )  const [inherited]
 

TUserInterface.cc195 行で定義されています。

参照 Tcerr, Tendl, TUserInterface::theCurrentWorkingDirectory, Tint, と Tsize_t.

Tint TTerminalUserInterface::GetCursorPosition  )  const [inline]
 

TTerminalUserInterface.hh139 行で定義されています。

参照 Tint.

Tofstream & TUserInterface::GetHistoryFileStream  )  [inline, inherited]
 

TUserInterface.hh143 行で定義されています。

参照 TUserInterface::theHistoryFileStream, と Tofstream.

const Tstring & TTerminalUserInterface::GetInputCommand  )  [virtual]
 

TUserInterfaceに実装されています.

TTerminalUserInterface.cc666 行で定義されています。

参照 readLine(), と Tstring.

Tint TUserInterface::GetNumberOfColumns  )  const [virtual, inherited]
 

TUserInterface.cc181 行で定義されています。

参照 Tint.

呼出 complete(), と completeDirectory().

Tint TUserInterface::GetNumberOfLines  )  const [virtual, inherited]
 

TUserInterface.cc188 行で定義されています。

参照 Tint.

const Tstring & TTerminalUserInterface::GetPrompt  )  const [inline]
 

TTerminalUserInterface.hh144 行で定義されています。

参照 Tstring.

const Tstring & TTerminalUserInterface::GetStringBuffer  )  const [inline]
 

TTerminalUserInterface.hh154 行で定義されています。

参照 Tstring.

Tvoid TTerminalUserInterface::initializeCommandLine  )  [protected]
 

TTerminalUserInterface.cc53 行で定義されています。

参照 TUserInterface::theCommandHistory, Tint, と Tvoid.

呼出 readLine().

Tvoid TTerminalUserInterface::insertCharacter Tchar  cc  )  [protected]
 

TTerminalUserInterface.cc187 行で定義されています。

参照 isCursorEnd(), Tint, と Tvoid.

呼出 nextCommand(), pasteCharacter(), previousCommand(), と readLine().

Tbool TTerminalUserInterface::isCursorEnd  )  const [inline, protected]
 

TTerminalUserInterface.hh194 行で定義されています。

参照 Tbool, Tfalse, Tint, と Ttrue.

呼出 backspaceCharacter(), clearAfterCursor(), forwardCursor(), insertCharacter(), と moveCursorEnd().

Tbool TTerminalUserInterface::isCursorTop  )  const [inline, protected]
 

TTerminalUserInterface.hh199 行で定義されています。

参照 Tbool, Tfalse, と Ttrue.

呼出 backspaceCharacter(), backwardCursor(), と moveCursorTop().

Tstring TUserInterface::ModifyPath const Tstring path  )  const [inherited]
 

TUserInterface.cc222 行で定義されています。

参照 TCommandTable::GetSize(), TUserInterface::theCommandTable, TUserInterface::theCurrentWorkingDirectory, Tint, Tsize_t, と Tstring.

呼出 complete(), completeDirectory(), TUserInterface::ExecuteCommand(), と TUserInterface::SetCurrentWorkingDirectory().

Tvoid TTerminalUserInterface::moveCursorEnd  )  [protected]
 

TTerminalUserInterface.cc314 行で定義されています。

参照 forwardCursor(), isCursorEnd(), Tfalse, と Tvoid.

呼出 cutCharacter(), と readLine().

Tvoid TTerminalUserInterface::moveCursorTop  )  [protected]
 

TTerminalUserInterface.cc306 行で定義されています。

参照 backwardCursor(), isCursorTop(), Tfalse, と Tvoid.

呼出 clearLine(), と readLine().

Tvoid TTerminalUserInterface::nextCommand  )  [protected]
 

TTerminalUserInterface.cc349 行で定義されています。

参照 clearLine(), insertCharacter(), TUserInterface::theCommandHistory, Tint, Tstring, と Tvoid.

呼出 readLine().

Tvoid TTerminalUserInterface::NotFoundCommand const Tstring commandname  )  const [virtual]
 

TUserInterfaceを再定義しています。

TTerminalUserInterface.cc671 行で定義されています。

参照 Tvoid.

Tvoid TTerminalUserInterface::pasteCharacter  )  [protected]
 

TTerminalUserInterface.cc338 行で定義されています。

参照 insertCharacter(), Tint, と Tvoid.

呼出 readLine().

Tvoid TTerminalUserInterface::previousCommand  )  [protected]
 

TTerminalUserInterface.cc369 行で定義されています。

参照 clearLine(), insertCharacter(), TUserInterface::theCommandHistory, Tint, Tstring, と Tvoid.

呼出 readLine().

const Tstring & TTerminalUserInterface::readLine  )  [protected]
 

TTerminalUserInterface.cc63 行で定義されています。

参照 backspaceCharacter(), backwardCursor(), clearScreen(), completeCommand(), cutCharacter(), deleteCharacter(), forwardCursor(), initializeCommandLine(), insertCharacter(), moveCursorEnd(), moveCursorTop(), nextCommand(), pasteCharacter(), previousCommand(), resetTerminal(), setTerminalInputMode(), suspendTerminal(), Tchar, Tcin, と Tstring.

呼出 GetInputCommand().

Tint TUserInterface::RemoveCommand Tint  index  )  [inherited]
 

TUserInterface.cc86 行で定義されています。

参照 TCommandTable::GetSize(), index(), Tcerr, Tcout, Tendl, TUserInterface::theCommandTable, Tint, と Tstring.

Tvoid TTerminalUserInterface::resetTerminal  )  [protected]
 

TTerminalUserInterface.cc655 行で定義されています。

参照 Tvoid.

呼出 readLine().

Tvoid TTerminalUserInterface::SetAcceptString const Tstring accept  )  [inline]
 

TTerminalUserInterface.hh176 行で定義されています。

参照 Tvoid.

Tvoid TTerminalUserInterface::SetCommandBuffer const Tstring buffer  )  [inline]
 

TTerminalUserInterface.hh188 行で定義されています。

参照 Tvoid.

Tvoid TUserInterface::SetCommandHistory const TCommandHistory history  )  [inline, inherited]
 

TUserInterface.hh154 行で定義されています。

参照 TUserInterface::theCommandHistory, と Tvoid.

Tvoid TTerminalUserInterface::SetCommandHistoryIndex Tint  index  )  [inline]
 

TTerminalUserInterface.hh133 行で定義されています。

参照 index(), と Tvoid.

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

TUserInterface.hh148 行で定義されています。

参照 TUserInterface::theCommandTable, と Tvoid.

Tvoid TUserInterface::SetCurrentWorkingDirectory const Tstring directory  )  [inherited]
 

TUserInterface.cc210 行で定義されています。

参照 TCommandTable::AlreadyExistDirectory(), TUserInterface::ModifyPath(), Tcerr, Tendl, TUserInterface::theCommandTable, TUserInterface::theCurrentWorkingDirectory, Tstring, と Tvoid.

Tvoid TTerminalUserInterface::SetCursorPosition Tint  position  )  [inline]
 

TTerminalUserInterface.hh164 行で定義されています。

参照 Tvoid.

Tvoid TTerminalUserInterface::SetPrompt const Tstring prompt  )  [inline]
 

TTerminalUserInterface.hh170 行で定義されています。

参照 Tvoid.

Tvoid TTerminalUserInterface::SetStringBuffer const Tstring buffer  )  [inline]
 

TTerminalUserInterface.hh182 行で定義されています。

参照 Tvoid.

Tvoid TTerminalUserInterface::setTerminalInputMode  )  [protected]
 

TTerminalUserInterface.cc640 行で定義されています。

参照 Tvoid.

呼出 readLine().

Tvoid TTerminalUserInterface::suspendTerminal  )  const [protected]
 

TTerminalUserInterface.cc629 行で定義されています。

参照 Tvoid.

呼出 readLine().


変数の解説

TCommandHistory TUserInterface::theCommandHistory [protected, inherited]
 

TUserInterface.hh65 行で定義されています。

呼出 TUserInterface::GetCommandHistory(), initializeCommandLine(), nextCommand(), previousCommand(), TUserInterface::SetCommandHistory(), と TUserInterface::TUserInterface().

TCommandTable TUserInterface::theCommandTable [protected, inherited]
 

TUserInterface.hh62 行で定義されています。

呼出 TUserInterface::AddCommand(), TUserInterface::ClearCommands(), complete(), completeDirectory(), TUserInterface::FindCommand(), TUserInterface::GetCommand(), TUserInterface::GetCommandTable(), TUserInterface::ModifyPath(), TUserInterface::RemoveCommand(), TUserInterface::SetCommandTable(), TUserInterface::SetCurrentWorkingDirectory(), と TUserInterface::TUserInterface().

Tstring TUserInterface::theCurrentWorkingDirectory [protected, inherited]
 

TUserInterface.hh64 行で定義されています。

呼出 completeDirectory(), TUserInterface::GetCurrentWorkingDirectory(), TUserInterface::GetCurrentWorkingDirectoryLevel(), TUserInterface::ModifyPath(), と TUserInterface::SetCurrentWorkingDirectory().

Tofstream TUserInterface::theHistoryFileStream [protected, inherited]
 

TUserInterface.hh63 行で定義されています。

呼出 TUserInterface::GetHistoryFileStream(), TUserInterface::TUserInterface(), と TUserInterface::~TUserInterface().


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

CLDAQ - a Class Library for DataAcQuisition (Version 1.14.3)
Go IWAI -- goiwai at users.sourceforge.jp