RTI Connext Modern C++ API
Version 6.0.0
|
Builds a string. More...
#include <SequenceBuilders.hpp>
Public Member Functions | |
StringBuilder & | set_string (const char *value) |
Sets the string value. | |
Offset | finish () |
Finishes building the string. | |
![]() | |
PrimitiveSequenceBuilder & | add_next (charvalue) |
Adds the next element. | |
PrimitiveSequenceBuilder & | add_n (const char *array, unsigned int count) |
Adds all the elements in an array. | |
PrimitiveSequenceBuilder & | add_n (unsigned int count, charvalue=char()) |
Adds a number of elements with the same value. | |
Offset | finish () |
Finishes building the sequence. | |
Additional Inherited Members | |
![]() | |
unsigned int | element_count () const |
Returns the current number of elements that have been added. | |
Builds a string.
A StringBuilder only provides one method, set_string(), so it can be typically used as follows:
Note that by relying on the builder destructor, there is no need to call finish() on the object returned by build_my_string().
|
inline |
Sets the string value.