ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ZMQServer Class Reference

#include <geant4/tree/geant4-10.6-release/environments/zmq/zmq/G4ZMQServer.hh>

+ Inheritance diagram for G4ZMQServer:
+ Collaboration diagram for G4ZMQServer:

Public Member Functions

 G4ZMQServer ()
 
 ~G4ZMQServer ()
 
void SetEndpoint (const G4String &endpoint)
 
G4String GetEndpoint () const
 
void SetDebug (G4bool flag)
 
virtual G4UIsessionSessionStart ()
 
virtual void PauseSessionStart (const G4String &message)
 
virtual G4int ReceiveG4cout (const G4String &coutString)
 
virtual G4int ReceiveG4cerr (const G4String &cerrString)
 
- Public Member Functions inherited from G4VBasicShell
 G4VBasicShell ()
 
virtual ~G4VBasicShell ()
 
- Public Member Functions inherited from G4UIsession
 G4UIsession ()
 
 G4UIsession (G4int iBatch)
 
virtual ~G4UIsession ()
 
G4int GetLastReturnCode () const
 
- Public Member Functions inherited from G4coutDestination
 G4coutDestination ()=default
 
virtual ~G4coutDestination ()
 
void AddCoutTransformer (const Transformer &t)
 
void AddCoutTransformer (Transformer &&t)
 
void AddCerrTransformer (const Transformer &t)
 
void AddCerrTransformer (Transformer &&t)
 
virtual void ResetTransformers ()
 
G4int ReceiveG4cout_ (const G4String &msg)
 
G4int ReceiveG4cerr_ (const G4String &msg)
 

Private Member Functions

G4String GetCommand (const G4String &input)
 
virtual void ExecuteCommand (const G4String &command)
 
virtual G4bool GetHelpChoice (G4int &)
 
virtual void ExitHelp () const
 

Private Attributes

G4bool qdebug_
 
G4String endpoint_
 
G4UItcshshell_
 

Additional Inherited Members

- Public Types inherited from G4coutDestination
using Transformer = std::function< G4bool(G4String &)>
 
- Static Public Member Functions inherited from G4UIsession
static G4int InSession ()
 
- Protected Member Functions inherited from G4VBasicShell
G4String ModifyToFullPathCommand (const char *aCommandLine) const
 
G4String GetCurrentWorkingDirectory () const
 
G4bool ChangeDirectory (const char *newDir)
 
G4UIcommandTreeFindDirectory (const char *dirName) const
 
G4UIcommandFindCommand (const char *commandName) const
 
G4String Complete (const G4String &)
 
G4String FindMatchingPath (G4UIcommandTree *, const G4String &)
 
void ApplyShellCommand (const G4String &, G4bool &, G4bool &)
 
void ShowCurrent (const G4String &) const
 
void ChangeDirectoryCommand (const G4String &)
 
void ListDirectory (const G4String &) const
 
void TerminalHelp (const G4String &)
 
- Protected Attributes inherited from G4UIsession
G4int ifBatch
 
G4int lastRC
 
- Static Protected Attributes inherited from G4UIsession
static G4ICOMS_DLL G4int inSession = 0
 

Detailed Description

Definition at line 36 of file G4ZMQServer.hh.

View newest version in sPHENIX GitHub at line 36 of file G4ZMQServer.hh

Constructor & Destructor Documentation

G4ZMQServer::G4ZMQServer ( )

Definition at line 74 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 74 of file G4ZMQServer.cc

References BLUE, endpoint_, G4UImanager::GetUIpointer(), qdebug_, RED, and shell_.

+ Here is the call graph for this function:

G4ZMQServer::~G4ZMQServer ( )

Definition at line 89 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 89 of file G4ZMQServer.cc

References shell_.

Member Function Documentation

void G4ZMQServer::ExecuteCommand ( const G4String aCommand)
privatevirtual

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Reimplemented from G4VBasicShell.

Definition at line 263 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 263 of file G4ZMQServer.cc

References fAliasNotFound, fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, G4VBasicShell::FindCommand(), fParameterOutOfCandidates, fParameterOutOfRange, fParameterUnreadable, G4cerr, and G4endl.

Referenced by SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ZMQServer::ExitHelp ( ) const
privatevirtual

Implements G4VBasicShell.

Definition at line 311 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 311 of file G4ZMQServer.cc

G4String G4ZMQServer::GetCommand ( const G4String input)
private

Definition at line 203 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 203 of file G4ZMQServer.cc

References G4VBasicShell::ChangeDirectoryCommand(), test::cmdstr, G4cout, G4endl, G4VBasicShell::GetCurrentWorkingDirectory(), G4String::leading, G4VBasicShell::ListDirectory(), G4VBasicShell::ModifyToFullPathCommand(), G4String::remove(), shell_, G4VBasicShell::ShowCurrent(), G4String::strip(), and G4VBasicShell::TerminalHelp().

Referenced by SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4ZMQServer::GetEndpoint ( ) const
inline

Definition at line 71 of file G4ZMQServer.hh.

View newest version in sPHENIX GitHub at line 71 of file G4ZMQServer.hh

References endpoint_.

G4bool G4ZMQServer::GetHelpChoice ( G4int )
privatevirtual

Implements G4VBasicShell.

Definition at line 305 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 305 of file G4ZMQServer.cc

void G4ZMQServer::PauseSessionStart ( const G4String message)
virtual

Implements G4VBasicShell.

Definition at line 174 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 174 of file G4ZMQServer.cc

G4int G4ZMQServer::ReceiveG4cerr ( const G4String cerrString)
virtual

Reimplemented from G4UIsession.

Definition at line 191 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 191 of file G4ZMQServer.cc

References qdebug_.

G4int G4ZMQServer::ReceiveG4cout ( const G4String coutString)
virtual

Reimplemented from G4UIsession.

Definition at line 179 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 179 of file G4ZMQServer.cc

References qdebug_.

G4UIsession * G4ZMQServer::SessionStart ( )
virtual

Implements G4VBasicShell.

Definition at line 95 of file G4ZMQServer.cc.

View newest version in sPHENIX GitHub at line 95 of file G4ZMQServer.cc

References buffer, endpoint_, ExecuteCommand(), G4VBasicShell::FindDirectory(), G4cout, G4endl, GetCommand(), G4VBasicShell::GetCurrentWorkingDirectory(), message(), qdebug_, and g4zmq::socket.

+ Here is the call graph for this function:

void G4ZMQServer::SetDebug ( G4bool  flag)
inline

Definition at line 76 of file G4ZMQServer.hh.

View newest version in sPHENIX GitHub at line 76 of file G4ZMQServer.hh

References qdebug_.

void G4ZMQServer::SetEndpoint ( const G4String endpoint)
inline

Definition at line 66 of file G4ZMQServer.hh.

View newest version in sPHENIX GitHub at line 66 of file G4ZMQServer.hh

References endpoint_.

Member Data Documentation

G4String G4ZMQServer::endpoint_
private

Definition at line 54 of file G4ZMQServer.hh.

View newest version in sPHENIX GitHub at line 54 of file G4ZMQServer.hh

Referenced by G4ZMQServer(), GetEndpoint(), SessionStart(), and SetEndpoint().

G4bool G4ZMQServer::qdebug_
private

Definition at line 53 of file G4ZMQServer.hh.

View newest version in sPHENIX GitHub at line 53 of file G4ZMQServer.hh

Referenced by G4ZMQServer(), ReceiveG4cerr(), ReceiveG4cout(), SessionStart(), and SetDebug().

G4UItcsh* G4ZMQServer::shell_
private

Definition at line 55 of file G4ZMQServer.hh.

View newest version in sPHENIX GitHub at line 55 of file G4ZMQServer.hh

Referenced by G4ZMQServer(), GetCommand(), and ~G4ZMQServer().


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