AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Combines Message classes if their Message::text are equal. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/lumberjack/TextEqualityCombiner.hpp>
Public Member Functions | |
TextEqualityCombiner () | |
const std::string | id () |
Returns the unique string identifier for this combiner. Used by Lumberjack to differentiate between other combiners. More... | |
bool | shouldMessagesBeCombined (const Message &leftMessage, const Message &rightMessage) |
Function used by Lumberjack to indicate whether two messages should be combined. More... | |
void | combine (Message &combined, const Message &combinee, const int ranksLimit) |
Combines the combinee into the combined Message. More... | |
Combines Message classes if their Message::text are equal.
This class instance is automatically added to Lumberjack's Lumberjack for you. If you want it removed call Lumberjack::removeCombiner with the string "TextEqualityCombiner" as it's parameter.
|
inline |
|
inlinevirtual |
Returns the unique string identifier for this combiner. Used by Lumberjack to differentiate between other combiners.
Implements axom::lumberjack::Combiner.
|
inlinevirtual |
Function used by Lumberjack to indicate whether two messages should be combined.
They are not actually combined by this function. Message classes are triggered for combination if both Message::text are equal.
[in] | leftMessage | One of the Messages to be compared. |
[in] | rightMessage | One of the Messages to be compared. |
Implements axom::lumberjack::Combiner.
References axom::lumberjack::Message::text().
|
inlinevirtual |
Combines the combinee into the combined Message.
The only thing truly combined in this Combiner is the ranks from combinee to combined, since text is already equal.
[in,out] | combined | the Message that will be modified. |
[in] | combinee | the Message that is combined into the other. |
[in] | ranksLimit | The limit on how many individual ranks are tracked in the combined Message. Message::rankCount is always incremented. |
Implements axom::lumberjack::Combiner.
References axom::lumberjack::Message::addRanks(), axom::lumberjack::Message::count(), and axom::lumberjack::Message::ranks().