コード例 #1
0
ファイル: SurfaceMesh.cpp プロジェクト: xufango/contrib_bk
bool SurfaceMesh::write(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(meshName)) return false;
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(points.size()))) return false;
    std::vector<PointXYZ> ::iterator _iter21;
    for (_iter21 = points.begin(); _iter21 != points.end(); ++_iter21)
    {
      if (!writer.writeNested((*_iter21))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(rgbColour.size()))) return false;
    std::vector<RGBA> ::iterator _iter22;
    for (_iter22 = rgbColour.begin(); _iter22 != rgbColour.end(); ++_iter22)
    {
      if (!writer.writeNested((*_iter22))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(polygons.size()))) return false;
    std::vector<Polygon> ::iterator _iter23;
    for (_iter23 = polygons.begin(); _iter23 != polygons.end(); ++_iter23)
    {
      if (!writer.writeNested((*_iter23))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return !writer.isError();
}
コード例 #2
0
ファイル: PointDLists.cpp プロジェクト: AbuMussabRaja/yarp
bool PointDLists::write(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(name)) return false;
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(firstList.size()))) return false;
    std::vector<PointD> ::iterator _iter10;
    for (_iter10 = firstList.begin(); _iter10 != firstList.end(); ++_iter10)
    {
      if (!writer.writeNested((*_iter10))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(secondList.size()))) return false;
    std::vector<PointD> ::iterator _iter11;
    for (_iter11 = secondList.begin(); _iter11 != secondList.end(); ++_iter11)
    {
      if (!writer.writeNested((*_iter11))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return !writer.isError();
}
コード例 #3
0
ファイル: ClassScore.cpp プロジェクト: xufango/contrib_bk
bool ClassScore::write(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(className)) return false;
  if (!writer.writeDouble(score)) return false;
  return !writer.isError();
}
コード例 #4
0
bool wholeBodyDynamicsSettings::nested_write_imuFrameName(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(imuFrameName)) return false;
  return true;
}
コード例 #5
0
bool wholeBodyDynamicsSettings::write_fixedFrameName(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(fixedFrameName)) return false;
  return true;
}
コード例 #6
0
ファイル: PointDLists.cpp プロジェクト: ale-git/yarp
bool PointDLists::nested_write_name(const yarp::os::idl::WireWriter& writer) const {
  if (!writer.writeString(name)) return false;
  return true;
}