OTest2
A C++ testing framework
Classes | Public Member Functions | List of all members
OTest2::Base64OStream Class Reference

Base64 output stream. More...

#include <base64ostream.h>

Inheritance diagram for OTest2::Base64OStream:
Inheritance graph
[legend]
Collaboration diagram for OTest2::Base64OStream:
Collaboration graph
[legend]

Classes

class  Buffer
 Base64 output stream buffer. More...
 

Public Member Functions

 Base64OStream (std::ostream *decorated_, int line_length_=0)
 Ctor. More...
 
virtual ~Base64OStream ()
 Dtor. More...
 
 Base64OStream (const Base64OStream &)=delete
 
Base64OStreamoperator= (const Base64OStream &)=delete
 
bool finish () noexcept
 Finish current sequence. More...
 

Detailed Description

Base64 output stream.

Definition at line 30 of file base64ostream.h.

Constructor & Destructor Documentation

◆ Base64OStream() [1/2]

OTest2::Base64OStream::Base64OStream ( std::ostream *  decorated_,
int  line_length_ = 0 
)
explicit

Ctor.

Parameters
decorated_A decorated output stream. The ownership is not taken.
line_length_Length of lines of output data. If the value is 0 the output is formatted into one continuous line. If the value positive, the output is formatted into lines of this length. The value must be divisible by 4!

Definition at line 179 of file base64ostream.cpp.

◆ ~Base64OStream()

OTest2::Base64OStream::~Base64OStream ( )
virtual

Dtor.

Definition at line 186 of file base64ostream.cpp.

◆ Base64OStream() [2/2]

OTest2::Base64OStream::Base64OStream ( const Base64OStream )
delete

Member Function Documentation

◆ finish()

bool OTest2::Base64OStream::finish ( )
noexcept

Finish current sequence.

The method finishes the sequence, inserts appropriate padding and flushes data into the decorated stream.

Returns
False if an error happens

Definition at line 190 of file base64ostream.cpp.

◆ operator=()

Base64OStream& OTest2::Base64OStream::operator= ( const Base64OStream )
delete

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