[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9722: add dump method.
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9722: add dump method. |
Date: |
Wed, 12 Nov 2008 18:16:57 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9722
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-11-12 18:16:57 -0700
message:
add dump method.
modified:
libnet/diskstream.cpp
libnet/diskstream.h
=== modified file 'libnet/diskstream.cpp'
--- a/libnet/diskstream.cpp 2008-11-12 17:11:20 +0000
+++ b/libnet/diskstream.cpp 2008-11-13 01:16:57 +0000
@@ -486,10 +486,16 @@
log_unimpl("%s", __PRETTY_FUNCTION__);
return true; // Default to true
}
+void
+DiskStream::dump(std::ostream& os) const
+{
+
+// GNASH_REPORT_FUNCTION;
+}
+
} // end of cygnal namespace
-
// local Variables:
// mode: C++
// indent-tabs-mode: t
=== modified file 'libnet/diskstream.h'
--- a/libnet/diskstream.h 2008-11-06 22:41:56 +0000
+++ b/libnet/diskstream.h 2008-11-13 01:16:57 +0000
@@ -180,11 +180,17 @@
/// @return A value that is the size of the file in bytes.
size_t getFileSize() { return _filesize; };
+ /// \brief Dump the internal data of this class in a human readable form.
+ /// @remarks This should only be used for debugging purposes.
+ void dump() const { dump(std::cerr); }
+ /// \overload dump(std::ostream& os) const
+ void dump(std::ostream& os) const;
+
private:
/// \var DiskStream::_state
/// The current status of the stream while streaming.
state_e _state;
- int _bytes;
+ int _bytes; // FIXME: is this a dup ?
/// \var DiskStream::_filefd
/// The file descriptor of the disk file.
@@ -226,7 +232,14 @@
gnash::CQue _que;
};
-
+
+/// \brief Dump to the specified output stream.
+inline std::ostream& operator << (std::ostream& os, const DiskStream& cache)
+{
+ cache.dump(os);
+ return os;
+}
+
} // end of cygnal namespace
#endif // __DISKSTREAM_H__
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9722: add dump method.,
rob <=