Welcome to mirror list, hosted at ThFree Co, Russian Federation.

file_writer_stream.hpp « coding - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d6861a54759d29f5799b0594982a0a4a9f82038d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "coding/streams.hpp"
#include "coding/file_writer.hpp"

class FileWriterStream : public stream::WriterStream<FileWriter>
{
  typedef stream::WriterStream<FileWriter> base_type;

  FileWriter m_file;

public:
  FileWriterStream(string const & fName)
    : base_type(m_file), m_file(fName) {}

  using base_type::operator <<;

  int64_t Pos() const { return m_file.Pos(); }
};