]> git.lyx.org Git - features.git/blobdiff - src/support/docstream.h
* docstream: factorize out some code and introduce odocfstream::reset()
[features.git] / src / support / docstream.h
index ed49a726cf0cd3da94bf02033df992d6374efa28..50fb82b7bc3974087acf19084db542036f8e6f56 100644 (file)
@@ -57,11 +57,14 @@ public:
 class odocfstream : public std::basic_ofstream<char_type> {
        typedef std::basic_ofstream<char_type> base;
 public:
-       odocfstream(std::string const & encoding = "UTF-8");
+       odocfstream();
+       odocfstream(std::string const & encoding);
        explicit odocfstream(const char* s,
                std::ios_base::openmode mode = std::ios_base::out|std::ios_base::trunc,
                std::string const & encoding = "UTF-8");
        ~odocfstream() {}
+       ///
+       void reset(std::string const & encoding);
 };
 
 /// UCS4 input stringstream