dnp3 (C++ API) 1.1.0
dnp3::Runtime Class Reference

Handle to the underlying runtime. More...

#include <dnp3.hpp>

Public Member Functions

 Runtime (Runtime &&other) noexcept
 Transfer ownership of the underlying C-type to this instance and invalidate the other instance. More...
 
 Runtime (const RuntimeConfig &config)
 Creates a new runtime for running the protocol stack. More...
 
 ~Runtime ()
 Destroy a runtime. More...
 

Friends

class CppRuntimeFriend
 

Detailed Description

Handle to the underlying runtime.

Constructor & Destructor Documentation

◆ Runtime() [1/2]

dnp3::Runtime::Runtime ( Runtime &&  other)
inlinenoexcept

Transfer ownership of the underlying C-type to this instance and invalidate the other instance.

Note
the moved class will now throw an exception if any method is called
Parameters
otherClass from which ownership will be transfer to this instance

◆ Runtime() [2/2]

dnp3::Runtime::Runtime ( const RuntimeConfig config)

Creates a new runtime for running the protocol stack.

Warning
The runtime should be kept alive for as long as it's needed and it should be released with Runtime::~Runtime()
Parameters
configRuntime configuration
Exceptions
ParamException

◆ ~Runtime()

dnp3::Runtime::~Runtime ( )

Destroy a runtime.

This method will gracefully wait for all asynchronous operation to end before returning


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