13 std::transform(s.begin(), s.end(), s.begin(),
46 std::vector<std::string>::const_iterator itr;
85 if (
m_dat.size() > 0) {
110 if (
m_dict && lib.rfind(
"Dict.so") == (lib.length()-7) ) {
115 const string rlib = lib.substr(lib.rfind(
"/") + 1);
125 log <<
MSG::FATAL <<
"Unchecked StatusCode in " << fnc <<
" from lib "
130 string key = fnc + lib;
132 map<string,StatCodeDat>::iterator itr =
m_dat.find(key);
134 if (itr !=
m_dat.end()) {
135 itr->second.count += 1;
138 const string rlib = lib.substr(lib.rfind(
"/") + 1);
158 map<string,StatCodeDat>::const_iterator itr;
160 #if defined (__GNUC__) && ( __GNUC__ <= 2 )
163 std::ostringstream os;
166 os <<
"Num | Function | Source Library" << endl;
167 os <<
"----+--------------------------------+-------------------"
168 <<
"-----------------------" << endl;
171 for(itr =
m_dat.begin(); itr !=
m_dat.end(); ++itr ) {
175 os.setf(ios_base::right,ios_base::adjustfield);
180 os.setf(ios_base::left,ios_base::adjustfield);
184 os.setf(ios_base::left,ios_base::adjustfield);
192 log << os.str() <<
endmsg;
201 std::map<std::string, StatCodeDat>::iterator itr;
202 for (itr =
m_dat.begin(); itr !=
m_dat.end(); ++itr ) {
203 if (itr->second.fnc == str) {
216 std::map<std::string, StatCodeDat>::iterator itr;
217 for (itr =
m_dat.begin(); itr !=
m_dat.end(); ++itr ) {
218 if (itr->second.lib == str) {
233 string::size_type loc = str.find(
"=");
234 if (loc == std::string::npos) {
239 key = str.substr(0,loc);
240 val = str.substr(loc+1,str.length()-loc-1);
244 if (key ==
"FCN" || key ==
"FNC") {
247 }
else if (key ==
"LIB") {
255 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 &)
std
AIDA -> ROTO converter.
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 &)
std::set< std::string > m_filterlib