ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MemoryMap::SyntaxError Struct Reference

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

#include <MemoryMap.h>

Inheritance diagram for MemoryMap::SyntaxError:
Collaboration diagram for MemoryMap::SyntaxError:

Public Member Functions

 SyntaxError (const std::string &mesg, const MemoryMap *map, const std::string &filename, unsigned linenum, int colnum=-1)
 
virtual ~SyntaxError () throw ()
 
virtual void print (std::ostream &, bool verbose=true) const
 
- Public Member Functions inherited from MemoryMap::Exception
 Exception (const std::string &mesg, const MemoryMap *map)
 
virtual ~Exception () throw ()
 
virtual std::string leader (std::string dflt="memory map problem") const
 Leading part of the error message. More...
 
virtual std::string details (bool) const
 Details emitted on following lines, indented two spaces. More...
 

Public Attributes

std::string filename
 Name of index file where error occurred. More...
 
unsigned linenum
 Line number (1 origin) where error occurred. More...
 
int colnum
 Optional column number (0-origin; negative if unknown). More...
 
- Public Attributes inherited from MemoryMap::Exception
const MemoryMapmap
 Map that caused the exception if available, null otherwise. More...
 

Friends

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

Detailed Description

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

Definition at line 474 of file MemoryMap.h.

Constructor & Destructor Documentation

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

Definition at line 475 of file MemoryMap.h.

virtual MemoryMap::SyntaxError::~SyntaxError ( )
throw (
)
inlinevirtual

Definition at line 477 of file MemoryMap.h.

Member Function Documentation

void MemoryMap::SyntaxError::print ( std::ostream &  o,
bool  verbose = true 
) const
virtual

Reimplemented from MemoryMap::Exception.

Definition at line 87 of file MemoryMap.C.

Referenced by operator<<().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const SyntaxError x 
)
friend

Definition at line 35 of file MemoryMap.C.

Member Data Documentation

std::string MemoryMap::SyntaxError::filename

Name of index file where error occurred.

Definition at line 480 of file MemoryMap.h.

unsigned MemoryMap::SyntaxError::linenum

Line number (1 origin) where error occurred.

Definition at line 481 of file MemoryMap.h.

int MemoryMap::SyntaxError::colnum

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

Definition at line 482 of file MemoryMap.h.


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