AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

Member Enumeration Documentation

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

agxDotnet::HostedRuntime::~HostedRuntime ( )
overrideprotected

Member Function Documentation

void agx::Singleton::_shutdown ( )
protectedinherited
Assembly* agxDotnet::HostedRuntime::assemblyFromConfig ( const agx::String &  distRoot,
const agx::String &  mainAssemblyName 
)
virtual std::string agx::Singleton::getClassName ( ) const
pure virtualinherited
Assembly* agxDotnet::HostedRuntime::getMainAssembly ( )
int agx::Singleton::getPriority ( ) const
inherited

Return the shutdown priority of the singleton instance.

static HostedRuntime* agxDotnet::HostedRuntime::init ( const agx::String &  distRoot,
const agx::String &  mainAssemblyName 
)
static
static HostedRuntime* agxDotnet::HostedRuntime::instance ( )
static
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: