diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/output.cc | 2 | ||||
-rw-r--r-- | src/base/output.hh | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/base/output.cc b/src/base/output.cc index ee2e196ed..c0ddd0fae 100644 --- a/src/base/output.cc +++ b/src/base/output.cc @@ -145,7 +145,7 @@ OutputDirectory::directory() const return dir; } -inline string +string OutputDirectory::resolve(const string &name) const { return (name[0] != PATH_SEPARATOR) ? dir + name : name; diff --git a/src/base/output.hh b/src/base/output.hh index 68d9daf85..ef628882d 100644 --- a/src/base/output.hh +++ b/src/base/output.hh @@ -52,16 +52,6 @@ class OutputDirectory /** System-specific path separator character */ static const char PATH_SEPARATOR = '/'; - /** - * Returns relative file names prepended with name of this directory. - * Returns absolute file names unaltered. - * - * @param name file name to prepend with directory name - * @return file name prepended with base directory name or unaltered - * absolute file name - */ - std::string resolve(const std::string &name) const; - protected: /** * Determines whether given file name corresponds to standard output @@ -80,6 +70,16 @@ class OutputDirectory /** Destructor. */ ~OutputDirectory(); + /** + * Returns relative file names prepended with name of this directory. + * Returns absolute file names unaltered. + * + * @param name file name to prepend with directory name + * @return file name prepended with base directory name or unaltered + * absolute file name + */ + std::string resolve(const std::string &name) const; + /** Opens a file (optionally compressed). * * Will open a file as a compressed stream if filename ends in .gz. |