Zoltan Hudak / ManchesterMsg

Dependents:   Manchester_Transmitter Manchester_Receiver ManchesterUART_Transmitter ManchesterUART_Receiver

Embed: (wiki syntax)

« Back to documentation index

ManchesterMsg Class Reference

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 >
ManchesterMsgoperator<< (const T val)
 Inserter operator: Appends data (value) to message.
ManchesterMsgoperator<< (const char *str)
 Inserter operator: Appends array of char to message.
template<class T >
ManchesterMsgoperator>> (T &val)
 Extractor operator: Extracts data (value) from message.
ManchesterMsgoperator>> (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.