lfilesystem
0.0.1
C++ filesystem library
|
This class listens for events to a DynamicLibrary and receives a callback when the library is opened, closed, or reloaded. More...
#include <lfilesystem_DynamicLibrary.h>
Public Member Functions | |
Listener (DynamicLibrary &library) | |
Constructs a listener. More... | |
virtual | ~Listener () |
Destructor. More... | |
virtual void | libraryClosed () |
Called when the library is closed. More... | |
virtual void | libraryOpened (bool) |
Called when the library is opened. More... | |
virtual void | libraryReloaded (bool) |
Called when DynamicLibrary::reload() is called. More... | |
This class listens for events to a DynamicLibrary and receives a callback when the library is opened, closed, or reloaded.
Note that all callbacks may be called from any thread! You need to ensure thread safety in your callbacks.
Definition at line 180 of file lfilesystem_DynamicLibrary.h.
|
explicit |
Constructs a listener.
|
virtual |
Destructor.
|
inlinevirtual |
Called when the library is closed.
Note that if DynamicLibrary::reload() is called, then listeners will receive a libraryReloaded()
call instead of libraryClosed()
and libraryOpened()
.
Definition at line 203 of file lfilesystem_DynamicLibrary.h.
|
inlinevirtual |
Called when the library is opened.
Note that if DynamicLibrary::reload() is called, then listeners will receive a libraryReloaded()
call instead of libraryClosed()
and libraryOpened()
.
Definition at line 195 of file lfilesystem_DynamicLibrary.h.
|
inlinevirtual |
Called when DynamicLibrary::reload() is called.
Note that on reload events, only this callback will be fired, and not libraryClosed()
or libraryOpened()
.
Definition at line 212 of file lfilesystem_DynamicLibrary.h.