Python: moar work on constructor bindings. Construction is now completly defered...
[fail.git] / abf / write-context.h
blobb3988a5d59ab61edaef00b357ddb03d9f62940d1
1 #ifndef AWFUL_ABF_WRITE_CONTEXT_H
2 #define AWFUL_ABF_WRITE_CONTEXT_H
4 // This tracks down things during writing, like which instance have already been saved and their ids.
6 #include "io/BufferedOutputStream.h"
7 #include <map>
9 namespace awful { namespace ABFImpl
11 template< class EndianessPolicy > struct WriteContext
13 typedef io::BufferedSeekableOutputStream< EndianessPolicy > stream_type;
14 WriteContext( stream_type& s ) : stream( s ) {}
16 stream_type& stream;
18 std::map< uint64_t, int > m_DigestMap;
22 #endif