initial matador ng commit
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#ifndef QUERY_LIBRARY_HPP
|
||||
#define QUERY_LIBRARY_HPP
|
||||
#ifndef LIBRARY_HPP
|
||||
#define LIBRARY_HPP
|
||||
|
||||
#include "matador/utils/export.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -16,7 +18,7 @@ namespace matador::utils {
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
typedef FARPROC func_ptr;
|
||||
#else
|
||||
typedef void *func_ptr;
|
||||
typedef void* func_ptr;
|
||||
#endif
|
||||
#endif /* MATADOR_DOXYGEN_DOC */
|
||||
|
||||
@@ -28,26 +30,24 @@ typedef void *func_ptr;
|
||||
* This class represents a loader and un-loader
|
||||
* for an external library. The path to the library
|
||||
* is given by a string.
|
||||
* It can be loaded and unloaded. Furthermore it
|
||||
* provides a method to get a pointer to an function
|
||||
* It can be loaded and unloaded. Furthermore, it
|
||||
* provides a method to get a pointer to a function
|
||||
* exported by the library. The function is identified
|
||||
* by a name.
|
||||
*/
|
||||
class library
|
||||
class MATADOR_UTILS_API library
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Create a unspecified library serializable
|
||||
*/
|
||||
library() = default;
|
||||
|
||||
/**
|
||||
* Create a library for the given lib path
|
||||
*
|
||||
* @param lib The path to the library to map.
|
||||
*/
|
||||
explicit library(std::string lib);
|
||||
|
||||
~library();
|
||||
|
||||
/**
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
bool load(const std::string &lib);
|
||||
|
||||
/**
|
||||
* Unload an loaded library. If
|
||||
* Unload a loaded library. If
|
||||
* the library isn't loaded or an
|
||||
* error occurred while unloading
|
||||
* false is returned.
|
||||
@@ -104,4 +104,4 @@ private:
|
||||
|
||||
}
|
||||
|
||||
#endif //QUERY_LIBRARY_HPP
|
||||
#endif /* LIBRARY_HPP */
|
||||
|
||||
Reference in New Issue
Block a user