Template Class URPackage

Class Documentation

template<typename HeaderT>
class URPackage

The URPackage a parent class. From that two implementations are inherited, one for the primary, one for the rtde interface (primary_interface::primaryPackage; rtde_interface::rtdePackage). The URPackage makes use of the template HeaderT.

Public Types

using HeaderType = HeaderT

Public Functions

URPackage() = default

Creates a new URPackage object.

virtual ~URPackage() = default
virtual bool parseWith(BinParser &bp) = 0

Sets the attributes of the package by parsing a serialized representation of the package.

Parameters:

bp – A parser containing a serialized version of the package

Returns:

True, if the package was parsed successfully, false otherwise

virtual std::string toString() const = 0

Produces a human readable representation of the package object.

Returns:

A string representing the object