proj home

Files   Classes   Functions   Hierarchy  

gobjGlobal Class Reference

Switch global graphics stream. Uses stack unwinding with named variable to release the resource. More...

#include <gobjbase.h>

Collaboration diagram for gobjGlobal:

List of all members.

Public Member Functions

 gobjGlobal (gobjContainer *const globalnew_)
 Push the new global graphics stream.
 ~gobjGlobal ()
 Pop and return gobj::global to its previous state.


Detailed Description

Switch global graphics stream. Uses stack unwinding with named variable to release the resource.

Example
  gobjContainer x; ...
  gobjGlobal g(&x);
  ...
  //Resource released when g out of scope.

Definition at line 75 of file gobjbase.h.


Constructor & Destructor Documentation

gobjGlobal::gobjGlobal ( gobjContainer *const   globalnew_  ) 

Push the new global graphics stream.

Definition at line 155 of file gobj.cpp.

References gobjContainer::globalpush().

00156   : globalnew(globalnew_)
00157 {
00158   assert(globalnew);
00159   globalnew->globalpush();
00160 }

gobjGlobal::~gobjGlobal (  ) 

Pop and return gobj::global to its previous state.

Definition at line 162 of file gobj.cpp.

References gobjContainer::globalpop().

00163 {
00164   globalnew->globalpop();
00165 }


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

Generated on Fri Mar 4 00:49:59 2011 for Chelton Evans Source by  doxygen 1.5.8