dnp3 (C++ API) 1.6.0
Loading...
Searching...
No Matches
dnp3::DatabaseHandle Class Reference

Handle typed used to perform transactions on the database inside of control and freeze callbacks. More...

#include <dnp3.hpp>

Public Member Functions

 DatabaseHandle (DatabaseHandle &&other) noexcept
 Transfer ownership of the underlying C-type to this instance and invalidate the other instance. More...
 
void transaction (DatabaseTransaction &callback)
 Acquire a mutex on the underlying database and apply a set of changes as a transaction. More...
 

Friends

class CppDatabaseHandleFriend
 

Detailed Description

Handle typed used to perform transactions on the database inside of control and freeze callbacks.

This type has the same transaction method as Outstation::transaction() but it is only used in these callbacks.

Constructor & Destructor Documentation

◆ DatabaseHandle()

dnp3::DatabaseHandle::DatabaseHandle ( DatabaseHandle &&  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

Member Function Documentation

◆ transaction()

void dnp3::DatabaseHandle::transaction ( DatabaseTransaction callback)

Acquire a mutex on the underlying database and apply a set of changes as a transaction.

Parameters
callbackcallback interface

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