LogState Class Reference

Put this sucker on the stack to save your state. More...

#include <slogcxx.h>

List of all members.

Public Member Functions

 LogState (Slog *logInstance, const std::string &scope, int msgLvl=-1)
std::string pop ()
 LogState (Slog *logInstance, const std::string &scope, int msgLvl=-1)
 Create a log instance with a given scope name and optional msg level.
std::string pop ()
 Request pop. Only pop if !popped.
 ~LogState ()
 Make sure that the scope has been popped.

Private Attributes

Sloglog
bool popped
 Cache early pop request.
Sloglog
 Handle for the associated log to allow popping.


Detailed Description

Put this sucker on the stack to save your state.

FIX: write an example of how this is done


Constructor & Destructor Documentation

LogState::LogState Slog logInstance,
const std::string &  scope,
int  msgLvl = -1
 

Create a log instance with a given scope name and optional msg level.

Do not delete the log until after this state has cleared!


Member Function Documentation

std::string LogState::pop  ) 
 

Request pop. Only pop if !popped.

Returns:
the popped scope name


The documentation for this class was generated from the following files:
Generated on Tue Aug 15 10:09:38 2006 by  doxygen 1.4.6