#include <simgear/compiler.h>
-#include STL_STRING
+#include <string>
#include "protocol.hxx"
-SG_USING_STD(string);
+using std::string;
class FGGeneric : public FGProtocol {
// close the channel
bool close();
+ void setExitOnError(bool val) { exitOnError = val; }
+ bool getExitOnError() { return exitOnError; }
protected:
enum e_type { FG_BOOL=0, FG_INT, FG_DOUBLE, FG_STRING };
e_type type;
double offset;
double factor;
- SGPropertyNode *prop;
+ SGPropertyNode_ptr prop;
} _serial_prot;
private:
int length;
char buf[ FG_MAX_MSG_SIZE ];
+ string preamble;
+ string postamble;
string var_separator;
string line_separator;
string var_sep_string;
int binary_footer_value;
void read_config(SGPropertyNode *root, vector<_serial_prot> &msg);
-
+ bool exitOnError;
};