sipxportlib  Version 3.3
OsSharedLibMgrWnt.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _OsSharedLibMgrWnt_h_
13 #define _OsSharedLibMgrWnt_h_
14 
15 // SYSTEM INCLUDES
16 //#include <...>
17 
18 // APPLICATION INCLUDES
19 #include <os/OsSharedLibMgr.h>
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 // FORWARD DECLARATIONS
29 
30 //:Class short description which may consist of multiple lines (note the ':')
31 // Class detailed description which may extend to multiple lines
33 {
34 /* //////////////////////////// PUBLIC //////////////////////////////////// */
35  friend class OsSharedLibMgrBase;
36 
37 public:
38 
39 /* ============================ CREATORS ================================== */
40 
41  virtual
43  //:Destructor
44 
45 /* ============================ MANIPULATORS ============================== */
46 
47  virtual OsStatus loadSharedLib(const char* libName);
48  //: Loads the given shared library
50 
51  virtual OsStatus getSharedLibSymbol(const char* libName,
52  const char* symbolName,
53  void*& symbolAddress);
54  //: Gets the address of a symbol in the shared lib
58 
59  virtual OsStatus unloadSharedLib(const char* libName);
60  //: Unloads the given shared library
61  // Before unloading library make sure that no one else use it!
63 
64 /* ============================ ACCESSORS ================================= */
65 
66 /* ============================ INQUIRY =================================== */
67 
68 /* //////////////////////////// PROTECTED ///////////////////////////////// */
69 protected:
71  //:Default constructor disallowed, use getOsSharedLibMgr
72 
73 /* //////////////////////////// PRIVATE /////////////////////////////////// */
74 private:
75 
76  OsSharedLibMgrWnt(const OsSharedLibMgrWnt& rOsSharedLibMgrWnt);
77  //:Copy constructor
78 
79  OsSharedLibMgrWnt& operator=(const OsSharedLibMgrWnt& rhs);
80  //:Assignment operator
81 
82 };
83 
84 /* ============================ INLINE METHODS ============================ */
85 
86 #endif // _OsSharedLibMgrWnt_h_
87 
OsStatus
Definition: OsStatus.h:27
virtual OsStatus getSharedLibSymbol(const char *libName, const char *symbolName, void *&symbolAddress)
param: libName - name of library, may include absolute or relative path
Definition: OsSharedLibMgrWnt.cpp:141
Definition: OsSharedLibMgr.h:34
virtual ~OsSharedLibMgrWnt()
Definition: OsSharedLibMgrWnt.cpp:58
OsSharedLibMgrWnt()
param: libName - name of library, may include absolute or relative path
Definition: OsSharedLibMgrWnt.cpp:48
virtual OsStatus unloadSharedLib(const char *libName)
param: (in) libName - name of library, may include absolute or relative path param: (in) symbolName -...
Definition: OsSharedLibMgrWnt.cpp:204
Definition: OsSharedLibMgrWnt.h:32
virtual OsStatus loadSharedLib(const char *libName)
param: libName - name of library, may include absolute or relative path
Definition: OsSharedLibMgrWnt.cpp:66