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"
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
) {}
18 std::map
< uint64_t, int > m_DigestMap
;