8#ifdef BY_BUILD_PLATFORM_IS_WINDOWS
14#ifdef BY_BUILD_PLATFORM_IS_WINDOWS
15 typedef HMODULE dlibHandle;
17 typedef void* dlibHandle;
19 template <
typename F>
using tmayFunc = tres<F, std::string>;
31 dlib(
const char* path);
32 dlib(
const std::string& path);
37 me& operator=(
const me& rhs);
40 const std::string& getPath()
const;
41 void setPath(
const std::string& path);
42 void setPath(
const std::string* it) BY_SIDE_FUNC(setPath);
47 nbool isLoaded()
const;
53 template <
typename F>
tmayFunc<F> accessFunc(
const std::string* it) BY_SIDE_FUNC(accessFunc<F>);
55 template <
typename F>
tmayFunc<F> accessFunc(
const nchar* name) {
56 auto&& res = _accessFunc(name);
63 tmayFunc<void*> _accessFunc(
const nchar* name);
70 typedef std::vector<dlib> dlibs;
Dynamic library loading and management class.
Definition: dlib.hpp:25
tmay< std::string > load()
tmayFunc< F > accessFunc(const std::string &name)
Definition: dlib.hpp:51
Optional value wrapper with byeol-style interface.
Definition: tmay.hpp:18
Template result container with error handling capabilities.
Definition: tres.hpp:13