#include <src/StatusCodeSvc.h>
|
| void | parseFilter (const std::string &str, std::string &fnc, std::string &lib) |
| |
| void | filterFnc (const std::string &) |
| |
| void | filterLib (const std::string &) |
| |
Definition at line 12 of file StatusCodeSvc.h.
| StatusCodeSvc::StatusCodeSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
Definition at line 17 of file StatusCodeSvc.cpp.
22 declareProperty(
"AbortOnError",
m_abort=
false);
23 declareProperty(
"SuppressCheck",
m_suppress=
false);
24 declareProperty(
"IgnoreDicts",
m_dict=
true);
BooleanProperty m_suppress
extends base_class
Typedef to this class.
StringArrayProperty m_pFilter
| StatusCodeSvc::~StatusCodeSvc |
( |
| ) |
|
|
overridedefault |
| void StatusCodeSvc::filterFnc |
( |
const std::string & |
str | ) |
|
|
private |
Definition at line 198 of file StatusCodeSvc.cpp.
200 auto itr = std::find_if(
m_dat.begin(),
m_dat.end(),
201 [&](
const std::pair<std::string,StatCodeDat>& d) {
202 return d.second.fnc == str;
std::map< std::string, StatCodeDat > m_dat
auto end(reverse_wrapper< T > &w)
| void StatusCodeSvc::filterLib |
( |
const std::string & |
str | ) |
|
|
private |
Definition at line 210 of file StatusCodeSvc.cpp.
212 auto itr = std::find_if(
m_dat.begin(),
m_dat.end(),
213 [&](
const std::pair<std::string,StatCodeDat>& d) {
214 return d.second.lib == str;
std::map< std::string, StatCodeDat > m_dat
auto end(reverse_wrapper< T > &w)
Definition at line 76 of file StatusCodeSvc.cpp.
Definition of the MsgStream class used to transmit messages.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
void list() const override
std::map< std::string, StatCodeDat > m_dat
Definition at line 32 of file StatusCodeSvc.cpp.
Definition of the MsgStream class used to transmit messages.
StatusCode initialize() override
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
bool isSuccess() const
Test for a status code of SUCCESS.
void parseFilter(const std::string &str, std::string &fnc, std::string &lib)
This class is used for returning status codes from appropriate routines.
std::set< std::string > m_filterfnc
const TYPE & value() const
explicit conversion
StringArrayProperty m_pFilter
void filterLib(const std::string &)
void filterFnc(const std::string &)
std::set< std::string > m_filterlib
| void StatusCodeSvc::list |
( |
| ) |
const |
|
override |
Definition at line 158 of file StatusCodeSvc.cpp.
164 std::ostringstream os;
165 os <<
"Num | Function | Source Library" << endl;
166 os <<
"----+--------------------------------+-------------------"
167 <<
"-----------------------" << endl;
170 for(
const auto& itr :
m_dat) {
171 const auto& dat = itr.second;
174 os.setf(ios_base::right,ios_base::adjustfield);
179 os.setf(ios_base::left,ios_base::adjustfield);
183 os.setf(ios_base::left,ios_base::adjustfield);
Definition of the MsgStream class used to transmit messages.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
std::map< std::string, StatCodeDat > m_dat
| void StatusCodeSvc::parseFilter |
( |
const std::string & |
str, |
|
|
std::string & |
fnc, |
|
|
std::string & |
lib |
|
) |
| |
|
private |
Definition at line 222 of file StatusCodeSvc.cpp.
225 auto loc = str.find(
"=");
226 if (loc == std::string::npos) {
230 string key = str.substr(0,loc);
231 string val = str.substr(loc+1);
235 if (key ==
"FCN" || key ==
"FNC") {
238 }
else if (key ==
"LIB") {
Definition of the MsgStream class used to transmit messages.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
void toupper(std::string &s)
| void StatusCodeSvc::regFnc |
( |
const std::string & |
func, |
|
|
const std::string & |
lib |
|
) |
| |
|
override |
Definition at line 101 of file StatusCodeSvc.cpp.
109 (lib.compare(lib.length()-7, 7,
"Dict.so") == 0 ||
110 lib.compare(lib.length()-8, 8,
"Cling.so") == 0)) {
114 if (fnc ==
"_PyObject_GC_Malloc")
return;
116 if (fnc ==
"PyThread_get_thread_ident")
return;
117 if (fnc ==
"local")
return;
120 const string rlib = lib.substr(lib.rfind(
"/") + 1);
130 log <<
MSG::FATAL <<
"Unchecked StatusCode in " << fnc <<
" from lib "
135 string key = fnc + lib;
137 auto itr =
m_dat.find(key);
139 if (itr !=
m_dat.end()) {
140 itr->second.count += 1;
143 const string rlib = lib.substr(lib.rfind(
"/") + 1);
Definition of the MsgStream class used to transmit messages.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
std::map< std::string, StatCodeDat > m_dat
std::set< std::string > m_filterfnc
std::set< std::string > m_filterlib
Definition at line 65 of file StatusCodeSvc.cpp.
Definition of the MsgStream class used to transmit messages.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
| bool StatusCodeSvc::suppressCheck |
( |
| ) |
const |
|
inlineoverride |
Definition at line 22 of file StatusCodeSvc.h.
BooleanProperty m_suppress
const TYPE & value() const
explicit conversion
| std::set<std::string> StatusCodeSvc::m_filterfnc |
|
private |
| std::set<std::string> StatusCodeSvc::m_filterlib |
|
private |
The documentation for this class was generated from the following files: