コード例 #1
0
ファイル: deviceparser.cpp プロジェクト: bilgili/FlowVR
string DeviceParser::getSensorChild(string tagname)
{
  DOMNode * temp = node;
  if (tagname.compare("position") == 0)
  {
    temp = temp->FirstChildElement(tagname);
    return getAttribute(temp, "type");
  }
  if (tagname.compare("velocity") == 0)
  {
    temp = temp->FirstChildElement(tagname);
    return getAttribute(temp, "type");
  }
  if (tagname.compare("acceleration") == 0)
  {
    temp = temp->FirstChildElement(tagname);
    return getAttribute(temp, "type");
  }
  if (tagname.compare("unit2sensor") == 0)
  {
    temp = temp->FirstChildElement(tagname);
    return getAttribute(temp, "type");
  }
  else
    return "";
}