C++ class to handle serial communication (RS232)