|
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/main/src/axom/lumberjack/TextEqualityCombiner.hpp>

Public Member Functions | |
| TextEqualityCombiner () | |
| const std::string | id () override |
| 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) override |
| Function used by Lumberjack to indicate whether two messages should be combined. More... | |
| void | combine (Message &combined, const Message &combinee, const int ranksLimit) override |
| Combines the combinee into the combined Message. More... | |
| virtual bool | isMessageCandidateForCombiner (const Message &) |
| Function used by Lumberjack to indicate whether a Message class should be considered for this combiner. Default is true in the base class. 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 |
|
inlineoverridevirtual |
Returns the unique string identifier for this combiner. Used by Lumberjack to differentiate between other combiners.
Implements axom::lumberjack::Combiner.
|
inlineoverridevirtual |
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().
|
inlineoverridevirtual |
Combines the combinee into the combined Message.
The only things truly combined in this Combiner are the ranks from combinee to combined and the creation time, since text is already equal. The creation time of the first message (lowest creation time) will be saved to the combined message.
| [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(), axom::lumberjack::Message::creationTime(), and axom::lumberjack::Message::ranks().
|
inlinevirtualinherited |
Function used by Lumberjack to indicate whether a Message class should be considered for this combiner. Default is true in the base class.
| [in] | The | Message to be considered. Unused in the base class but likely used in derived classes. |