Function CStringHelper::assign_vector_string_to_sequence

Function Documentation

void CStringHelper::assign_vector_string_to_sequence(std::vector<std::string> cpp_string_vector, void *str_seq)

Assing to a rosidl_runtime_c__String__Sequence the value contained in a vector of std::string.

This function stores the data contained in a C++ vector of strings in a rosidl_runtime_c__String__Sequence variable size sequence pointed by the str_array parameter.

Parameters:
  • cpp_string_vector – C++ style vector of string containing data

  • str_seq – Pointer containing the destination of the string sequence