![]() |
dnp3 (C++ API) 1.6.0
|
Internal database access. More...
#include <dnp3.hpp>
Public Member Functions | |
| Database (Database &&other) noexcept | |
| Transfer ownership of the underlying C-type to this instance and invalidate the other instance. More... | |
| UpdateInfo | update_flags (uint16_t index, UpdateFlagsType flags_type, const Flags &flags, const Timestamp &time, const UpdateOptions &options) |
| Update the flags for the specified point without changing the value. More... | |
| bool | add_binary_input (uint16_t index, EventClass point_class, const BinaryInputConfig &config) |
| Add a new BinaryInput point. More... | |
| bool | remove_binary_input (uint16_t index) |
| Remove a BinaryInput point. More... | |
| bool | update_binary_input (const BinaryInput &value, const UpdateOptions &options) |
| Update a BinaryInput point. More... | |
| UpdateInfo | update_binary_input_2 (const BinaryInput &value, const UpdateOptions &options) |
| Update a BinaryInput point. More... | |
| BinaryInput | get_binary_input (uint16_t index) |
| Get a BinaryInput point. More... | |
| bool | add_double_bit_binary_input (uint16_t index, EventClass point_class, const DoubleBitBinaryInputConfig &config) |
| Add a new Double-Bit Binary Input point. More... | |
| bool | remove_double_bit_binary_input (uint16_t index) |
| Remove a Double-Bit Binary Input point. More... | |
| bool | update_double_bit_binary_input (const DoubleBitBinaryInput &value, const UpdateOptions &options) |
| Update a Double-Bit Binary Input point. More... | |
| UpdateInfo | update_double_bit_binary_input_2 (const DoubleBitBinaryInput &value, const UpdateOptions &options) |
| Update a Double-Bit Binary Input point. More... | |
| DoubleBitBinaryInput | get_double_bit_binary_input (uint16_t index) |
| Get a Double-Bit Binary Input point. More... | |
| bool | add_binary_output_status (uint16_t index, EventClass point_class, const BinaryOutputStatusConfig &config) |
| Add a new Binary Output Status point. More... | |
| bool | remove_binary_output_status (uint16_t index) |
| Remove a Binary Output Status point. More... | |
| bool | update_binary_output_status (const BinaryOutputStatus &value, const UpdateOptions &options) |
| Update a Binary Output Status point. More... | |
| UpdateInfo | update_binary_output_status_2 (const BinaryOutputStatus &value, const UpdateOptions &options) |
| Update a Binary Output Status point. More... | |
| BinaryOutputStatus | get_binary_output_status (uint16_t index) |
| Get a Binary Output Status point. More... | |
| bool | add_counter (uint16_t index, EventClass point_class, const CounterConfig &config) |
| Add a new Counter point. More... | |
| bool | remove_counter (uint16_t index) |
| Remove a Counter point. More... | |
| bool | update_counter (const Counter &value, const UpdateOptions &options) |
| Update a Counter point. More... | |
| UpdateInfo | update_counter_2 (const Counter &value, const UpdateOptions &options) |
| Update a Counter point. More... | |
| Counter | get_counter (uint16_t index) |
| Get a Counter point. More... | |
| bool | add_frozen_counter (uint16_t index, EventClass point_class, const FrozenCounterConfig &config) |
| Add a new Frozen Counter point. More... | |
| bool | remove_frozen_counter (uint16_t index) |
| Remove a Frozen Counter point. More... | |
| bool | update_frozen_counter (const FrozenCounter &value, const UpdateOptions &options) |
| Update an Frozen Counter point. More... | |
| UpdateInfo | update_frozen_counter_2 (const FrozenCounter &value, const UpdateOptions &options) |
| Update an Frozen Counter point. More... | |
| FrozenCounter | get_frozen_counter (uint16_t index) |
| Get a Frozen Counter point. More... | |
| bool | add_analog_input (uint16_t index, EventClass point_class, const AnalogInputConfig &config) |
| Add a new AnalogInput point. More... | |
| bool | remove_analog_input (uint16_t index) |
| Remove an AnalogInput point. More... | |
| bool | update_analog_input (const AnalogInput &value, const UpdateOptions &options) |
| Update a AnalogInput point. More... | |
| UpdateInfo | update_analog_input_2 (const AnalogInput &value, const UpdateOptions &options) |
| Update a AnalogInput point. More... | |
| AnalogInput | get_analog_input (uint16_t index) |
| Get a AnalogInput point. More... | |
| bool | add_analog_output_status (uint16_t index, EventClass point_class, const AnalogOutputStatusConfig &config) |
| Add a new Analog Output Status point. More... | |
| bool | remove_analog_output_status (uint16_t index) |
| Remove an Analog Output Status point. More... | |
| bool | update_analog_output_status (const AnalogOutputStatus &value, const UpdateOptions &options) |
| Update a Analog Output Status point. More... | |
| UpdateInfo | update_analog_output_status_2 (const AnalogOutputStatus &value, const UpdateOptions &options) |
| Update a Analog Output Status point. More... | |
| AnalogOutputStatus | get_analog_output_status (uint16_t index) |
| Get a Analog Output Status point. More... | |
| bool | add_octet_string (uint16_t index, EventClass point_class) |
| Add a new Octet String point. More... | |
| bool | remove_octet_string (uint16_t index) |
| Remove an Octet String point. More... | |
| bool | update_octet_string (uint16_t index, const std::vector< uint8_t > &value, const UpdateOptions &options) |
| Update an Octet String point. More... | |
| UpdateInfo | update_octet_string_2 (uint16_t index, const std::vector< uint8_t > &value, const UpdateOptions &options) |
| Update an Octet String point. More... | |
| AttrDefError | define_string_attr (uint8_t set, bool writable, uint8_t variation, const std::string &value) |
| Define a string attribute. More... | |
| AttrDefError | define_int_attr (uint8_t set, bool writable, uint8_t variation, int32_t value) |
| Define a signed integer attribute. More... | |
| AttrDefError | define_uint_attr (uint8_t set, bool writable, uint8_t variation, uint32_t value) |
| Define an unsigned integer attribute. More... | |
| AttrDefError | define_time_attr (uint8_t set, bool writable, uint8_t variation, uint64_t value) |
| Define a DNP3 time attribute. More... | |
| AttrDefError | define_bool_attr (uint8_t set, bool writable, uint8_t variation, bool value) |
| Define a boolean attribute which is mapped to an unsigned integer internally. More... | |
| AttrDefError | define_float_attr (uint8_t set, bool writable, uint8_t variation, float value) |
| Define a 32-bit floating point attribute. More... | |
| AttrDefError | define_double_attr (uint8_t set, bool writable, uint8_t variation, double value) |
| Define a 64-bit floating point attribute. More... | |
Friends | |
| class | CppDatabaseFriend |
Internal database access.
|
inlinenoexcept |
Transfer ownership of the underlying C-type to this instance and invalidate the other instance.
| other | Class from which ownership will be transfer to this instance |
| bool dnp3::Database::add_analog_input | ( | uint16_t | index, |
| EventClass | point_class, | ||
| const AnalogInputConfig & | config | ||
| ) |
Add a new AnalogInput point.
| index | Index of the point |
| point_class | Event class |
| config | Configuration |
| bool dnp3::Database::add_analog_output_status | ( | uint16_t | index, |
| EventClass | point_class, | ||
| const AnalogOutputStatusConfig & | config | ||
| ) |
Add a new Analog Output Status point.
| index | Index of the point |
| point_class | Event class |
| config | Configuration |
| bool dnp3::Database::add_binary_input | ( | uint16_t | index, |
| EventClass | point_class, | ||
| const BinaryInputConfig & | config | ||
| ) |
Add a new BinaryInput point.
| index | Index of the point |
| point_class | Event class |
| config | Configuration |
| bool dnp3::Database::add_binary_output_status | ( | uint16_t | index, |
| EventClass | point_class, | ||
| const BinaryOutputStatusConfig & | config | ||
| ) |
Add a new Binary Output Status point.
| index | Index of the point |
| point_class | Event class |
| config | Configuration |
| bool dnp3::Database::add_counter | ( | uint16_t | index, |
| EventClass | point_class, | ||
| const CounterConfig & | config | ||
| ) |
Add a new Counter point.
| index | Index of the point |
| point_class | Event class |
| config | Configuration |
| bool dnp3::Database::add_double_bit_binary_input | ( | uint16_t | index, |
| EventClass | point_class, | ||
| const DoubleBitBinaryInputConfig & | config | ||
| ) |
Add a new Double-Bit Binary Input point.
| index | Index of the point |
| point_class | Event class |
| config | Configuration |
| bool dnp3::Database::add_frozen_counter | ( | uint16_t | index, |
| EventClass | point_class, | ||
| const FrozenCounterConfig & | config | ||
| ) |
Add a new Frozen Counter point.
| index | Index of the point |
| point_class | Event class |
| config | Configuration |
| bool dnp3::Database::add_octet_string | ( | uint16_t | index, |
| EventClass | point_class | ||
| ) |
Add a new Octet String point.
| index | Index of the point |
| point_class | Event class |
| AttrDefError dnp3::Database::define_bool_attr | ( | uint8_t | set, |
| bool | writable, | ||
| uint8_t | variation, | ||
| bool | value | ||
| ) |
Define a boolean attribute which is mapped to an unsigned integer internally.
| set | The set to which the attribute belongs |
| writable | True if the attribute may be written |
| variation | The variation of the attribute |
| value | The value of the attribute |
| AttrDefError dnp3::Database::define_double_attr | ( | uint8_t | set, |
| bool | writable, | ||
| uint8_t | variation, | ||
| double | value | ||
| ) |
Define a 64-bit floating point attribute.
| set | The set to which the attribute belongs |
| writable | True if the attribute may be written |
| variation | The variation of the attribute |
| value | The value of the attribute |
| AttrDefError dnp3::Database::define_float_attr | ( | uint8_t | set, |
| bool | writable, | ||
| uint8_t | variation, | ||
| float | value | ||
| ) |
Define a 32-bit floating point attribute.
| set | The set to which the attribute belongs |
| writable | True if the attribute may be written |
| variation | The variation of the attribute |
| value | The value of the attribute |
| AttrDefError dnp3::Database::define_int_attr | ( | uint8_t | set, |
| bool | writable, | ||
| uint8_t | variation, | ||
| int32_t | value | ||
| ) |
Define a signed integer attribute.
| set | The set to which the attribute belongs |
| writable | True if the attribute may be written |
| variation | The variation of the attribute |
| value | The value of the attribute |
| AttrDefError dnp3::Database::define_string_attr | ( | uint8_t | set, |
| bool | writable, | ||
| uint8_t | variation, | ||
| const std::string & | value | ||
| ) |
Define a string attribute.
| set | The set to which the attribute belongs |
| writable | True if the attribute may be written |
| variation | The variation of the attribute |
| value | The value of the attribute |
| AttrDefError dnp3::Database::define_time_attr | ( | uint8_t | set, |
| bool | writable, | ||
| uint8_t | variation, | ||
| uint64_t | value | ||
| ) |
Define a DNP3 time attribute.
| set | The set to which the attribute belongs |
| writable | True if the attribute may be written |
| variation | The variation of the attribute |
| value | The DNP3 timestamp value of the attribute. Only the lower 48-bits are used. |
| AttrDefError dnp3::Database::define_uint_attr | ( | uint8_t | set, |
| bool | writable, | ||
| uint8_t | variation, | ||
| uint32_t | value | ||
| ) |
Define an unsigned integer attribute.
| set | The set to which the attribute belongs |
| writable | True if the attribute may be written |
| variation | The variation of the attribute |
| value | The value of the attribute |
| AnalogInput dnp3::Database::get_analog_input | ( | uint16_t | index | ) |
Get a AnalogInput point.
| index | Index of the point to get |
| ParamException |
| AnalogOutputStatus dnp3::Database::get_analog_output_status | ( | uint16_t | index | ) |
Get a Analog Output Status point.
| index | Index of the point to get |
| ParamException |
| BinaryInput dnp3::Database::get_binary_input | ( | uint16_t | index | ) |
Get a BinaryInput point.
| index | Index of the point to get |
| ParamException |
| BinaryOutputStatus dnp3::Database::get_binary_output_status | ( | uint16_t | index | ) |
Get a Binary Output Status point.
| index | Index of the point to get |
| ParamException |
| Counter dnp3::Database::get_counter | ( | uint16_t | index | ) |
Get a Counter point.
| index | Index of the point to get |
| ParamException |
| DoubleBitBinaryInput dnp3::Database::get_double_bit_binary_input | ( | uint16_t | index | ) |
Get a Double-Bit Binary Input point.
| index | Index of the point to get |
| ParamException |
| FrozenCounter dnp3::Database::get_frozen_counter | ( | uint16_t | index | ) |
Get a Frozen Counter point.
| index | Index of the point to get |
| ParamException |
| bool dnp3::Database::remove_analog_input | ( | uint16_t | index | ) |
Remove an AnalogInput point.
| index | Index of the point |
| bool dnp3::Database::remove_analog_output_status | ( | uint16_t | index | ) |
Remove an Analog Output Status point.
| index | Index of the point |
| bool dnp3::Database::remove_binary_input | ( | uint16_t | index | ) |
Remove a BinaryInput point.
| index | Index of the point |
| bool dnp3::Database::remove_binary_output_status | ( | uint16_t | index | ) |
Remove a Binary Output Status point.
| index | Index of the point |
| bool dnp3::Database::remove_counter | ( | uint16_t | index | ) |
Remove a Counter point.
| index | Index of the point |
| bool dnp3::Database::remove_double_bit_binary_input | ( | uint16_t | index | ) |
Remove a Double-Bit Binary Input point.
| index | Index of the point |
| bool dnp3::Database::remove_frozen_counter | ( | uint16_t | index | ) |
Remove a Frozen Counter point.
| index | Index of the point |
| bool dnp3::Database::remove_octet_string | ( | uint16_t | index | ) |
Remove an Octet String point.
| index | Index of the point |
| bool dnp3::Database::update_analog_input | ( | const AnalogInput & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a AnalogInput point.
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_analog_input_2 | ( | const AnalogInput & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a AnalogInput point.
| value | New value of the point |
| options | Update options |
| bool dnp3::Database::update_analog_output_status | ( | const AnalogOutputStatus & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a Analog Output Status point.
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_analog_output_status_2 | ( | const AnalogOutputStatus & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a Analog Output Status point.
| value | New value of the point |
| options | Update options |
| bool dnp3::Database::update_binary_input | ( | const BinaryInput & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a BinaryInput point.
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_binary_input_2 | ( | const BinaryInput & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a BinaryInput point.
| value | New value of the point |
| options | Update options |
| bool dnp3::Database::update_binary_output_status | ( | const BinaryOutputStatus & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a Binary Output Status point.
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_binary_output_status_2 | ( | const BinaryOutputStatus & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a Binary Output Status point.
| value | New value of the point |
| options | Update options |
| bool dnp3::Database::update_counter | ( | const Counter & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a Counter point.
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_counter_2 | ( | const Counter & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a Counter point.
| value | New value of the point |
| options | Update options |
| bool dnp3::Database::update_double_bit_binary_input | ( | const DoubleBitBinaryInput & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a Double-Bit Binary Input point.
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_double_bit_binary_input_2 | ( | const DoubleBitBinaryInput & | value, |
| const UpdateOptions & | options | ||
| ) |
Update a Double-Bit Binary Input point.
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_flags | ( | uint16_t | index, |
| UpdateFlagsType | flags_type, | ||
| const Flags & | flags, | ||
| const Timestamp & | time, | ||
| const UpdateOptions & | options | ||
| ) |
Update the flags for the specified point without changing the value.
This is equivalent to getting the current value, changing the flags and the timestamp, then calling update
| index | Index on which to perform the operation |
| flags_type | Point type on which to perform the operation |
| flags | New flags applied to the point |
| time | New timestamp applied to the point |
| options | Options that control how events and static values are handled |
| bool dnp3::Database::update_frozen_counter | ( | const FrozenCounter & | value, |
| const UpdateOptions & | options | ||
| ) |
Update an Frozen Counter point.
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_frozen_counter_2 | ( | const FrozenCounter & | value, |
| const UpdateOptions & | options | ||
| ) |
Update an Frozen Counter point.
| value | New value of the point |
| options | Update options |
| bool dnp3::Database::update_octet_string | ( | uint16_t | index, |
| const std::vector< uint8_t > & | value, | ||
| const UpdateOptions & | options | ||
| ) |
Update an Octet String point.
| index | Index of the octet string |
| value | New value of the point |
| options | Update options |
| UpdateInfo dnp3::Database::update_octet_string_2 | ( | uint16_t | index, |
| const std::vector< uint8_t > & | value, | ||
| const UpdateOptions & | options | ||
| ) |
Update an Octet String point.
| index | Index of the octet string |
| value | New value of the point |
| options | Update options |