MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / FindStyleForMessage

Method FindStyleForMessage

source/messhl.cpp:89–100  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

87}
88//---------------------------------------------------------------------------
89TMessStyle * TMessHighlightList::FindStyleForMessage(TSyslogMessage * p)
90{
91 TMessHighlight * mh;
92 for(int i=0; i<Count; i++)
93 {
94 mh = (TMessHighlight *)Items[i];
95 if( mh->bEnable )
96 if( mh->Match.Match(p) )
97 return &(mh->Style);
98 }
99 return NULL;
100}
101//---------------------------------------------------------------------------
102void TMessHighlightList::Save(XMLElementEx * p)
103{

Callers 1

LogSGDrawCellMethod · 0.80

Calls 1

MatchMethod · 0.80

Tested by

no test coverage detected