RIT VEXU Core API
Loading...
Searching...
No Matches
ResponsePacketVisitor Class Reference

#include <visitor.hpp>

Inheritance diagram for ResponsePacketVisitor:
VDP::Visitor

Public Member Functions

 ResponsePacketVisitor (VDP::PartPtr from_part)
 
void VisitRecord (VDP::Record *record) override
 
void VisitString (VDP::String *str) override
 
void VisitFloat (VDP::Float *float_part) override
 
void VisitDouble (VDP::Double *double_part) override
 
void VisitInt64 (VDP::Int64 *int64_part) override
 
void VisitInt32 (VDP::Int32 *int32_part) override
 
void VisitInt16 (VDP::Int16 *int16_part) override
 
void VisitInt8 (VDP::Int8 *int8_part) override
 
void VisitUint64 (VDP::Uint64 *Uint64_part) override
 
void VisitUint32 (VDP::Uint32 *Uint32_part) override
 
void VisitUint16 (VDP::Uint16 *Uint16_part) override
 
void VisitUint8 (VDP::Uint8 *Uint8_part) override
 

Detailed Description

Class for visiting parts from a response packet and modifying the parts we have in response to the packet essentially takes the response data and moves it into our data

Constructor & Destructor Documentation

◆ ResponsePacketVisitor()

ResponsePacketVisitor::ResponsePacketVisitor ( VDP::PartPtr from_part)

Class for visiting parts from a response packet and modifying the parts we have in response to the packet essentially takes the response data and moves it into our data

Parameters
from_partthe part with the data we want to merge with our data

Member Function Documentation

◆ VisitDouble()

void ResponsePacketVisitor::VisitDouble ( VDP::Double * double_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitFloat()

void ResponsePacketVisitor::VisitFloat ( VDP::Float * float_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitInt16()

void ResponsePacketVisitor::VisitInt16 ( VDP::Int16 * int16_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitInt32()

void ResponsePacketVisitor::VisitInt32 ( VDP::Int32 * int32_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitInt64()

void ResponsePacketVisitor::VisitInt64 ( VDP::Int64 * int64_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitInt8()

void ResponsePacketVisitor::VisitInt8 ( VDP::Int8 * int8_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitRecord()

void ResponsePacketVisitor::VisitRecord ( VDP::Record * record)
overridevirtual

essentially just calls the same visitor on all the parts inside the record

Implements VDP::Visitor.

◆ VisitString()

void ResponsePacketVisitor::VisitString ( VDP::String * str)
overridevirtual

Checks if the string has the value N/A, if it does skip it otherwise replace our data with the new string

Implements VDP::Visitor.

◆ VisitUint16()

void ResponsePacketVisitor::VisitUint16 ( VDP::Uint16 * Uint16_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitUint32()

void ResponsePacketVisitor::VisitUint32 ( VDP::Uint32 * Uint32_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitUint64()

void ResponsePacketVisitor::VisitUint64 ( VDP::Uint64 * Uint64_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.

◆ VisitUint8()

void ResponsePacketVisitor::VisitUint8 ( VDP::Uint8 * Uint8_part)
overridevirtual

checks if the value if the lowest possible number it can be, if it is skip it otherwise replace our datw with the new number

Implements VDP::Visitor.


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