AGXDynamics  2.31.1.0
agxDotnet::HostedRuntime Class Referenceabstract

Ref for error codes: https://github.com/dotnet/runtime/blob/master/docs/design/features/host-error-codes.md. More...

#include <DotnetRuntime.h>

+ Inheritance diagram for agxDotnet::HostedRuntime:

Classes

class  Assembly
 
class  Function
 

Public Types

typedef agx::observer_ptr< const Assembly > AssemblyConstObserver
 
typedef agx::ref_ptr< const Assembly > AssemblyConstRef
 
typedef agx::observer_ptr< Assembly > AssemblyObserver
 
typedef agx::ref_ptr< Assembly > AssemblyRef
 
enum  Priority { HIGHEST_PRIORITY = 2147483647, LOWEST_PRIORITY = 10000, DEFAULT_PRIORITY = 1073741824 }
 Specifies the ranges of the priority which can be assigned to a singleton at the time of creation. More...
 

Public Member Functions

Assembly * assemblyFromConfig (const agx::String &distRoot, const agx::String &mainAssemblyName)
 
virtual std::string getClassName () const =0
 
Assembly * getMainAssembly ()
 
int getPriority () const
 Return the shutdown priority of the singleton instance. More...
 

Static Public Member Functions

static HostedRuntime * init (const agx::String &distRoot, const agx::String &mainAssemblyName)
 
static HostedRuntime * instance ()
 

Protected Member Functions

 ~HostedRuntime () override
 
void _shutdown ()
 
void shutdown () override
 Implement this method to cleanup your Singleton class. More...
 

Detailed Description

Member Typedef Documentation

◆ AssemblyConstObserver

◆ AssemblyConstRef

◆ AssemblyObserver

◆ AssemblyRef

Member Enumeration Documentation

◆ Priority

enum agx::Singleton::Priority
inherited

Specifies the ranges of the priority which can be assigned to a singleton at the time of creation.

Enumerator
HIGHEST_PRIORITY 

The highest priority that can be given to a singleton.

LOWEST_PRIORITY 

The lowest priority that can be given to a singleton.

DEFAULT_PRIORITY 

The default priority given to a singleton.

Definition at line 35 of file Singleton.h.

Constructor & Destructor Documentation

◆ ~HostedRuntime()

agxDotnet::HostedRuntime::~HostedRuntime ( )
overrideprotected

Member Function Documentation

◆ _shutdown()

void agx::Singleton::_shutdown ( )
protectedinherited

◆ assemblyFromConfig()

Assembly* agxDotnet::HostedRuntime::assemblyFromConfig ( const agx::String &  distRoot,
const agx::String &  mainAssemblyName 
)

◆ getClassName()

virtual std::string agx::Singleton::getClassName ( ) const
pure virtualinherited

◆ getMainAssembly()

Assembly* agxDotnet::HostedRuntime::getMainAssembly ( )

◆ getPriority()

int agx::Singleton::getPriority ( ) const
inherited

Return the shutdown priority of the singleton instance.

◆ init()

static HostedRuntime* agxDotnet::HostedRuntime::init ( const agx::String &  distRoot,
const agx::String &  mainAssemblyName 
)
static

◆ instance()

static HostedRuntime* agxDotnet::HostedRuntime::instance ( )
static

◆ shutdown()

void agxDotnet::HostedRuntime::shutdown ( )
overrideprotectedvirtual

Implement this method to cleanup your Singleton class.

Reimplemented from agx::Singleton.


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