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

Ostream Class wrapper for C2paStream. More...

#include <c2pa.hpp>

Inheritance diagram for c2pa::CppOStream:
Collaboration diagram for c2pa::CppOStream:

Public Member Functions

template<typename OStream >
 CppOStream (OStream &ostream)
 
 ~CppOStream ()
 

Public Attributes

C2paStream * c_stream
 

Detailed Description

Ostream Class wrapper for C2paStream.

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

Constructor & Destructor Documentation

◆ CppOStream()

template<typename OStream >
c2pa::CppOStream::CppOStream ( OStream &  ostream)
inlineexplicit
141 {
142 static_assert(std::is_base_of<std::ostream, OStream>::value, "Stream must be derived from std::ostream");
143 c_stream = c2pa_create_stream(reinterpret_cast<StreamContext *>(&ostream), reader, seeker, writer, flusher);
144 }
C2paStream * c_stream
Definition c2pa.hpp:139

◆ ~CppOStream()

c2pa::CppOStream::~CppOStream ( )

Member Data Documentation

◆ c_stream

C2paStream* c2pa::CppOStream::c_stream

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