X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarywriter.h;h=6ad290451b4502c3566a68668a476a40c7595b82;hb=6f94aaece716a31e75166e261cc47579288892b4;hp=c3a2b4c96d082b8ef42a642bc2866352a2307750;hpb=d84673be1c2fe8bd32ddaa7877529855cad6daa0;p=libs%2Fdatafile.git diff --git a/source/binarywriter.h b/source/binarywriter.h index c3a2b4c..6ad2904 100644 --- a/source/binarywriter.h +++ b/source/binarywriter.h @@ -1,15 +1,9 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2006 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_DATAFILE_BINARYWRITER_H_ #define MSP_DATAFILE_BINARYWRITER_H_ #include #include "binarydict.h" +#include "type.h" #include "writermode.h" namespace Msp { @@ -31,15 +25,15 @@ private: public: BinaryWriter(IO::Base &o); - void write(const Statement &st); + + virtual void write(const Statement &st); private: void write_(const Statement &st); - DictEntry create_entry(const Statement &st); void collect_keywords(const Statement &st); void write_int(long long n); void write_string(const std::string &s); void write_float(float f); - void write_enum(const std::string &e); + void write_symbol(const Symbol &s); }; } // namespace DataFile