#include "Serial.hpp"\r
\r
-Serial::Serial(char *)\r
+Serial::Serial(const char *)\r
:_connected(false)\r
{\r
}\r
{\r
public:\r
//Initialize Serial communication with the given COM port\r
- Serial(char *portName);\r
+ Serial(const char *portName);\r
\r
//Close the connection\r
//NOTA: for some reason you can't connect again before exiting\r
#include <windows.h>
#endif
\r
-SerialWindows::SerialWindows(char *portName)\r
+SerialWindows::SerialWindows(const char *portName)\r
:Serial(portName)\r
{\r
//Try to connect to the given port throuh CreateFile\r
{\r
public:\r
//Initialize Serial communication with the given COM port\r
- SerialWindows(char *portName);\r
+ SerialWindows(const char *portName);\r
//Close the connection\r
//NOTA: for some reason you can't connect again before exiting\r
//the program and running it again\r
\r
#include <stdexcept>\r
\r
-TactonPlayer::TactonPlayer(char *port)\r
+TactonPlayer::TactonPlayer(const char *port)\r
:_comport(new SerialWindows(port))\r
{\r
}\r
class TactonPlayer\r
{\r
public:\r
- __declspec(dllexport) TactonPlayer(char *port = "COM5");\r
+ __declspec(dllexport) TactonPlayer(const char *port = "COM5");\r
__declspec(dllexport) ~TactonPlayer();\r
\r
//set the timestamp to 0, and watch for scheduled tactons\r