summaryrefslogtreecommitdiff
path: root/include/FLAC++
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2004-07-22 01:03:43 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2004-07-22 01:03:43 +0000
commitd113ca3d2fe86b13c6e9a6e03792e00eab194346 (patch)
tree5cd3b4b2261d91954ec0ed2f4258a62f5b9ef10c /include/FLAC++
parente84102694a8f37ccba1a68a23f48ec565ed0cac0 (diff)
downloadflac-d113ca3d2fe86b13c6e9a6e03792e00eab194346.tar.gz
add an accessor method for the underlying ::FLAC__StreamMetadata object
Diffstat (limited to 'include/FLAC++')
-rw-r--r--include/FLAC++/metadata.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/FLAC++/metadata.h b/include/FLAC++/metadata.h
index 500b5b16..08b15b0e 100644
--- a/include/FLAC++/metadata.h
+++ b/include/FLAC++/metadata.h
@@ -197,6 +197,15 @@ namespace FLAC {
* \code is_valid() \endcode
*/
void set_is_last(bool);
+
+ /** Returns a pointer to the underlying ::FLAC__StreamMetadata
+ * object. This can be useful for plugging any holes between
+ * the C++ and C interfaces.
+ *
+ * \assert
+ * \code is_valid() \endcode
+ */
+ inline operator const ::FLAC__StreamMetadata *() const;
private:
/** Private and undefined so you can't use it. */
Prototype();
@@ -227,6 +236,9 @@ namespace FLAC {
inline bool Prototype::is_valid() const
{ return 0 != object_; }
+ inline Prototype::operator const ::FLAC__StreamMetadata *() const
+ { return object_; }
+
/** Create a deep copy of an object and return it. */
FLACPP_API Prototype *clone(const Prototype *);