ADTF
Loading...
Searching...
No Matches
adtf::system::testing::cTestLogger::tMessages Struct Reference

#include <test_logger.h>

Inherits std::vector< tMessage >.

Public Member Functions

tMessages Filter (uint8_t nLogLevel)
 
tMessages Filter (const std::string &strContent)
 
tMessages Filter (const std::regex &strPattern, bool bPartialMatch=true)
 
tMessages FilterSource (const std::string &strContent)
 
tMessages FilterSource (const std::regex &strPattern, bool bPartialMatch=true)
 
bool ContainsMessage (const std::string &strContent)
 
bool ContainsMessage (const std::regex &strPattern, bool bPartialMatch=true)
 
tMessage FindMessage (const std::string &strContent)
 
tMessage FindMessage (const std::regex &strPattern, bool bPartialMatch=true)
 

Detailed Description

Utility class that allows filtering of and searching for messages.

Member Function Documentation

◆ ContainsMessage() [1/2]

bool adtf::system::testing::lucky::cTestLogger::tMessages::ContainsMessage ( const std::regex & strPattern,
bool bPartialMatch = true )
Parameters
[in]strPatternThe pattern to match.
[in]bPartialMatchWhether or not match the whole string or only parts.
Returns
Whether there is a message that matches the given pattern or not.

◆ ContainsMessage() [2/2]

bool adtf::system::testing::lucky::cTestLogger::tMessages::ContainsMessage ( const std::string & strContent)
Parameters
[in]strContentThe string to look for.
Returns
Whether there is a message that contains the given string or not.

◆ Filter() [1/3]

tMessages adtf::system::testing::lucky::cTestLogger::tMessages::Filter ( const std::regex & strPattern,
bool bPartialMatch = true )
Parameters
[in]strPatternThe pattern to match.
[in]bPartialMatchWhether or not match the whole string or only parts.
Returns
All messages that match the pattern.

◆ Filter() [2/3]

tMessages adtf::system::testing::lucky::cTestLogger::tMessages::Filter ( const std::string & strContent)
Parameters
[in]strContentThe string to look for.
Returns
All messages that contain the given string.

◆ Filter() [3/3]

tMessages adtf::system::testing::lucky::cTestLogger::tMessages::Filter ( uint8_t nLogLevel)
Parameters
[in]nLogLevelThe log level to look for, see adtf::util::log::tLogLevel
Returns
All messages with the given log level.

◆ FilterSource() [1/2]

tMessages adtf::system::testing::lucky::cTestLogger::tMessages::FilterSource ( const std::regex & strPattern,
bool bPartialMatch = true )
Parameters
[in]strPatternThe pattern to match.
[in]bPartialMatchWhether or not match the whole string or only parts.
Returns
All messages of which the source matchs the pattern.

◆ FilterSource() [2/2]

tMessages adtf::system::testing::lucky::cTestLogger::tMessages::FilterSource ( const std::string & strContent)
Parameters
[in]strContentThe string to look for.
Returns
All messages of which the source contains the given string.

◆ FindMessage() [1/2]

tMessage adtf::system::testing::lucky::cTestLogger::tMessages::FindMessage ( const std::regex & strPattern,
bool bPartialMatch = true )

Find a message that matches the given pattern.

Parameters
[in]strPatternThe pattern to match.
[in]bPartialMatchWhether or not match the whole string or only parts.
Returns
The first message that matches.

◆ FindMessage() [2/2]

tMessage adtf::system::testing::lucky::cTestLogger::tMessages::FindMessage ( const std::string & strContent)

Find a message that contains the given string.

Parameters
[in]strContentThe string to look for.
Returns
The first message that contains the string.

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