RIT VEXU Core API
|
#include <protocol.hpp>
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 |
defines a Part, which has a name and contains data essentially defines data formatted so that it can be sent to the debug board
VDP::Part::Part | ( | std::string | name | ) |
|
protectedpure virtual |
changes a stringstream to a specified format, meant to be overrided
ss | the stream of strings to change |
indent | the amount of double spaced indents to add to the string |
Implemented in VDP::Number< NumT, schemaType >, VDP::Number< double, Type::Double >, VDP::Number< double, Type::Double >, VDP::Number< float, Type::Float >, VDP::Number< float, Type::Float >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint8_t, Type::Uint8 >, VDP::Number< uint8_t, Type::Uint8 >, and VDP::String.
|
protectedpure virtual |
changes a stringstream to the contain the Part's data in a specified format, meant to be overrided
ss | the stream of strings to change |
indent | the amount of double spaced indents to add to the string |
Implemented in VDP::Number< NumT, schemaType >, VDP::Number< double, Type::Double >, VDP::Number< double, Type::Double >, VDP::Number< float, Type::Float >, VDP::Number< float, Type::Float >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint8_t, Type::Uint8 >, VDP::Number< uint8_t, Type::Uint8 >, and VDP::String.
std::string VDP::Part::pretty_print | ( | ) | const |
std::string VDP::Part::pretty_print_data | ( | ) | const |
|
pure virtual |
sets the data the part contains to the data from a packet, meant to be overrided
reader | the PacketReader to read data from |
Implemented in VDP::Number< NumT, schemaType >, VDP::Number< double, Type::Double >, VDP::Number< double, Type::Double >, VDP::Number< float, Type::Float >, VDP::Number< float, Type::Float >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint8_t, Type::Uint8 >, VDP::Number< uint8_t, Type::Uint8 >, VDP::Record, and VDP::String.
|
protectedpure virtual |
writes the value of the Part to a packet so that it can be sent to the debug board
sofar | the packet writer to write with |
Implemented in VDP::Number< NumT, schemaType >, VDP::Number< double, Type::Double >, VDP::Number< double, Type::Double >, VDP::Number< float, Type::Float >, VDP::Number< float, Type::Float >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint8_t, Type::Uint8 >, VDP::Number< uint8_t, Type::Uint8 >, VDP::Record, and VDP::String.
|
protectedpure virtual |
writes the Part schematic to a packet so that it can be sent to the debug board, meant to be overrided
sofar | the packet writer to write with |
Implemented in VDP::Number< NumT, schemaType >, VDP::Number< double, Type::Double >, VDP::Number< double, Type::Double >, VDP::Number< float, Type::Float >, VDP::Number< float, Type::Float >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int16_t, Type::Int16 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int32_t, Type::Int32 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int64_t, Type::Int64 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< int8_t, Type::Int8 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint16_t, Type::Uint16 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint32_t, Type::Uint32 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint64_t, Type::Uint64 >, VDP::Number< uint8_t, Type::Uint8 >, VDP::Number< uint8_t, Type::Uint8 >, VDP::Record, and VDP::String.