/usr/include/ossim/plugin/ossimDynamicLibrary.h is in libossim-dev 1.8.16-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// LICENSE: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimDynamicLibrary.h 20694 2012-03-19 12:22:05Z dburken $
#ifndef ossimDynamicLibrary_HEADER
#define ossimDynamicLibrary_HEADER 1
#include <ossim/base/ossimString.h>
#include <ossim/base/ossimReferenced.h>
#include <ossim/ossimConfig.h>
#if defined(_WIN32) || defined(__WIN32__)
#include <windows.h>
#else
#include <dlfcn.h>
#endif
class ossimDynamicLibrary : public ossimReferenced
{
public:
ossimDynamicLibrary();
ossimDynamicLibrary(const ossimString& name);
virtual ~ossimDynamicLibrary();
// return TRUE if the library was loaded successfully
bool isLoaded() const { return theLibrary != 0; }
// load the library with the given name (full or not), return TRUE on
// success
bool load(const ossimString& name);
bool load();
// unload the library, also done automatically in dtor
void unload();
// load a symbol from the library, return NULL if an error occured or
// symbol wasn't found
void *getSymbol(const ossimString& name) const;
const ossimString& getName()const
{
return theLibraryName;
}
protected:
// the handle to DLL or NULL
#if defined(_WIN32)
HINSTANCE theLibrary;
#else
void* theLibrary;
#endif
ossimString theLibraryName;
};
#endif
|