All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
GpCoreTools::TraceStamp Class Reference

Storage for trace stamps. More...

#include <TraceStamp.h>

List of all members.

Public Member Functions

std::string toString () const
 TraceStamp (const char *functionName, int lineNumber)

Detailed Description

Storage for trace stamps.

Storage for trace stamps. Stamps are collected each time macro TRACE is encountered.


Constructor & Destructor Documentation

GpCoreTools::TraceStamp::TraceStamp ( const char *  functionName,
int  lineNumber 
) [inline]
{
  _functionName=functionName;
  _lineNumber=lineNumber;
}

Member Function Documentation

std::string GpCoreTools::TraceStamp::toString ( ) const

Returns a string describing the code stamp: filename:linenumber.

References str, and GpCoreTools::Variant::toString().

{
  std::string str(_functionName);
  str+=":";
  Variant val(_lineNumber);
  str+=val.toString();
  return str;
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines