My Project
Public Member Functions | Static Public Member Functions | List of all members
GlobalAssembliesPool Class Reference

a singleton class that keeps dynamically loaded meta data. More...

#include <MonoScriptingState.h>

Public Member Functions

MonoDomain * GetMonoDomain ()
 
void SetMonoDomain (MonoDomain *domain)
 
ClassObjectGetClass (const string &filePath)
 Get class object of a given CS script file without running it. More...
 
MonoDomain * GetMonoDomain ()
 
void SetMonoDomain (MonoDomain *domain)
 
ClassObjectGetClass (const string &filePath)
 Get class object of a given CS script file without running it. More...
 

Static Public Member Functions

static GlobalAssembliesPoolGetSingleton ()
 
static GlobalAssembliesPoolGetSingleton ()
 

Detailed Description

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.

Member Function Documentation

§ GetClass() [1/2]

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]

Parameters
filePaththe local CS script file path, such as "test.dll/test.cs", "test.dll/ParaMono.test.cs", where ParaMono can be a namespace.
Returns
: ClassObject * object or NULL.

§ GetClass() [2/2]

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]

Parameters
filePaththe local CS script file path, such as "test.dll/test.cs", "test.dll/ParaMono.test.cs", where ParaMono can be a namespace.
Returns
: ClassObject * object or NULL.

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