nx_metadata_sdk
1.0
Metadata SDK
|
#include <lib_context.h>
Public Member Functions | |
virtual void | setName (const char *name) override |
virtual void | setRefCountableRegistry (IRefCountableRegistry *refCountableRegistry) override |
const std::string & | name () const |
IRefCountableRegistry * | refCountableRegistry () const |
Context which has a dedicated instance in each plugin dynamic library, and one more instance in the Server. Provides some services to a library which uses the SDK (a plugin or the Server), like detecting memory leaks of ref-countable objects, or keeping a name to be used for the logging prefix in the library.
|
inline |
|
overridevirtual |
For the LibContext of a plugin, called by the Server immediately after loading the plugin dynamic library. For the LibContext of the Server, called before any involving of the SDK.
Implements nx::sdk::ILibContext.
|
overridevirtual |
Called by the Server after setName().
refCountableRegistry | Will be deleted in the LibContext destructor. Can be null if the leak detection is not enabled. |
Implements nx::sdk::ILibContext.