source: nscp/include/dll/impl_unix.hpp @ 6672c56

0.4.00.4.10.4.2
Last change on this file since 6672c56 was 7f9c823, checked in by Michael Medin <michael@…>, 4 years ago

First attempt at serious boostification.
NOTICE! This is NOT a complete edition, it build and runs but many features are disabled and/or broken.
But we have working, sockets and mutexes and conversion functions from boost inside now and more to come...
Also started to build with CMake since it works better then boost.build

  • Property mode set to 100644
File size: 664 bytes
Line 
1#pragma once
2
3#include <unicode_char.hpp>
4#include <boost/noncopyable.hpp>
5#include <error.hpp>
6namespace dll {
7        namespace iunix {
8
9                class impl : public boost::noncopyable {
10                private:
11                        std::wstring module_;
12                public:
13                        impl(std::wstring module) : module_(module) {}
14
15                        void load_library() {
16                                throw dll_exception(_T("Could not load library: ") + module_);
17                        }
18                        void* load_proc(std::string name) {
19                                throw dll_exception(_T("Failed to load process from module: ") + module_);
20                        }
21
22                        void unload_library() {
23                        }
24
25                        bool is_loaded() const { return false; }
26                        std::wstring get_file() const { return module_; }
27                };
28        }
29}
30
Note: See TracBrowser for help on using the repository browser.