FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Ship::WarnOnce Class Reference

#include <TableLookup.h>

Public Types

using Sink = std::function< void(const std::string &)>
 

Public Member Functions

void SetSink (Sink sink)
 
void Warn (const std::string &message)
 Passes message to the sink the first time only.
 
int Count () const
 How many times Warn was called.
 

Detailed Description

Reports a condition once per object and run (owner ruling D39: a table lookup outside its range holds the edge value and logs once). The sink is set when the logger is known (FinalSetup); without a sink the call only counts.


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