1 #ifndef LOG_VIEWER_H_INCLUDED
2 #define LOG_VIEWER_H_INCLUDED
32 LogViewer(
const std::shared_ptr<SimShell::Ws::MergedPreferences>&) {}
34 template <
typename EventType>
35 void Update(
const EventType&);
38 template <
typename EventType>
39 inline void LogViewer::Update(
const EventType& e)
41 auto state = e.GetSource()->GetState();
42 std::cout <<
"=== [LOG] ===" << std::endl;
43 state.PrintToStream(std::cout);
44 std::cout << std::endl;
49 #endif // end-of-include-guard
Namespace for SimPT shell package.
Interface for MergedPreferences.
A viewer that logs sim events to console.