STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
anonymous_namespace{main.cpp}::CoutToStderr Class Reference

Sends anything written to std::cout to stderr for as long as it is alive. More...

Public Member Functions

 CoutToStderr ()
 ~CoutToStderr ()

Private Attributes

std::streambuf * saved_

Detailed Description

Sends anything written to std::cout to stderr for as long as it is alive.

StateMachine logs its "Loaded 20 state(s)" banner on std::cout, which is fine in a service and ruinous here: stdout is this tool's machine-readable channel and the backend parses every line of it into the editor's gutter. Rather than change logging that other services rely on, the two calls that emit it are wrapped.

Definition at line 48 of file main.cpp.

Constructor & Destructor Documentation

◆ CoutToStderr()

anonymous_namespace{main.cpp}::CoutToStderr::CoutToStderr ( )
inline

Definition at line 50 of file main.cpp.

References saved_.

Referenced by main().

◆ ~CoutToStderr()

anonymous_namespace{main.cpp}::CoutToStderr::~CoutToStderr ( )
inline

Definition at line 52 of file main.cpp.

References saved_.

Member Data Documentation

◆ saved_

std::streambuf* anonymous_namespace{main.cpp}::CoutToStderr::saved_
private

Definition at line 57 of file main.cpp.

Referenced by CoutToStderr(), and ~CoutToStderr().


The documentation for this class was generated from the following file:
  • daq-server/diablo_server/tools/state_script_check/main.cpp