OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
openstudio::DynamicLibrary Struct Reference

#include <DynamicLibraryWindows.hpp>

Public Member Functions

 DynamicLibrary (openstudio::path location)
 
 DynamicLibrary (openstudio::path location)
 
 DynamicLibrary ()=delete
 
 DynamicLibrary (DynamicLibrary &&other) noexcept
 
 DynamicLibrary (const DynamicLibrary &)=delete
 
template<typename Signature >
Signature * load_symbol (const std::string &name)
 
template<typename Signature >
Signature * load_symbol (const std::string &name)
 
DynamicLibraryoperator= (DynamicLibrary &&other) noexcept
 
DynamicLibraryoperator= (const DynamicLibrary &)=delete
 
 ~DynamicLibrary () noexcept
 

Static Public Member Functions

static std::string[[nodiscard]] get_error_message (DWORD t_err)
 
static void m_handle_deleter (void *h)
 
template<typename T >
static std::string[[nodiscard]] to_proper_string (const T &t_str)
 
template<typename T >
static std::string to_string (const T &t_str)
 
template<typename T >
static std::wstring to_wstring (const T &t_str)
 

Public Attributes

std::unique_ptr< void,
decltype(&m_handle_deleter)> 
m_handle {nullptr, m_handle_deleter}
 
HMODULE m_handle {}
 
openstudio::path m_location {}
 

Constructor & Destructor Documentation

openstudio::DynamicLibrary::DynamicLibrary ( openstudio::path  location)
inlineexplicit
openstudio::DynamicLibrary::DynamicLibrary ( openstudio::path  location)
inlineexplicit
openstudio::DynamicLibrary::DynamicLibrary ( )
delete
openstudio::DynamicLibrary::DynamicLibrary ( DynamicLibrary &&  other)
inlinenoexcept
openstudio::DynamicLibrary::DynamicLibrary ( const DynamicLibrary )
delete
openstudio::DynamicLibrary::~DynamicLibrary ( )
inlinenoexcept

Member Function Documentation

static std::string [[nodiscard]] openstudio::DynamicLibrary::get_error_message ( DWORD  t_err)
inlinestatic
template<typename Signature >
Signature* openstudio::DynamicLibrary::load_symbol ( const std::string &  name)
inline
template<typename Signature >
Signature* openstudio::DynamicLibrary::load_symbol ( const std::string &  name)
inline
static void openstudio::DynamicLibrary::m_handle_deleter ( void *  h)
inlinestatic
DynamicLibrary& openstudio::DynamicLibrary::operator= ( DynamicLibrary &&  other)
inlinenoexcept
DynamicLibrary& openstudio::DynamicLibrary::operator= ( const DynamicLibrary )
delete
template<typename T >
static std::string [[nodiscard]] openstudio::DynamicLibrary::to_proper_string ( const T &  t_str)
inlinestatic
template<typename T >
static std::string openstudio::DynamicLibrary::to_string ( const T &  t_str)
inlinestatic
template<typename T >
static std::wstring openstudio::DynamicLibrary::to_wstring ( const T &  t_str)
inlinestatic

Member Data Documentation

std::unique_ptr<void, decltype(&m_handle_deleter)> openstudio::DynamicLibrary::m_handle {nullptr, m_handle_deleter}
HMODULE openstudio::DynamicLibrary::m_handle {}
openstudio::path openstudio::DynamicLibrary::m_location {}