lfilesystem  0.0.1
C++ filesystem library
limes::files::DynamicLibrary::Listener Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Listener()

limes::files::DynamicLibrary::Listener::Listener ( DynamicLibrary library)
explicit

Constructs a listener.

◆ ~Listener()

virtual limes::files::DynamicLibrary::Listener::~Listener ( )
virtual

Destructor.

Member Function Documentation

◆ libraryClosed()

virtual void limes::files::DynamicLibrary::Listener::libraryClosed ( )
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() .

See also
DynamicLibrary::close(), libraryReloaded()

Definition at line 203 of file lfilesystem_DynamicLibrary.h.

◆ libraryOpened()

virtual void limes::files::DynamicLibrary::Listener::libraryOpened ( bool  )
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() .

See also
DynamicLibrary::open(), libraryReloaded()

Definition at line 195 of file lfilesystem_DynamicLibrary.h.

◆ libraryReloaded()

virtual void limes::files::DynamicLibrary::Listener::libraryReloaded ( bool  )
inlinevirtual

Called when DynamicLibrary::reload() is called.

Note that on reload events, only this callback will be fired, and not libraryClosed() or libraryOpened() .

See also
DynamicLibrary::reload()

Definition at line 212 of file lfilesystem_DynamicLibrary.h.


The documentation for this class was generated from the following file: