User Manual, Developers Guide and API Documentation

wns::Assure Class Reference

Pseudo class grouping the assure functionality. More...

#include <Assure.hpp>

Collaboration diagram for wns::Assure:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

template<typename TYPE>
static void expression (const std::string &expression, const std::string &fileName, int line, const std::string &functionName, const std::string &reason)
 Used by assure(bool anExpression, string reason).

Static Public Attributes

static bool useSIGTRAP = false
 If enabled, cerr and SIGTRAP will be used instead of throwing an error.

Classes

class  Exception
 Thrown by assure. More...


Detailed Description

For internal use only.

This is not a namespace to not clutter the top level namespace with it.

Definition at line 206 of file Assure.hpp.


Member Function Documentation

template<typename TYPE>
static void wns::Assure::expression ( const std::string &  expression,
const std::string &  fileName,
int  line,
const std::string &  functionName,
const std::string &  reason 
) [inline, static]

Author:
Marc Schinnenburg <marc@schinnenburg.com>

Swen Kuehnlein

Exceptions:
wns::Assure::Exception Indicates a failed assertion. This is more verbose than assert() as you can provide any information you like as message why the assure failed.

Definition at line 248 of file Assure.hpp.


Member Data Documentation

bool Assure::useSIGTRAP = false [static]

This allows to stop the debugger on an exception.

Definition at line 215 of file Assure.hpp.


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

Generated on Sat May 26 03:32:50 2012 for openWNS by  doxygen 1.5.5