All pastes #382434 Raw Edit

Untitled

public cpp v1 · immutable
·published 2007-03-05 17:23 UTC
rendered paste body
#ifndef MESSAGE_H#define MESSAGE_H/* ABC that provides infrastructure for concrete Messages to be sent * to a UsbPort. */#include <string>#include <vector>#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<unsigned char> extras;  /// Non-essential message parameters.  const static char flag = '@';  //map  unsigned char my_string [80];  const static char terminator = '*';};#endif