CMS 3D CMS Logo

Defines

/data/refman/pasoursint/CMSSW_6_1_1/src/Utilities/LStoreAdaptor/src/LStoreFile.cc File Reference

#include "Utilities/LStoreAdaptor/interface/LStoreFile.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <cassert>
#include <vector>
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <dlfcn.h>
#include <iostream>
#include <string.h>

Go to the source code of this file.

Defines

#define REDD_LOAD_SYMBOL(NAME, TYPE)

Define Documentation

#define REDD_LOAD_SYMBOL (   NAME,
  TYPE 
)
Value:
dlerror();\
    NAME = reinterpret_cast<TYPE>(reinterpret_cast<size_t>( \
                                dlsym(m_library_handle, #NAME))); \
        if ( (retval = dlerror()) ) {\
                throw cms::Exception("LStoreFile::loadLibrary()") <<\
                        "Failed to load dlsym LStore library: " << retval;\
        }\
        if ( NAME == NULL) {\
                throw cms::Exception("LStoreFile::loadLibrary()") <<\
                        "Got a null pointer back from dlsym()\n";\
        }

Definition at line 87 of file LStoreFile.cc.

Referenced by LStoreFile::loadLibrary().