Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Manchester_Transmitter Manchester_Receiver ManchesterUART_Transmitter ManchesterUART_Receiver
ManchesterMsg Class Reference
ManchesterMsg class. More...
#include <ManchesterMsg.h>
Public Member Functions | |
ManchesterMsg (size_t max) | |
Creates empty message of specified capacity. | |
ManchesterMsg (const ManchesterMsg &msg) | |
Copy constructor. | |
size_t | maxLen (void) |
Returns message maximum length (capacity) | |
void | clear (void) |
Clears message content. | |
template<class T > | |
ManchesterMsg & | operator<< (const T val) |
Inserter operator: Appends data (value) to message. | |
ManchesterMsg & | operator<< (const char *str) |
Inserter operator: Appends array of char to message. | |
template<class T > | |
ManchesterMsg & | operator>> (T &val) |
Extractor operator: Extracts data (value) from message. | |
ManchesterMsg & | operator>> (char *str) |
Extractor operator: Extracts array of char from message. |
Detailed Description
ManchesterMsg class.
Definition at line 35 of file ManchesterMsg.h.
Constructor & Destructor Documentation
ManchesterMsg | ( | size_t | max ) |
Creates empty message of specified capacity.
Definition at line 45 of file ManchesterMsg.h.
ManchesterMsg | ( | const ManchesterMsg & | msg ) |
Copy constructor.
Definition at line 51 of file ManchesterMsg.h.
Member Function Documentation
void clear | ( | void | ) |
Clears message content.
Definition at line 59 of file ManchesterMsg.h.
size_t maxLen | ( | void | ) |
Returns message maximum length (capacity)
Definition at line 55 of file ManchesterMsg.h.
ManchesterMsg& operator<< | ( | const char * | str ) |
Inserter operator: Appends array of char to message.
Definition at line 80 of file ManchesterMsg.h.
ManchesterMsg& operator<< | ( | const T | val ) |
Inserter operator: Appends data (value) to message.
Definition at line 64 of file ManchesterMsg.h.
ManchesterMsg& operator>> | ( | char * | str ) |
Extractor operator: Extracts array of char from message.
Definition at line 116 of file ManchesterMsg.h.
ManchesterMsg& operator>> | ( | T & | val ) |
Extractor operator: Extracts data (value) from message.
Definition at line 99 of file ManchesterMsg.h.
Generated on Thu Jul 14 2022 05:00:10 by
