SharedLibrary.cpp

Go to the documentation of this file.
00001 /*<!-------------------------------------------------------------------->
00002    @file   SharedLibrary.cpp
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @date   Summer 2008
00005    
00006    @brief
00007       Platform-independent utility wrapper around a dynamically loaded shared 
00008    library.
00009    <!-------------------------------------------------------------------->**/
00010 
00011 #include "SharedLibrary.h"
00012 #include "SharedLibraryPlatform.h"
00013 
00014 SharedLibrary::SharedLibrary(const std::string &name, 
00015                              SharedLibraryHandle *handle, 
00016                              SharedLibraryPlatform *platform)
00017    : m_name(name), m_handle(handle), m_platform(platform)
00018 {
00019    ASSERT(m_handle   != NULL);
00020    ASSERT(m_platform != NULL);
00021 }
00022 
00023 SharedLibrary::~SharedLibrary() 
00024 { }
00025 
00026 void *SharedLibrary::getSymbol(const std::string &symbol) {
00027    return m_platform->getSymbol(m_handle, symbol);
00028 }
00029 
00030 std::string SharedLibrary::getLastError() {
00031    return m_platform->getLastError();
00032 }
00033 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6