Geant4-11
Functions | Variables
anonymous_namespace{G4ZMQServer.cc} Namespace Reference

Functions

void GetCommandTree (G4UIcommandTree *ctree)
 
void ThrowException (const std::string &message)
 

Variables

std::string black_str = "\033[30m"
 
std::string command_list = ""
 
std::stringstream cout_stream
 
G4bool qexit = false
 
G4UImanagerui_manager = nullptr
 

Function Documentation

◆ GetCommandTree()

void anonymous_namespace{G4ZMQServer.cc}::GetCommandTree ( G4UIcommandTree ctree)

Definition at line 54 of file G4ZMQServer.cc.

55{
56 command_list += (ctree-> GetPathName() + " ");
57
58 auto n_cmd = ctree-> GetCommandEntry();
59 for ( auto icmd = 1; icmd <= n_cmd; icmd++ ) {
60 auto cmd_path = ctree-> GetCommand(icmd)-> GetCommandPath();
61 command_list += (cmd_path + " ");
62 }
63
64 auto n_tree = ctree-> GetTreeEntry();
65 for ( auto itr = 1; itr <= n_tree ; itr++ ) {
66 G4UIcommandTree* atree = ctree-> GetTree(itr);
67 ::GetCommandTree(atree);
68 }
69}
void GetCommandTree(G4UIcommandTree *ctree)
Definition: G4ZMQServer.cc:54

References command_list, and GetCommandTree().

Referenced by GetCommandTree(), G4VUIshell::ListCommand(), and G4ZMQServer::SessionStart().

◆ ThrowException()

void anonymous_namespace{G4ZMQServer.cc}::ThrowException ( const std::string &  message)

Definition at line 46 of file G4ZMQServer.cc.

47{
48 std::stringstream ss;
49 ss << "[ERROR] " << message << std::endl;
50 throw std::runtime_error(ss.str());
51}

Referenced by G4ZMQServer::SessionStart().

Variable Documentation

◆ black_str

std::string anonymous_namespace{G4ZMQServer.cc}::black_str = "\033[30m"

Definition at line 43 of file G4ZMQServer.cc.

Referenced by G4ZMQServer::SessionStart().

◆ command_list

std::string anonymous_namespace{G4ZMQServer.cc}::command_list = ""

Definition at line 44 of file G4ZMQServer.cc.

Referenced by GetCommandTree(), and G4ZMQServer::SessionStart().

◆ cout_stream

std::stringstream anonymous_namespace{G4ZMQServer.cc}::cout_stream

◆ qexit

G4bool anonymous_namespace{G4ZMQServer.cc}::qexit = false

◆ ui_manager

G4UImanager* anonymous_namespace{G4ZMQServer.cc}::ui_manager = nullptr