Class TransactionDeserializer

Class Documentation

class TransactionDeserializer

Deserialize a Transaction.

The deserializer object loads all of the known Variable and Constraint libraries, allowing derived types contained within the transaction to be properly deserialized. The libraries will be unloaded on destruction. As a consequence, the deserializer object must outlive any created transaction instances.

Public Functions

TransactionDeserializer()

Constructor.

inline fuse_core::Transaction::UniquePtr deserialize(const fuse_msgs::msg::SerializedTransaction::ConstSharedPtr msg) const

Deserialize a SerializedTransaction message into a fuse Transaction object.

If no plugin is available for a contained Variable or Constraint, or an error occurs during deserialization, an exception is thrown.

Parameters:

[IN] – msg The SerializedTransaction message to be deserialized

Returns:

A fuse Transaction object

fuse_core::Transaction::UniquePtr deserialize(const fuse_msgs::msg::SerializedTransaction &msg) const

Deserialize a SerializedTransaction message into a fuse Transaction object.

If no plugin is available for a contained Variable or Constraint, or an error occurs during deserialization, an exception is thrown.

Parameters:

[IN] – msg The SerializedTransaction message to be deserialized

Returns:

A fuse Transaction object