28 #ifndef UR_CLIENT_LIBRARY_PRIMARY_PACKAGE_H_INCLUDED 29 #define UR_CLIENT_LIBRARY_PRIMARY_PACKAGE_H_INCLUDED 36 namespace primary_interface
38 class AbstractPrimaryConsumer;
81 virtual std::string
toString()
const;
Base consumer for primary packages.
virtual bool consumeWith(AbstractPrimaryConsumer &consumer)=0
Consume this package with a specific consumer. This should be overwritten in inherited packages...
virtual bool parseWith(comm::BinParser &bp)
Sets the attributes of the package by parsing a serialized representation of the package.
The BinParser class handles a byte buffer and functionality to iteratively parse the content...
virtual ~PrimaryPackage()=default
std::unique_ptr< uint8_t > buffer_
The PrimaryPackage is solely an abstraction level. It inherits form the URPackage and is also a paren...
The URPackage a parent class. From that two implementations are inherited, one for the primary...
virtual std::string toString() const
Produces a human readable representation of the package object.
PrimaryPackage()
Creates a new PrimaryPackage object.