20 #ifndef BinaryFormatter_h
21 #define BinaryFormatter_h
130 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
131 const std::string& attrs =
"",
132 const std::string& comment =
"");
143 template <
typename E>
157 void openTag(std::ostream& into,
const std::string& xmlElement);
185 void writeAttr(std::ostream& into,
const std::string& attr,
const std::string& val);
194 template <
typename dummy,
typename T>
198 template <
typename dummy>
199 static void writeAttr(dummy& into,
const SumoXMLAttr attr,
const std::vector<const ROEdge*>& val);
200 template <
typename dummy>
201 static void writeAttr(dummy& into,
const SumoXMLAttr attr,
const std::vector<const MSEdge*>& val);
223 static void writeStringList(std::ostream& into,
const std::vector<std::string>& list);
242 template <
typename E>
254 const unsigned int numEdges = (
const unsigned int)E::dictSize();
257 for (
unsigned int i = 0; i < numEdges; i++) {
263 for (
unsigned int i = 0; i < numEdges; i++) {
264 E* e = E::dictionary(i);
267 for (
unsigned int j = 0; j < e->getNoFollowing(); j++) {
279 template <
typename dummy,
typename T>
300 template <
typename dummy>
307 template <
typename dummy>