Functions | |
| std::string | trimToken (const std::string &token) |
| Trim leading and trailing ASCII whitespace from a token. | |
| double | timespecToDouble (const timespec &ts) |
| Convert a timespec to fractional seconds. | |
| double | elapsedSeconds (const timespec &start, const timespec &end) |
| Measure elapsed seconds between two timestamps. | |
| std::vector< std::string > | splitPipeDelimited (const std::string &line) |
| Split a pipe-delimited sensor line into trimmed fields. | |
| bool | isValidStatusField (const std::string &statusField) |
| Determine whether the IPMI sensor status token represents a valid flow reading. | |
| std::vector< std::string > | splitLogicalLines (const std::string &contents) |
| Split file contents into non-empty logical lines. | |
|
inline |
Measure elapsed seconds between two timestamps.
Definition at line 268 of file flowRPM.hpp.
References elapsedSeconds(), MagAOX::app::MagAOXApp< true >::log(), and timespecToDouble().
Referenced by elapsedSeconds(), MagAOX::app::flowRPM::parseFileContents(), MagAOX::app::flowRPM::reconcileResult(), and MagAOX::app::flowRPM::shouldLogError().
|
inline |
Determine whether the IPMI sensor status token represents a valid flow reading.
Definition at line 289 of file flowRPM.hpp.
References isValidStatusField(), and MagAOX::app::MagAOXApp< true >::log().
Referenced by isValidStatusField(), and MagAOX::app::flowRPM::parseRecordLine().
|
inline |
Split file contents into non-empty logical lines.
Definition at line 295 of file flowRPM.hpp.
References MagAOX::app::MagAOXApp< true >::log(), splitLogicalLines(), and trimToken().
Referenced by MagAOX::app::flowRPM::parseFileContents(), splitLogicalLines(), and libXWCTest::flowRPMTest::TEST_CASE().
|
inline |
Split a pipe-delimited sensor line into trimmed fields.
Definition at line 274 of file flowRPM.hpp.
References MagAOX::app::MagAOXApp< true >::log(), splitPipeDelimited(), and trimToken().
Referenced by MagAOX::app::flowRPM::parseRecordLine(), and splitPipeDelimited().
|
inline |
Convert a timespec to fractional seconds.
Definition at line 262 of file flowRPM.hpp.
References MagAOX::app::MagAOXApp< true >::log(), and timespecToDouble().
Referenced by elapsedSeconds(), and timespecToDouble().
|
inline |
Trim leading and trailing ASCII whitespace from a token.
Definition at line 248 of file flowRPM.hpp.
References MagAOX::app::MagAOXApp< true >::log(), and trimToken().
Referenced by splitLogicalLines(), splitPipeDelimited(), libXWCTest::flowRPMTest::TEST_CASE(), and trimToken().