20 #ifndef BinaryFormatter_h
21 #define BinaryFormatter_h
129 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
130 const std::string xmlParams =
"",
131 const std::string& attrs =
"",
132 const std::string& comment =
"");
143 template <
typename E>
157 void openTag(std::ostream& into,
const std::string& xmlElement);
186 bool closeTag(std::ostream& into,
bool abbreviated =
false);
195 void writeAttr(std::ostream& into,
const std::string& attr,
const std::string& val);
204 template <
typename T,
typename S>
304 template <
typename S>
327 static void writeStringList(std::ostream& into,
const std::vector<std::string>& list);
346 template <
typename E>
358 const unsigned int numEdges = (
const unsigned int)E::dictSize();
361 for (
unsigned int i = 0; i < numEdges; i++) {
367 for (
unsigned int i = 0; i < numEdges; i++) {
368 E* e = E::dictionary(i);
371 for (
unsigned int j = 0; j < e->getNoFollowing(); j++) {
383 template <
typename T,
typename S>
390 template <
typename S>