libi2ncommon: (gerd) add get_filename functions to oftempstream
authorGerd v. Egidy <gerd.von.egidy@intra2net.com>
Wed, 21 May 2008 15:45:57 +0000 (15:45 +0000)
committerGerd v. Egidy <gerd.von.egidy@intra2net.com>
Wed, 21 May 2008 15:45:57 +0000 (15:45 +0000)
src/oftmpstream.cpp
src/oftmpstream.hxx

index d764185..66f3294 100644 (file)
@@ -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)
index 4954d7a..d2d005a 100644 (file)
@@ -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;