SOUND4 x1.CLOUD Library [1.5.6]
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
sound4::helper::CDynLoader Class Reference

Helper to load dynamic library. More...

#include <sound4cl.hpp>

Public Member Functions

 CDynLoader ()=default
 
 CDynLoader (CDynLoader &&)=default
 
 CDynLoader (const CDynLoader &)=delete
 
CDynLoaderoperator= (CDynLoader const &)=delete
 
 operator bool () const
 
bool IsOk () const
 
bool Load (const std::filesystem::path &dynlib, uint32_t loadflags=LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR|LOAD_LIBRARY_SEARCH_APPLICATION_DIR|LOAD_LIBRARY_SEARCH_USER_DIRS|LOAD_LIBRARY_SEARCH_SYSTEM32)
 
void Close ()
 
template<typename T >
DynFuncHolder< TGetSymbol (const std::string &name)
 
template<typename T >
DynFuncHolder< TGetSymbol_safe (const std::string &name)
 
virtual ~CDynLoader ()
 

Static Public Member Functions

static std::filesystem::path GetThisLibraryPath (void)
 

Detailed Description

Definition at line 152 of file sound4cl.hpp.

Constructor & Destructor Documentation

◆ CDynLoader() [1/3]

sound4::helper::CDynLoader::CDynLoader ( )
default

◆ CDynLoader() [2/3]

sound4::helper::CDynLoader::CDynLoader ( CDynLoader &&  )
default

◆ CDynLoader() [3/3]

sound4::helper::CDynLoader::CDynLoader ( const CDynLoader )
delete

◆ ~CDynLoader()

virtual sound4::helper::CDynLoader::~CDynLoader ( )
inlinevirtual

Definition at line 255 of file sound4cl.hpp.

Member Function Documentation

◆ Close()

void sound4::helper::CDynLoader::Close ( )
inline

Definition at line 216 of file sound4cl.hpp.

◆ GetSymbol()

template<typename T >
DynFuncHolder< T > sound4::helper::CDynLoader::GetSymbol ( const std::string &  name)
inline

Definition at line 229 of file sound4cl.hpp.

◆ GetSymbol_safe()

template<typename T >
DynFuncHolder< T > sound4::helper::CDynLoader::GetSymbol_safe ( const std::string &  name)
inline

Definition at line 237 of file sound4cl.hpp.

◆ GetThisLibraryPath()

static std::filesystem::path sound4::helper::CDynLoader::GetThisLibraryPath ( void  )
inlinestatic

Definition at line 241 of file sound4cl.hpp.

◆ IsOk()

bool sound4::helper::CDynLoader::IsOk ( ) const
inline

Definition at line 170 of file sound4cl.hpp.

◆ Load()

bool sound4::helper::CDynLoader::Load ( const std::filesystem::path &  dynlib,
uint32_t  loadflags = LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR|LOAD_LIBRARY_SEARCH_APPLICATION_DIR|LOAD_LIBRARY_SEARCH_USER_DIRS|LOAD_LIBRARY_SEARCH_SYSTEM32 
)
inline

Definition at line 210 of file sound4cl.hpp.

◆ operator bool()

sound4::helper::CDynLoader::operator bool ( ) const
inline

Definition at line 167 of file sound4cl.hpp.

◆ operator=()

CDynLoader & sound4::helper::CDynLoader::operator= ( CDynLoader const )
delete

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