All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::common::Library::Impl Class Reference

Public Member Functions

void * getAddress (const std::string &symbol) const throw (te::common::Exception)
 
const std::string & getFileName () const throw ()
 
 Impl (const std::string &fileName, bool delayLoad) throw (te::common::Exception)
 
bool isLoaded () const throw ()
 
void load () throw (te::common::Exception)
 
void unload () throw (te::common::Exception)
 
 ~Impl ()
 

Private Attributes

std::string m_fileName
 The library file name with full path. More...
 
void * m_module
 The handle for DLLs, SO or a DyLib. More...
 

Detailed Description

Definition at line 50 of file Library.cpp.

Constructor & Destructor Documentation

te::common::Library::Impl::Impl ( const std::string &  fileName,
bool  delayLoad 
)
throw (te::common::Exception
)
inline

Definition at line 54 of file Library.cpp.

References load().

te::common::Library::Impl::~Impl ( )
inline

Definition at line 64 of file Library.cpp.

References unload().

Member Function Documentation

void* te::common::Library::Impl::getAddress ( const std::string &  symbol) const
throw (te::common::Exception
)
inline
const std::string& te::common::Library::Impl::getFileName ( ) const
throw (
)
inline

Definition at line 120 of file Library.cpp.

References m_fileName.

bool te::common::Library::Impl::isLoaded ( ) const
throw (
)
inline

Definition at line 115 of file Library.cpp.

References m_module.

void te::common::Library::Impl::load ( )
throw (te::common::Exception
)
inline

Definition at line 69 of file Library.cpp.

References te::common::lx::GetDlError(), te::common::win::GetLastError(), m_fileName, m_module, and TE_TR.

Referenced by Impl().

void te::common::Library::Impl::unload ( )
throw (te::common::Exception
)
inline

Definition at line 94 of file Library.cpp.

References te::common::lx::GetDlError(), te::common::win::GetLastError(), m_fileName, m_module, and TE_TR.

Referenced by ~Impl().

Member Data Documentation

std::string te::common::Library::Impl::m_fileName
private

The library file name with full path.

Definition at line 149 of file Library.cpp.

Referenced by getAddress(), getFileName(), load(), and unload().

void* te::common::Library::Impl::m_module
private

The handle for DLLs, SO or a DyLib.

Definition at line 150 of file Library.cpp.

Referenced by getAddress(), isLoaded(), load(), and unload().


The documentation for this class was generated from the following file: