#include <Iguana/Framework/interface/IgLibraryPreloader.h>
Public Member Functions | |
IgLibraryPreloader (const char *app, bool verbose) | |
void | operator() (const std::string &name) |
int | status (void) const |
Private Attributes | |
const char * | m_app |
int | m_status |
bool | m_verbose |
Definition at line 19 of file IgLibraryPreloader.h.
IgLibraryPreloader::IgLibraryPreloader | ( | const char * | app, | |
bool | verbose | |||
) | [inline] |
void IgLibraryPreloader::operator() | ( | const std::string & | name | ) | [inline] |
Definition at line 46 of file IgLibraryPreloader.h.
References TestMuL1L2Filter_cff::cerr, GenMuonPlsPt100GeV_cfg::cout, error, lat::Error::explain(), lat::SharedLibrary::load(), m_app, m_status, and m_verbose.
00047 { 00048 try 00049 { 00050 if (m_verbose) std::cout << "preloading `" << name << "'.\n"; 00051 lat::SharedLibrary::load (name); 00052 } 00053 catch (lat::Error &error) 00054 { 00055 std::cerr << m_app << ": cannot preload `" << name 00056 << "':\n " << error.explain () << "\n"; 00057 m_status = EXIT_FAILURE; 00058 } 00059 }
Definition at line 62 of file IgLibraryPreloader.h.
References m_status.
Referenced by IgApplication::run().
00063 { return m_status; }
const char* IgLibraryPreloader::m_app [private] |
int IgLibraryPreloader::m_status [private] |
bool IgLibraryPreloader::m_verbose [private] |