Go to the documentation of this file.
24 #ifndef ROS_INTROSPECTION_FieldTreeLeaf_H
25 #define ROS_INTROSPECTION_FieldTreeLeaf_H
36 const char DIGITS[] =
"00010203040506070809"
37 "10111213141516171819"
38 "20212223242526272829"
39 "30313233343536373839"
40 "40414243444546474849"
41 "50515253545556575859"
42 "60616263646566676869"
43 "70717273747576777879"
44 "80818283848586878889"
45 "90919293949596979899";
48 buffer[0] =
static_cast<char>(
'0' + value);
54 buffer[0] = DIGITS[value];
55 buffer[1] = DIGITS[value + 1];
60 return sprintf(buffer,
"%d", value);
101 void toStr(std::string& destination)
const;
const FieldTreeNode * node
void toStr(std::string &destination) const
Utility functions to print the entire branch.
SmallVector< uint16_t, 4 > index_array
SmallVector< const ROSField *, 8 > fields
SmallVector< uint16_t, 4 > index_array
std::string toStdString() const
std::ostream & operator<<(std::ostream &os, const BuiltinType &c)
int print_number(char *buffer, uint16_t value)
auto sprintf(const S &fmt, const T &... args) -> std::basic_string< Char >
The FieldTreeLeaf is, as the name suggests, a leaf (terminal node) of a StringTree....
Element of the tree. it has a single parent and N >= 0 children.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:47