#ifndef MESSAGE_H #define MESSAGE_H /* ABC that provides infrastructure for concrete Messages to be sent * to a UsbPort. */ #include #include #include "usb_port.h" using namespace std; class Message { public: void construct(); // FIXME send should return a response? void send(UsbPort& usbport); private: int code; /// The actual code transmitted, from usbio.h. string command; vector extras; /// Non-essential message parameters. const static char flag = '@'; //map unsigned char my_string [80]; const static char terminator = '*'; }; #endif