Class PrimaryParser

Inheritance Relationships

Base Type

Class Documentation

class PrimaryParser : public urcl::comm::Parser<PrimaryPackage>

The primary specific parser. Interprets a given byte stream as serialized primary packages and parses it accordingly.

Public Functions

PrimaryParser() = default
virtual ~PrimaryParser() = default
inline bool parse(comm::BinParser &bp, std::vector<std::unique_ptr<PrimaryPackage>> &results)

Uses the given BinParser to create package objects from the contained serialization.

Parameters:
  • bp – A BinParser holding one or more serialized primary packages

  • results – A vector of pointers to created primary package objects

Returns:

True, if the byte stream could successfully be parsed as primary packages, false otherwise