22 #ifndef BinaryFormatter_h
23 #define BinaryFormatter_h
132 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
133 const std::string& attrs =
"",
134 const std::string& comment =
"");
145 template <
typename E>
159 void openTag(std::ostream& into,
const std::string& xmlElement);
187 template <
typename dummy,
typename T>
197 template <
typename dummy,
typename T>
198 static void writeAttr(dummy& into,
const std::string& attr,
const T& val);
214 template <
typename dummy>
215 static void writeAttr(dummy& into,
const SumoXMLAttr attr,
const std::vector<const ROEdge*>& val);
216 template <
typename dummy>
217 static void writeAttr(dummy& into,
const SumoXMLAttr attr,
const std::vector<const MSEdge*>& val);
239 static void writeStringList(std::ostream& into,
const std::vector<std::string>& list);
258 template <
typename E>
270 const unsigned int numEdges = (
const unsigned int)E::dictSize();
273 for (
unsigned int i = 0; i < numEdges; i++) {
279 for (
unsigned int i = 0; i < numEdges; i++) {
280 E* e = E::dictionary(i);
283 for (
unsigned int j = 0; j < e->getNoFollowing(); j++) {
295 template <
typename dummy,
typename T>
302 template <
typename dummy,
typename T>
323 template <
typename dummy>
330 template <
typename dummy>