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: b6d2a8352257adc908500a5064232d969e40d6f1 (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(); }
};