MemoryMap::Syntax Struct Reference

#include <MemoryMap.h>

Inheritance diagram for MemoryMap::Syntax:

Inheritance graph
[legend]
Collaboration diagram for MemoryMap::Syntax:

Collaboration graph
[legend]
List of all members.

Detailed Description

Exception thrown by load() when there's a syntax error in the index file.


Public Member Functions

 Syntax (const MemoryMap *map, const std::string &mesg, const std::string &filename, unsigned linenum, int colnum=-1)
virtual ~Syntax ()
virtual void print (std::ostream &) const

Public Attributes

std::string mesg
 Error message.
std::string filename
 Name of index file where error occurred.
unsigned linenum
 Line number (1 origin) where error occurred.
int colnum
 Optional column number (0-origin; negative if unknown).

Friends

std::ostream & operator<< (std::ostream &, const Syntax &)


Constructor & Destructor Documentation

MemoryMap::Syntax::Syntax ( const MemoryMap map,
const std::string &  mesg,
const std::string &  filename,
unsigned  linenum,
int  colnum = -1 
) [inline]

virtual MemoryMap::Syntax::~Syntax (  )  [inline, virtual]


Member Function Documentation

void MemoryMap::Syntax::print ( std::ostream &   )  const [virtual]

Reimplemented from MemoryMap::Exception.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Syntax e 
) [friend]


Member Data Documentation

std::string MemoryMap::Syntax::mesg

Error message.

std::string MemoryMap::Syntax::filename

Name of index file where error occurred.

unsigned MemoryMap::Syntax::linenum

Line number (1 origin) where error occurred.

int MemoryMap::Syntax::colnum

Optional column number (0-origin; negative if unknown).


The documentation for this struct was generated from the following files:
Generated on Tue Jan 31 05:34:14 2012 for ROSE by  doxygen 1.4.7