1 #ifndef MSP_DATAFILE_BINARYWRITER_H_
2 #define MSP_DATAFILE_BINARYWRITER_H_
5 #include "binarydict.h"
6 #include "writermode.h"
12 Writes data in binary format.
14 class BinaryWriter: public WriterMode
17 typedef std::map<DictEntry, unsigned> Dictionary;
18 typedef std::map<std::string, unsigned> StringMap;
26 BinaryWriter(IO::Base &o);
28 virtual void write(const Statement &st);
30 void write_(const Statement &st);
31 void collect_keywords(const Statement &st);
32 void write_int(long long n);
33 void write_string(const std::string &s);
34 void write_float(float f);
35 void write_enum(const std::string &e);
38 } // namespace DataFile