52 std::ostringstream oss;
53 oss.setf(std::ios::fixed , std::ios::floatfield);
54 oss << std::setprecision(accuracy);
127 template <
typename V>
130 std::ostringstream oss;
131 for (
typename std::vector<V*>::const_iterator it = v.begin(); it != v.end(); ++it) {
132 if (it != v.begin()) {
135 oss << (*it)->getID();
141 template <
typename T,
typename T_BETWEEN>
143 std::ostringstream oss;
144 bool connect =
false;
145 for (
typename std::vector<T>::const_iterator it = v.begin(); it != v.end(); ++it) {
158 inline std::string
toString(
const std::vector<int>& v, std::streamsize accuracy) {
164 inline std::string
toString(
const std::vector<SUMOReal>& v, std::streamsize accuracy) {
169 template <
typename T,
typename T_BETWEEN>
171 std::ostringstream oss;
172 bool connect =
false;
173 for (
typename std::set<T>::const_iterator it = s.begin(); it != s.end(); ++it) {
185 inline std::string
toString(
const std::set<std::string>& v, std::streamsize) {
189 template <
typename KEY,
typename VAL,
typename T_BETWEEN,
typename T_BETWEEN_KEYVAL>
190 inline std::string
joinToString(
const std::map<KEY, VAL>& s,
const T_BETWEEN& between,
const T_BETWEEN_KEYVAL& between_keyval, std::streamsize accuracy =
OUTPUT_ACCURACY) {
191 std::ostringstream oss;
192 bool connect =
false;
193 for (
typename std::map<KEY, VAL>::const_iterator it = s.begin(); it != s.end(); ++it) {
199 oss <<
toString(it->first, accuracy) << between_keyval <<
toString(it->second, accuracy);
205 inline std::string
toString(
const std::map<std::string, std::string>& v, std::streamsize) {