My Project
|
a singleton class that keeps dynamically loaded meta data. More...
#include <MonoScriptingState.h>
Public Member Functions | |
MonoDomain * | GetMonoDomain () |
void | SetMonoDomain (MonoDomain *domain) |
ClassObject * | GetClass (const string &filePath) |
Get class object of a given CS script file without running it. More... | |
MonoDomain * | GetMonoDomain () |
void | SetMonoDomain (MonoDomain *domain) |
ClassObject * | GetClass (const string &filePath) |
Get class object of a given CS script file without running it. More... | |
Static Public Member Functions | |
static GlobalAssembliesPool & | GetSingleton () |
static GlobalAssembliesPool & | GetSingleton () |
a singleton class that keeps dynamically loaded meta data.
this class is thread safe Must call SetMonoDomain() just once with the root app domain, before calling GetClass() method.
ClassObject* GlobalAssembliesPool::GetClass | ( | const string & | filePath | ) |
Get class object of a given CS script file without running it.
It will load the file is not loaded. If class is already loaded, it will not be loaded again. [thread safe]
filePath | the local CS script file path, such as "test.dll/test.cs", "test.dll/ParaMono.test.cs", where ParaMono can be a namespace. |
ClassObject * GlobalAssembliesPool::GetClass | ( | const string & | filePath | ) |
Get class object of a given CS script file without running it.
It will load the file is not loaded. If class is already loaded, it will not be loaded again. [thread safe]
filePath | the local CS script file path, such as "test.dll/test.cs", "test.dll/ParaMono.test.cs", where ParaMono can be a namespace. |