c2pa-c
C++ API for c2pa-c library
Loading...
Searching...
No Matches
c2pa::CppIOStream Class Reference

IOStream Class wrapper for C2paStream. More...

#include <c2pa.hpp>

Inheritance diagram for c2pa::CppIOStream:
Collaboration diagram for c2pa::CppIOStream:

Public Member Functions

template<typename IOStream >
 CppIOStream (IOStream &iostream)
 
 ~CppIOStream ()
 

Public Attributes

C2paStream * c_stream
 

Detailed Description

IOStream Class wrapper for C2paStream.

This class is used to wrap an input/output stream for use with the C2PA library.

Constructor & Destructor Documentation

◆ CppIOStream()

template<typename IOStream >
c2pa::CppIOStream::CppIOStream ( IOStream &  iostream)
inline
162 {
163 static_assert(std::is_base_of<std::iostream, IOStream>::value, "Stream must be derived from std::iostream");
164 c_stream = c2pa_create_stream(reinterpret_cast<StreamContext *>(&iostream), reader, seeker, writer, flusher);
165 }
C2paStream * c_stream
Definition c2pa.hpp:160

◆ ~CppIOStream()

c2pa::CppIOStream::~CppIOStream ( )

Member Data Documentation

◆ c_stream

C2paStream* c2pa::CppIOStream::c_stream

The documentation for this class was generated from the following file: