|
TinyRobotics
|
This class defines an interface for serializable objects that can be converted to and from a string representation. It provides two pure virtual methods: toString() for converting the object to a string, and fromString() for populating the object from a string input. This interface can be implemented by any class that needs to support serialization and deserialization, allowing for easy storage, transmission, or logging of object state in a human-readable. More...
#include <Serializable.h>

Public Member Functions | |
| virtual std::string | toString () const =0 |
| const char * | toCString () const |
| virtual bool | fromString (const std::string &in)=0 |
| virtual bool | fromString (const char *in) |
| size_t | writeTo (Print &out) const |
| size_t | readFrom (Stream &in) |
This class defines an interface for serializable objects that can be converted to and from a string representation. It provides two pure virtual methods: toString() for converting the object to a string, and fromString() for populating the object from a string input. This interface can be implemented by any class that needs to support serialization and deserialization, allowing for easy storage, transmission, or logging of object state in a human-readable.
|
pure virtual |
Implemented in Coordinate< T >, Coordinate< T >, Coordinate< DistanceM >, and Coordinate< float >.
|
pure virtual |
Implemented in Coordinate< T >, Coordinate< T >, Coordinate< DistanceM >, and Coordinate< float >.