libcommonc++  0.7
DataEncoder::ScopedContext Class Reference

A lexically scoped DataEncoder context. More...

#include <DataEncoder.h++>

Public Member Functions

 ScopedContext (DataEncoder &encoder)
 Construct a new ScopedContext for the given DataEncoder. More...
 
 ~ScopedContext ()
 Destructor. More...
 

Detailed Description

A lexically scoped DataEncoder context.

ScopedContext pushes a new DataEncoder context in its constructor and pops it in its destructor.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ScopedContext()

ScopedContext ( DataEncoder encoder)
inline

Construct a new ScopedContext for the given DataEncoder.

Immediately pushes a new context on the encoder.

◆ ~ScopedContext()

~ScopedContext ( )
inline

Destructor.

Pops the context off the encoder.


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