DCL 4.0
Loading...
Searching...
No Matches
Dll.h
Go to the documentation of this file.
1#ifndef __DCL_DLL_H__
2#define __DCL_DLL_H__ 20041127
3
4#ifndef __DCL_OBJECT_H__
5#include <dcl/Object.h>
6#endif
7#ifndef __DCL_EXCEPTION_H__
8#include <dcl/Exception.h>
9#endif
10
11__DCL_BEGIN_NAMESPACE
12
14{
16public:
17 String __message;
18
19public:
20 DllException(const String& _name, Exception* _cause);
21 DllException(const String& _name, uint32_t _errorNo);
22 DllException(const String& _name, const String& _message);
23
24 virtual String toString() const;
25};
26
27
28class DCLCAPI Dll : public Object
29{
31
32public:
33 Dll();
34 virtual ~Dll();
35
36 enum OpenFlag
37 {
38 DEFAULT = 0
39 };
40
41 void open(
42 const String& _filename, int _flags = DEFAULT
44
45 void close()
47
48 void* getAddress(const char* _symbol)
50
51 void* getAddress(const String& _symbol)
53
54 const String& fileName() const { return __filename; }
55
56protected:
57 void* __handle;
58 String __filename;
59};
60
61__DCL_END_NAMESPACE
62
63#endif // __DCL_DLL_H__
64
#define DCLCAPI
Definition Config.h:100
#define __DCL_THROWS1(e)
Definition Config.h:167
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:210
DllException(const String &_name, Exception *_cause)
Definition Dll.h:29
void * __handle
Definition Dll.h:57
String __filename
Definition Dll.h:58
Exception(Exception *_cause=NULL)
Object()
Definition Object.cpp:183
virtual String toString() const
SysError(Exception *_cause=NULL)