本文整理汇总了C++中yarp::os::idl::WireWriter::writeString方法的典型用法代码示例。如果您正苦于以下问题:C++ WireWriter::writeString方法的具体用法?C++ WireWriter::writeString怎么用?C++ WireWriter::writeString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yarp::os::idl::WireWriter
的用法示例。
在下文中一共展示了WireWriter::writeString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: write
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: write
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: write
bool ClassScore::write(yarp::os::idl::WireWriter& writer) {
if (!writer.writeString(className)) return false;
if (!writer.writeDouble(score)) return false;
return !writer.isError();
}
示例4: nested_write_name
bool PointDLists::nested_write_name(const yarp::os::idl::WireWriter& writer) const {
if (!writer.writeString(name)) return false;
return true;
}