22 #ifndef ROBOTTESTINGFRAMEWORK_SHAREDLIBRARYFACTORY_H 23 #define ROBOTTESTINGFRAMEWORK_SHAREDLIBRARYFACTORY_H 33 class SharedLibraryFactory;
76 const char* fn_name =
nullptr);
90 bool open(
const char* dll_name,
const char* fn_name =
nullptr);
187 #endif // ROBOTTESTINGFRAMEWORK_SHAREDLIBRARYFACTORY_H SharedLibraryFactory()
Constructor for unconfigured factory.
Collection of hooks for creating/destroying a plugin.
Named method wasn't present in library.
Low-level wrapper for loading shared libraries (DLLs) and accessing symbols within it...
Named shared library was not found.
int getStatus() const
Get the status of the factory.
Named method is not working right.
bool isValid() const
Check if factory is configured and present.
SharedLibraryClassApi api
A wrapper for a named factory method in a named shared library.
int addRef()
Increment the reference count of this factory.
Named shared library failed to load.
bool useFactoryFunction(void *factory)
Specify function to use as factory.
std::string getName() const
Get the name associated with this factory.
std::string getClassName() const
Get the type associated with this factory.
constexpr int32_t VOCAB(char a, char b=0, char c=0, char d=0)
bool open(const char *dll_name, const char *fn_name=nullptr)
Configure the factory.
std::string baseClassName
std::string getBaseClassName() const
Get the base type associated with this factory.
int getReferenceCount() const
Get the current reference count of this factory.
std::string getError() const
Get the latest error of the factory.
virtual ~SharedLibraryFactory()
Destructor.
const SharedLibraryClassApi & getApi() const
Get the factory API, which has creation/deletion methods.
int removeRef()
Decrement the reference count of this factory.