Tsld029

    <Outline of the “g4cout”>
    The arrow '<--' denotes the direction of the stream flow. The “cout”ed
    strings are buffered in G4StrStreamBuf class, and the buffered data
    will be flushed to G4UIsession (i.e. to its concrete derivative
    classes like G4UIterminal) whenever the '<<endl' or '<<flush' is
    called for ‚f4cout’s.
    all the other classes
    G4UIsession SendG4cout(ss) G4StrStreamBuf thousands of
    (G4UIterminal) (derived from G4cout’s
    (G4UIxvt) strstreambuf )
    (G4UIwo)
    (G4UItcl,etc)
    The concrete classes like G4UIterminal handles the
    string and decides where to send it. For example,
    G4UIterminal sends the messages to the console
    terminal. And some GUI class may send the messages to
    another computer via sockets...

Previous slide Next slide Back to first slide View graphic version