本文整理汇总了C++中yarp::os::idl::WireWriter::writeListBegin方法的典型用法代码示例。如果您正苦于以下问题:C++ WireWriter::writeListBegin方法的具体用法?C++ WireWriter::writeListBegin怎么用?C++ WireWriter::writeListBegin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yarp::os::idl::WireWriter
的用法示例。
在下文中一共展示了WireWriter::writeListBegin方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: nested_write_SkinPatches
bool SensorRPCData::nested_write_SkinPatches(const yarp::os::idl::WireWriter& writer) const {
{
if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(SkinPatches.size()))) return false;
std::vector<SensorMetadata> ::const_iterator _iter119;
for (_iter119 = SkinPatches.begin(); _iter119 != SkinPatches.end(); ++_iter119)
{
if (!writer.writeNested((*_iter119))) return false;
}
if (!writer.writeListEnd()) return false;
}
return true;
}
示例3: nested_write_EncoderArrays
bool SensorRPCData::nested_write_EncoderArrays(const yarp::os::idl::WireWriter& writer) const {
{
if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(EncoderArrays.size()))) return false;
std::vector<SensorMetadata> ::const_iterator _iter117;
for (_iter117 = EncoderArrays.begin(); _iter117 != EncoderArrays.end(); ++_iter117)
{
if (!writer.writeNested((*_iter117))) return false;
}
if (!writer.writeListEnd()) return false;
}
return true;
}
示例4: write_ContactLoadCellArrays
bool SensorRPCData::write_ContactLoadCellArrays(const yarp::os::idl::WireWriter& writer) const {
{
if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(ContactLoadCellArrays.size()))) return false;
std::vector<SensorMetadata> ::const_iterator _iter114;
for (_iter114 = ContactLoadCellArrays.begin(); _iter114 != ContactLoadCellArrays.end(); ++_iter114)
{
if (!writer.writeNested((*_iter114))) return false;
}
if (!writer.writeListEnd()) return false;
}
return true;
}
示例5: nested_write_SixAxisForceTorqueSensors
bool SensorRPCData::nested_write_SixAxisForceTorqueSensors(const yarp::os::idl::WireWriter& writer) const {
{
if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(SixAxisForceTorqueSensors.size()))) return false;
std::vector<SensorMetadata> ::const_iterator _iter113;
for (_iter113 = SixAxisForceTorqueSensors.begin(); _iter113 != SixAxisForceTorqueSensors.end(); ++_iter113)
{
if (!writer.writeNested((*_iter113))) return false;
}
if (!writer.writeListEnd()) return false;
}
return true;
}
示例6: write_TemperatureSensors
bool SensorRPCData::write_TemperatureSensors(const yarp::os::idl::WireWriter& writer) const {
{
if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(TemperatureSensors.size()))) return false;
std::vector<SensorMetadata> ::const_iterator _iter110;
for (_iter110 = TemperatureSensors.begin(); _iter110 != TemperatureSensors.end(); ++_iter110)
{
if (!writer.writeNested((*_iter110))) return false;
}
if (!writer.writeListEnd()) return false;
}
return true;
}
示例7: nested_write_ThreeAxisMagnetometers
bool SensorRPCData::nested_write_ThreeAxisMagnetometers(const yarp::os::idl::WireWriter& writer) const {
{
if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(ThreeAxisMagnetometers.size()))) return false;
std::vector<SensorMetadata> ::const_iterator _iter107;
for (_iter107 = ThreeAxisMagnetometers.begin(); _iter107 != ThreeAxisMagnetometers.end(); ++_iter107)
{
if (!writer.writeNested((*_iter107))) return false;
}
if (!writer.writeListEnd()) return false;
}
return true;
}
示例8: nested_write_measurements
bool SensorMeasurements::nested_write_measurements(const yarp::os::idl::WireWriter& writer) const {
{
if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(measurements.size()))) return false;
std::vector<SensorMeasurement> ::const_iterator _iter11;
for (_iter11 = measurements.begin(); _iter11 != measurements.end(); ++_iter11)
{
if (!writer.writeNested((*_iter11))) return false;
}
if (!writer.writeListEnd()) return false;
}
return true;
}
示例9: nested_write_secondList
bool PointDLists::nested_write_secondList(const yarp::os::idl::WireWriter& writer) const {
{
if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(secondList.size()))) return false;
std::vector<PointD> ::const_iterator _iter23;
for (_iter23 = secondList.begin(); _iter23 != secondList.end(); ++_iter23)
{
if (!writer.writeNested((*_iter23))) return false;
}
if (!writer.writeListEnd()) return false;
}
return true;
}
示例10: 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();
}