RIT VEXU Core API
Loading...
Searching...
No Matches
VDP::Part Class Referenceabstract

#include <protocol.hpp>

Inheritance diagram for VDP::Part:
VDP::Number< float, Type::Float > VDP::Number< double, Type::Double > VDP::Number< uint8_t, Type::Uint8 > VDP::Number< uint16_t, Type::Uint16 > VDP::Number< uint32_t, Type::Uint32 > VDP::Number< uint64_t, Type::Uint64 > VDP::Number< int8_t, Type::Int8 > VDP::Number< int16_t, Type::Int16 > VDP::Number< int32_t, Type::Int32 > VDP::Number< int64_t, Type::Int64 > VDP::Number< NumT, schemaType > VDP::Record VDP::String

Public Member Functions

 Part (std::string name)
 
std::string pretty_print () const
 
std::string pretty_print_data () const
 
virtual void read_data_from_message (PacketReader &reader)=0
 

Protected Member Functions

virtual void write_schema (PacketWriter &sofar) const =0
 
virtual void write_message (PacketWriter &sofar) const =0
 
virtual void pprint (std::stringstream &ss, size_t indent) const =0
 
virtual void pprint_data (std::stringstream &ss, size_t indent) const =0
 

Detailed Description

defines a Part, which has a name and contains data essentially defines data formatted so that it can be sent to the debug board

Constructor & Destructor Documentation

◆ Part()

VDP::Part::Part ( std::string name)

Creates a Part with a name a part is essentially data formatted so that it can be sent to the debug board

Parameters
namename for the Part

Member Function Documentation

◆ pprint()

◆ pprint_data()

◆ pretty_print()

std::string VDP::Part::pretty_print ( ) const
Returns
a string of the Part with the format "name: string"
a stringstream of the Part with the format "name: string"

◆ pretty_print_data()

std::string VDP::Part::pretty_print_data ( ) const
Returns
a string of the Part's data with the format "name: value"
a stringstream of the Part's data with the format "name: value"

◆ read_data_from_message()

◆ write_message()

◆ write_schema()


The documentation for this class was generated from the following files: