Geant4
10.02.p02
|
#include <G4UIcommandTree.hh>
Public Member Functions | |
G4UIcommandTree () | |
G4UIcommandTree (const char *thePathName) | |
~G4UIcommandTree () | |
G4int | operator== (const G4UIcommandTree &right) const |
G4int | operator!= (const G4UIcommandTree &right) const |
void | AddNewCommand (G4UIcommand *newCommand, G4bool workerThreadOnly=false) |
void | RemoveCommand (G4UIcommand *aCommand, G4bool workerThreadOnly=false) |
G4UIcommand * | FindPath (const char *commandPath) const |
G4UIcommandTree * | FindCommandTree (const char *commandPath) |
Try to match a command or a path with the one given. More... | |
G4String | CompleteCommandPath (const G4String &commandPath) |
void | List () const |
void | ListCurrent () const |
void | ListCurrentWithNum () const |
void | CreateHTML () |
const G4UIcommand * | GetGuidance () const |
const G4String | GetPathName () const |
G4int | GetTreeEntry () const |
G4int | GetCommandEntry () const |
G4UIcommandTree * | GetTree (G4int i) |
G4UIcommandTree * | GetTree (const char *comNameC) |
G4UIcommand * | GetCommand (G4int i) |
const G4String | GetTitle () const |
Private Member Functions | |
G4String | CreateFileName (const char *pName) |
G4String | ModStr (const char *strS) |
G4String | GetFirstMatchedString (const G4String &, const G4String &) const |
Private Attributes | |
std::vector< G4UIcommand * > | command |
std::vector< G4UIcommandTree * > | tree |
G4UIcommand * | guidance |
G4String | pathName |
G4bool | broadcastCommands |
Definition at line 44 of file G4UIcommandTree.hh.
G4UIcommandTree::G4UIcommandTree | ( | ) |
Definition at line 35 of file G4UIcommandTree.cc.
Referenced by AddNewCommand().
G4UIcommandTree::G4UIcommandTree | ( | const char * | thePathName | ) |
Definition at line 39 of file G4UIcommandTree.cc.
References pathName.
G4UIcommandTree::~G4UIcommandTree | ( | ) |
Definition at line 45 of file G4UIcommandTree.cc.
References tree.
void G4UIcommandTree::AddNewCommand | ( | G4UIcommand * | newCommand, |
G4bool | workerThreadOnly = false |
||
) |
Definition at line 63 of file G4UIcommandTree.cc.
References AddNewCommand(), G4String::append(), broadcastCommands, command, G4String::first(), G4UIcommandTree(), G4UIcommand::GetCommandPath(), GetPathName(), guidance, G4String::isNull(), pathName, G4String::remove(), G4UIcommand::SetToBeBroadcasted(), G4UIcommand::SetWorkerThreadOnly(), G4UIcommand::ToBeBroadcasted(), and tree.
Referenced by AddNewCommand(), G4UImanager::AddNewCommand(), and G4UImanager::AddWorkerCommand().
Definition at line 237 of file G4UIcommandTree.cc.
References FindCommandTree(), G4cout, G4endl, GetCommand(), GetCommandEntry(), GetFirstMatchedString(), GetPathName(), GetTree(), GetTreeEntry(), G4String::index(), G4String::last(), and G4String::remove().
|
private |
Definition at line 405 of file G4UIcommandTree.cc.
References G4String::index().
Referenced by CreateHTML().
void G4UIcommandTree::CreateHTML | ( | ) |
Definition at line 437 of file G4UIcommandTree.cc.
References command, CreateFileName(), G4endl, G4UIcommand::GetCommandName(), G4UIparameter::GetCurrentAsDefault(), G4UIparameter::GetDefaultValue(), G4UIcommand::GetGuidanceEntries(), G4UIcommand::GetGuidanceLine(), G4UIcommand::GetParameter(), G4UIparameter::GetParameterCandidates(), G4UIcommand::GetParameterEntries(), G4UIparameter::GetParameterName(), G4UIparameter::GetParameterRange(), G4UIparameter::GetParameterType(), GetPathName(), G4UIcommand::GetRange(), G4UIcommand::GetStateList(), G4StateManager::GetStateManager(), G4StateManager::GetStateString(), GetTitle(), guidance, G4UIparameter::IsOmittable(), ModStr(), pathName, and tree.
Referenced by G4UImanager::CreateHTML(), and export_G4UIcommandTree().
G4UIcommandTree * G4UIcommandTree::FindCommandTree | ( | const char * | commandPath | ) |
Try to match a command or a path with the one given.
: command or path to match
Definition at line 209 of file G4UIcommandTree.cc.
References G4String::append(), G4String::first(), GetPathName(), G4String::index(), pathName, G4String::remove(), and tree.
Referenced by CompleteCommandPath().
G4UIcommand * G4UIcommandTree::FindPath | ( | const char * | commandPath | ) | const |
Definition at line 171 of file G4UIcommandTree.cc.
References G4String::append(), command, G4String::first(), GetPathName(), G4String::index(), pathName, G4String::remove(), and tree.
Referenced by G4UImanager::ApplyCommand(), G4CascadeParamMessenger::CreateDirectory(), export_G4UIcommandTree(), G4VBasicShell::FindCommand(), G4UImanager::GetCurrentValues(), G4UIGAG::TerminalHelp(), G4VBasicShell::TerminalHelp(), and G4UIGainServer::TerminalHelp().
|
inline |
Definition at line 99 of file G4UIcommandTree.hh.
Referenced by G4UIGAG::CodeGenJavaParams(), G4UIGainServer::CodeGenJavaParams(), G4UIGAG::CodeGenJavaTree(), G4UIGainServer::CodeGenJavaTree(), G4UIGAG::CodeGenTclParams(), G4UIGAG::CodeGenTclTree(), CompleteCommandPath(), export_G4UIcommandTree(), G4UIGainServer::GetNewTreeStructure(), G4UIGAG::GetNewTreeStructure(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), G4UIGAG::SendDisableList(), G4UIGainServer::SendDisableList(), G4UIGAG::TerminalHelp(), G4VBasicShell::TerminalHelp(), and G4UIGainServer::TerminalHelp().
|
inline |
Definition at line 85 of file G4UIcommandTree.hh.
Referenced by G4UIGAG::CodeGenJavaParams(), G4UIGainServer::CodeGenJavaParams(), G4UIGAG::CodeGenJavaTree(), G4UIGainServer::CodeGenJavaTree(), G4UIGAG::CodeGenTclParams(), G4UIGAG::CodeGenTclTree(), CompleteCommandPath(), export_G4UIcommandTree(), G4UIGainServer::GetNewTreeStructure(), G4UIGAG::GetNewTreeStructure(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), G4UIGAG::SendDisableList(), and G4UIGainServer::SendDisableList().
|
private |
Definition at line 317 of file G4UIcommandTree.cc.
Referenced by CompleteCommandPath().
|
inline |
Definition at line 79 of file G4UIcommandTree.hh.
References guidance.
Referenced by export_G4UIcommandTree(), and ListCurrent().
|
inline |
Definition at line 81 of file G4UIcommandTree.hh.
References pathName.
Referenced by AddNewCommand(), G4UIGAG::CodeGenJavaParams(), G4UIGainServer::CodeGenJavaParams(), G4UIGAG::CodeGenTclTree(), CompleteCommandPath(), CreateHTML(), export_G4UIcommandTree(), FindCommandTree(), FindPath(), G4UIGainServer::GetNewTreeStructure(), G4UIGAG::GetNewTreeStructure(), GetTree(), operator!=(), operator==(), and RemoveCommand().
|
inline |
Definition at line 101 of file G4UIcommandTree.hh.
References G4UIcommand::GetTitle().
Referenced by G4UIGAG::CodeGenJavaParams(), G4UIGainServer::CodeGenJavaParams(), G4UIGAG::CodeGenTclTree(), CreateHTML(), export_G4UIcommandTree(), G4UIGainServer::GetNewTreeStructure(), and G4UIGAG::GetNewTreeStructure().
|
inline |
Definition at line 87 of file G4UIcommandTree.hh.
Referenced by G4UIGAG::CodeGenJavaParams(), G4UIGainServer::CodeGenJavaParams(), G4UIGAG::CodeGenJavaTree(), G4UIGainServer::CodeGenJavaTree(), G4UIGAG::CodeGenTclParams(), G4UIGAG::CodeGenTclTree(), CompleteCommandPath(), G4VBasicShell::FindDirectory(), G4UImanager::FindDirectory(), G4UIGAG::FindDirPath(), G4UIGainServer::FindDirPath(), G4UIGainServer::GetNewTreeStructure(), G4UIGAG::GetNewTreeStructure(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), G4UIGAG::SendDisableList(), G4UIGainServer::SendDisableList(), G4UIGAG::TerminalHelp(), G4VBasicShell::TerminalHelp(), and G4UIGainServer::TerminalHelp().
|
inline |
Definition at line 89 of file G4UIcommandTree.hh.
References GetPathName().
|
inline |
Definition at line 83 of file G4UIcommandTree.hh.
Referenced by G4UIGAG::CodeGenJavaParams(), G4UIGainServer::CodeGenJavaParams(), G4UIGAG::CodeGenJavaTree(), G4UIGainServer::CodeGenJavaTree(), G4UIGAG::CodeGenTclParams(), G4UIGAG::CodeGenTclTree(), CompleteCommandPath(), export_G4UIcommandTree(), G4UIGainServer::GetNewTreeStructure(), G4UIGAG::GetNewTreeStructure(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), RemoveCommand(), G4UIGAG::SendDisableList(), G4UIGainServer::SendDisableList(), G4UIGAG::TerminalHelp(), G4VBasicShell::TerminalHelp(), and G4UIGainServer::TerminalHelp().
void G4UIcommandTree::List | ( | ) | const |
Definition at line 390 of file G4UIcommandTree.cc.
References command, ListCurrent(), and tree.
Referenced by export_G4UIcommandTree(), and G4UImanager::ListCommands().
void G4UIcommandTree::ListCurrent | ( | ) | const |
Definition at line 338 of file G4UIcommandTree.cc.
References command, G4cout, G4endl, GetGuidance(), guidance, G4UIcommand::List(), pathName, and tree.
Referenced by export_G4UIcommandTree(), List(), G4UIGAG::ListDirectory(), G4VBasicShell::ListDirectory(), and G4UIGainServer::ListDirectory().
void G4UIcommandTree::ListCurrentWithNum | ( | ) | const |
Definition at line 367 of file G4UIcommandTree.cc.
References command, G4cout, G4endl, guidance, G4UIcommand::List(), pathName, and tree.
Referenced by export_G4UIcommandTree(), G4UIGAG::TerminalHelp(), G4VBasicShell::TerminalHelp(), and G4UIGainServer::TerminalHelp().
|
private |
Definition at line 415 of file G4UIcommandTree.cc.
Referenced by CreateHTML().
G4int G4UIcommandTree::operator!= | ( | const G4UIcommandTree & | right | ) | const |
Definition at line 58 of file G4UIcommandTree.cc.
References GetPathName(), and pathName.
G4int G4UIcommandTree::operator== | ( | const G4UIcommandTree & | right | ) | const |
Definition at line 53 of file G4UIcommandTree.cc.
References GetPathName(), and pathName.
void G4UIcommandTree::RemoveCommand | ( | G4UIcommand * | aCommand, |
G4bool | workerThreadOnly = false |
||
) |
Definition at line 116 of file G4UIcommandTree.cc.
References G4String::append(), command, G4String::first(), G4UIcommand::GetCommandPath(), GetPathName(), GetTreeEntry(), guidance, G4String::isNull(), G4UIcommand::IsWorkerThreadOnly(), pathName, G4String::remove(), and tree.
Referenced by G4UImanager::RemoveCommand(), and G4UImanager::RemoveWorkerCommand().
|
private |
Definition at line 76 of file G4UIcommandTree.hh.
Referenced by AddNewCommand().
|
private |
Definition at line 72 of file G4UIcommandTree.hh.
Referenced by AddNewCommand(), CreateHTML(), FindPath(), List(), ListCurrent(), ListCurrentWithNum(), and RemoveCommand().
|
private |
Definition at line 74 of file G4UIcommandTree.hh.
Referenced by AddNewCommand(), CreateHTML(), GetGuidance(), ListCurrent(), ListCurrentWithNum(), and RemoveCommand().
|
private |
Definition at line 75 of file G4UIcommandTree.hh.
Referenced by AddNewCommand(), CreateHTML(), FindCommandTree(), FindPath(), G4UIcommandTree(), GetPathName(), ListCurrent(), ListCurrentWithNum(), operator!=(), operator==(), and RemoveCommand().
|
private |
Definition at line 73 of file G4UIcommandTree.hh.
Referenced by AddNewCommand(), CreateHTML(), FindCommandTree(), FindPath(), List(), ListCurrent(), ListCurrentWithNum(), RemoveCommand(), and ~G4UIcommandTree().