torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::Error::StackFrameInfo Struct Reference

#include <Error.hpp>

+ Collaboration diagram for torc::generic::Error::StackFrameInfo:

Public Member Functions

 StackFrameInfo (const std::string &inFunction, const std::string &inFile, uint32_t inLine)
 
 ~StackFrameInfo () throw ()
 
 StackFrameInfo (const StackFrameInfo &source)
 
StackFrameInfooperator= (const StackFrameInfo &source)
 
const std::string getFunction () const
 
const std::string getFile () const
 
const uint32_t getLine () const
 

Private Attributes

std::string mFunction
 
std::string mFile
 
uint32_t mLine
 

Detailed Description

Represents the throw and catch locations of the exception. Contains function, file and line numbers.

Definition at line 54 of file Error.hpp.

Constructor & Destructor Documentation

torc::generic::Error::StackFrameInfo::StackFrameInfo ( const std::string &  inFunction,
const std::string &  inFile,
uint32_t  inLine 
)

Definition at line 25 of file Error.cpp.

26  : mFunction(inFunction), mFile(inFile), mLine(inLine) {}
torc::generic::Error::StackFrameInfo::~StackFrameInfo ( )
throw (
)

Definition at line 28 of file Error.cpp.

28 {}
torc::generic::Error::StackFrameInfo::StackFrameInfo ( const StackFrameInfo source)

Definition at line 30 of file Error.cpp.

30  :
31  mFunction(source.mFunction), mFile(source.mFile), mLine(source.mLine) {}

Member Function Documentation

const std::string torc::generic::Error::StackFrameInfo::getFile ( ) const
inline

Definition at line 162 of file Error.hpp.

162  {
163  return mFile;
164 }
const std::string torc::generic::Error::StackFrameInfo::getFunction ( ) const
inline

Definition at line 158 of file Error.hpp.

158  {
159  return mFunction;
160 }
const uint32_t torc::generic::Error::StackFrameInfo::getLine ( ) const
inline

Definition at line 166 of file Error.hpp.

166  {
167  return mLine;
168 }
Error::StackFrameInfo & torc::generic::Error::StackFrameInfo::operator= ( const StackFrameInfo source)

Definition at line 33 of file Error.cpp.

33  {
34  if(this != &source) {
35  mFunction = source.mFunction;
36  mFile = source.mFile;
37  mLine = source.mLine;
38  }
39  return *this;
40 }

Field Documentation

std::string torc::generic::Error::StackFrameInfo::mFile
private

Definition at line 57 of file Error.hpp.

std::string torc::generic::Error::StackFrameInfo::mFunction
private

Definition at line 56 of file Error.hpp.

uint32_t torc::generic::Error::StackFrameInfo::mLine
private

Definition at line 58 of file Error.hpp.


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