summaryrefslogtreecommitdiff
path: root/src/base/output.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/output.hh')
-rw-r--r--src/base/output.hh12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/base/output.hh b/src/base/output.hh
index 5de0c4005..38c63714c 100644
--- a/src/base/output.hh
+++ b/src/base/output.hh
@@ -31,7 +31,7 @@
#ifndef __BASE_OUTPUT_HH__
#define __BASE_OUTPUT_HH__
-#include <iosfwd>
+#include <ios>
#include <map>
#include <string>
@@ -43,14 +43,20 @@ class OutputDirectory
map_t files;
std::string dir;
+ std::string resolve(const std::string &name) const;
+
+ protected:
+ std::ostream *checkForStdio(const std::string &name) const;
+ std::ostream *openFile(const std::string &filename,
+ std::ios_base::openmode mode = std::ios::trunc) const;
+
public:
OutputDirectory();
~OutputDirectory();
void setDirectory(const std::string &dir);
- const std::string &directory();
+ const std::string &directory() const;
- std::string resolve(const std::string &name);
std::ostream *create(const std::string &name, bool binary = false);
std::ostream *find(const std::string &name);