|
Gaudi Framework, version v22r0 |
| Home | Generated: 9 Feb 2011 |
Functions | |
| std::string | libNativeName (const std::string &libName) |
| static std::string | dsoName (const ROOT::Reflex::Member &) |
| static bool | inDso (const ROOT::Reflex::Member &mem, const std::string &dsoname) |
| static std::string DsoUtils::dsoName | ( | const ROOT::Reflex::Member & | ) | [static] |
Definition at line 79 of file DsoUtils.h.
| static bool DsoUtils::inDso | ( | const ROOT::Reflex::Member & | mem, | |
| const std::string & | dsoname | |||
| ) | [static] |
Definition at line 86 of file DsoUtils.h.
00088 { 00089 #ifdef _WIN32 00090 char sep = '\\'; 00091 #else 00092 char sep = '/'; 00093 #endif 00094 00095 std::string srcname = dsoName(mem); 00096 if (srcname.empty()) { 00097 // we do not know the name of the library, let's guess it's OK 00098 return true; 00099 } 00100 00101 std::string::size_type pos = dsoname.find_last_of(sep); 00102 std::string curname; 00103 if (std::string::npos == pos) { 00104 curname = dsoname; 00105 } else { 00106 curname = dsoname.substr(pos+1); 00107 } 00108 00109 return srcname == curname; 00110 }
| std::string DsoUtils::libNativeName | ( | const std::string & | libName | ) | [inline] |
Definition at line 21 of file DsoUtils.h.