public:
- SGFile();
+ SGFile( const string& file );
~SGFile();
// open the file based on specified direction
bool close();
inline string get_file_name() const { return file_name; }
- inline void set_file_name( const string& fn ) { file_name = fn; }
};
public:
- SGSerial();
+ SGSerial( const string& device_name, const string& baud_rate );
~SGSerial();
// open the serial port based on specified direction
bool close();
inline string get_device() const { return device; }
- inline void set_device( const string& d ) { device = d; }
inline string get_baud() const { return baud; }
- inline void set_baud( const string& b ) { baud = b; }
};