CMS 3D CMS Logo

IgLibraryPreloader Class Reference

#include <Iguana/Framework/interface/IgLibraryPreloader.h>

List of all members.

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


Detailed Description

Definition at line 19 of file IgLibraryPreloader.h.


Constructor & Destructor Documentation

IgLibraryPreloader::IgLibraryPreloader ( const char *  app,
bool  verbose 
) [inline]

Definition at line 39 of file IgLibraryPreloader.h.

00040     : m_app (app),
00041       m_verbose (verbose),
00042       m_status (EXIT_SUCCESS)
00043 {}


Member Function Documentation

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 }

int IgLibraryPreloader::status ( void   )  const [inline]

Definition at line 62 of file IgLibraryPreloader.h.

References m_status.

Referenced by IgApplication::run().

00063 { return m_status; }


Member Data Documentation

const char* IgLibraryPreloader::m_app [private]

Definition at line 30 of file IgLibraryPreloader.h.

Referenced by operator()().

int IgLibraryPreloader::m_status [private]

Definition at line 32 of file IgLibraryPreloader.h.

Referenced by operator()(), and status().

bool IgLibraryPreloader::m_verbose [private]

Definition at line 31 of file IgLibraryPreloader.h.

Referenced by operator()().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:25:12 2009 for CMSSW by  doxygen 1.5.4