Manage MacOSX / iOS Framework library files. More...
Public Member Functions | |
CodeFramework () noexcept | |
Default constructor. | |
~CodeFramework () | |
Default destructor. | |
eError | Init (const char *pName) noexcept |
Load a Framework. | |
void | Shutdown (void) noexcept |
Release the Framework. | |
void * | GetFunction (const char *pFunctionName) noexcept |
Locate a function pointer in a Framework. | |
Private Member Functions | |
CodeFramework (const CodeFramework &)=delete | |
CodeFramework & | operator= (const CodeFramework &)=delete |
CodeFramework (CodeFramework &&)=delete | |
CodeFramework & | operator= (CodeFramework &&)=delete |
Private Attributes | |
__CFBundle * | m_pBundle |
Instance of the framework bundle. | |
Manage MacOSX / iOS Framework library files.
Loading a Framework bundle on MacOSX and iOS is managed with this generic class. Initialize it with a call to Init(const char) and then call GetFunction(const char *) to extract each and every pointer to the code or data contained within.
If this class is shut down by the Shutdown() call or the class going out of scope, all of the pointers will become invalid and should never be used again.
|
privatedelete |
|
privatedelete |
|
noexcept |
Default constructor.
Burger::CodeFramework::~CodeFramework | ( | ) |
|
noexcept |
Locate a function pointer in a Framework.
Return a function pointer to a procedure or data contained within a shared library
pFunctionName | Pointer to a "C" string in UTF-8 encoding of the function to locate. |
|
noexcept |
Load a Framework.
Attempt to load in a Framework using the standard paths.
pName | Name of the Framework to load |
|
privatedelete |
|
privatedelete |
|
noexcept |
Release the Framework.
If a Framework was loaded, it will be released
|
private |
Instance of the framework bundle.