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

handle used to perform transactions on the database 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 used to perform transactions on the database

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: