75 while (property_element) {
76 string property_str = property_element->
GetDataLine();
79 cerr <<
fgred <<
highint << endl <<
" No property by the name "
80 << property_str <<
" can be found." <<
reset << endl;
98 if (
data.size() > 0) {
100 vector<string> tokens;
101 stringstream ss(
data);
103 while (getline(ss, temp,
',')) {
104 tokens.push_back(temp);
107 vector<double> values;
109 for (
unsigned int i=0;
i<tokens.size();
i++) {
110 values.push_back(
atof(tokens[
i].c_str()) );
121 cerr << endl <<
"Mismatch between UDP input property and value counts." << endl;
125 for (
unsigned int i=1;
i<values.size();
i++) {
std::string GetDataLine(unsigned int i=0)
Gets a line of data belonging to an element.
std::string GetAttributeValue(const std::string &key)
Retrieves an attribute.
Element * FindElement(const std::string &el="")
Searches for a specified element.
Element * FindNextElement(const std::string &el="")
Searches for the next element as specified.
static char highint[5]
highlights text
static char reset[5]
resets text properties
static char fgred[6]
red text
FGPropertyManager * PropertyManager
void SetRate(unsigned int tt)
Set the ouput rate for the model in frames.
Class wrapper for property handling.
static double atof(const string &str)
static int atoi(const string &str)