13 std::transform(s.begin(), s.end(), s.begin(),
46 std::vector<std::string>::const_iterator itr;
86 if (
m_dat.size() > 0) {
115 if (
m_dict && lib.rfind(
"Dict.so") == (lib.length()-7) ) {
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 map<string,StatCodeDat>::iterator 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);
163 map<string,StatCodeDat>::const_iterator itr;
165 #if defined (__GNUC__) && ( __GNUC__ <= 2 )
168 std::ostringstream os;
171 os <<
"Num | Function | Source Library" << endl;
172 os <<
"----+--------------------------------+-------------------"
173 <<
"-----------------------" << endl;
176 for(itr =
m_dat.begin(); itr !=
m_dat.end(); ++itr ) {
180 os.setf(ios_base::right,ios_base::adjustfield);
185 os.setf(ios_base::left,ios_base::adjustfield);
189 os.setf(ios_base::left,ios_base::adjustfield);
197 log << os.str() <<
endmsg;
206 std::map<std::string, StatCodeDat>::iterator itr;
207 for (itr =
m_dat.begin(); itr !=
m_dat.end(); ++itr ) {
208 if (itr->second.fnc == str) {
221 std::map<std::string, StatCodeDat>::iterator itr;
222 for (itr =
m_dat.begin(); itr !=
m_dat.end(); ++itr ) {
223 if (itr->second.lib == str) {
238 string::size_type loc = str.find(
"=");
239 if (loc == std::string::npos) {
244 key = str.substr(0,loc);
245 val = str.substr(loc+1,str.length()-loc-1);
249 if (key ==
"FCN" || key ==
"FNC") {
252 }
else if (key ==
"LIB") {
260 log <<
MSG::WARNING <<
"ignoring unknown token in Filter: " << str
Definition of the MsgStream class used to transmit messages.
virtual void regFnc(const std::string &func, const std::string &lib)
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Gaudi::StateMachine::State m_state
Service state.
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
bool isSuccess() const
Test for a status code of SUCCESS.
virtual void list() const
std::map< std::string, StatCodeDat > m_dat
BooleanProperty m_suppress
#define DECLARE_COMPONENT(type)
void parseFilter(const std::string &str, std::string &fnc, std::string &lib)
This class is used for returning status codes from appropriate routines.
virtual StatusCode finalize()
Finalize (from INITIALIZED to CONFIGURED).
std::set< std::string > m_filterfnc
const TYPE & value() const
explicit conversion
virtual const std::string & name() const
Retrieve name of the service.
StringArrayProperty m_pFilter
virtual StatusCode initialize()
Initialization (from CONFIGURED to INITIALIZED).
virtual StatusCode initialize()
Initialization (from CONFIGURED to INITIALIZED).
virtual StatusCode reinitialize()
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED).
StatusCodeSvc(const std::string &name, ISvcLocator *svc)
void filterLib(const std::string &)
Templated class to add the standard messaging functionalities.
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
void toupper(std::string &s)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
void filterFnc(const std::string &)
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
std::set< std::string > m_filterlib