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

Base64 output stream buffer. More...

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

Public Member Functions

 Buffer (std::ostream *decorated_, int width_)
 Ctor. More...
 
virtual ~Buffer ()
 Dtor. More...
 
 Buffer (const Buffer &)=delete
 
Bufferoperator= (const Buffer &)=delete
 
bool finish () noexcept
 Finish currently opened sequence. More...
 

Detailed Description

Base64 output stream buffer.

Definition at line 33 of file base64ostream.cpp.

Constructor & Destructor Documentation

◆ Buffer() [1/2]

OTest2::Base64OStream::Buffer::Buffer ( std::ostream *  decorated_,
int  width_ 
)
explicit

Ctor.

Parameters
decorated_The decorated stream. The ownership is not taken, the object must exist for the whole lifetime.
width_If this value is non-zero and positive, the output is formatted into lines of this width. The value must divisible by 4. If the value is zero, the output will be one continuous line.

Definition at line 86 of file base64ostream.cpp.

◆ ~Buffer()

OTest2::Base64OStream::Buffer::~Buffer ( )
virtual

Dtor.

Definition at line 109 of file base64ostream.cpp.

◆ Buffer() [2/2]

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

Member Function Documentation

◆ finish()

bool OTest2::Base64OStream::Buffer::finish ( )
noexcept

Finish currently opened sequence.

This method finishes currently opened sequence, flushes it into the decorated stream buffer and adds appropriate base64 padding.

Returns
false if an error happens

Definition at line 174 of file base64ostream.cpp.

◆ operator=()

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

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