From dcdae4465154b09465eb4ec9e5e2d9d814c79206 Mon Sep 17 00:00:00 2001 From: Gerd v. Egidy Date: Wed, 21 May 2008 15:45:57 +0000 Subject: [PATCH] libi2ncommon: (gerd) add get_filename functions to oftempstream --- src/oftmpstream.cpp | 10 ++++++++++ src/oftmpstream.hxx | 2 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/oftmpstream.cpp b/src/oftmpstream.cpp index d764185..66f3294 100644 --- a/src/oftmpstream.cpp +++ b/src/oftmpstream.cpp @@ -52,6 +52,16 @@ oftmpstream::~oftmpstream () { close(); } +std::string oftmpstream::get_filename() +{ + return realname; +} + +std::string oftmpstream::get_tmp_filename() +{ + return tmpname; +} + void oftmpstream::open (const string &name) { if (is_open) diff --git a/src/oftmpstream.hxx b/src/oftmpstream.hxx index 4954d7a..d2d005a 100644 --- a/src/oftmpstream.hxx +++ b/src/oftmpstream.hxx @@ -24,6 +24,8 @@ public: ~oftmpstream (); void open (const std::string &name); void close(); + std::string get_filename(); + std::string get_tmp_filename(); private: int fd; fdoutbuf buf; -- 1.7.1