HPCToolkit
PGMDocHandler Class Reference

#include <PGMDocHandler.hpp>

Inheritance diagram for PGMDocHandler:
Collaboration diagram for PGMDocHandler:

Classes

class  StackEntry_t
 

Public Types

enum  Doc_t { Doc_NULL, Doc_STRUCT, Doc_GROUP }
 

Public Member Functions

 PGMDocHandler (Doc_t ty, Prof::Struct::Tree *structure, DocHandlerArgs &args)
 
 ~PGMDocHandler ()
 
void startElement (const XMLCh *const uri, const XMLCh *const name, const XMLCh *const qname, const XERCES_CPP_NAMESPACE::Attributes &attributes)
 
void endElement (const XMLCh *const uri, const XMLCh *const name, const XMLCh *const qname)
 
void getLineAttr (SrcFile::ln &begLn, SrcFile::ln &endLn, const XERCES_CPP_NAMESPACE::Attributes &attributes)
 
void error (const SAXParseException &e)
 
void fatalError (const SAXParseException &e)
 
void warning (const SAXParseException &e)
 

Static Public Member Functions

static const char * ToString (Doc_t docty)
 

Private Member Functions

StackEntry_tgetStackEntry (unsigned int idx)
 
Prof::Struct::ANodegetCurrentScope ()
 
Prof::Struct::ANodegetScope (unsigned int idx)
 
Prof::Struct::ANodegetShadowScope (unsigned int idx)
 
void pushCurrentScope (Prof::Struct::ANode *scope)
 
void popCurrentScope ()
 
Prof::Struct::FilefindCurrentFile ()
 
unsigned int findEnclosingGroupScopeDepth ()
 
void processGroupDocEndTag ()
 

Private Attributes

std::map< std::string, Prof::Struct::Proc * > idToProcMap
 
Doc_t m_docty
 
DocHandlerArgsm_args
 
Prof::Struct::Treem_structure
 
double m_version
 
Prof::Struct::Rootm_curRoot
 
Prof::Struct::LMm_curLM
 
Prof::Struct::Filem_curFile
 
Prof::Struct::Procm_curProc
 
unsigned groupNestingLvl
 
PointerStack scopeStack
 
const XMLCh *const elemStructure
 
const XMLCh *const elemLM
 
const XMLCh *const elemVariable
 
const XMLCh *const elemFile
 
const XMLCh *const elemProc
 
const XMLCh *const elemAlien
 
const XMLCh *const elemLoop
 
const XMLCh *const elemStmt
 
const XMLCh *const elemGroup
 
const XMLCh *const attrVer
 
const XMLCh *const attrId
 
const XMLCh *const attrName
 
const XMLCh *const attrFile
 
const XMLCh *const attrLnName
 
const XMLCh *const attrLine
 
const XMLCh *const attrVMA
 

Detailed Description

Definition at line 81 of file PGMDocHandler.hpp.

Member Enumeration Documentation

◆ Doc_t

Enumerator
Doc_NULL 
Doc_STRUCT 
Doc_GROUP 

Definition at line 83 of file PGMDocHandler.hpp.

Constructor & Destructor Documentation

◆ PGMDocHandler()

PGMDocHandler::PGMDocHandler ( Doc_t  ty,
Prof::Struct::Tree structure,
DocHandlerArgs args 
)

Definition at line 205 of file PGMDocHandler.cpp.

◆ ~PGMDocHandler()

PGMDocHandler::~PGMDocHandler ( )

Definition at line 243 of file PGMDocHandler.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ endElement()

void PGMDocHandler::endElement ( const XMLCh *const  uri,
const XMLCh *const  name,
const XMLCh *const  qname 
)

Definition at line 506 of file PGMDocHandler.cpp.

Here is the call graph for this function:

◆ error()

void PGMDocHandler::error ( const SAXParseException &  e)

Definition at line 626 of file PGMDocHandler.cpp.

Here is the call graph for this function:

◆ fatalError()

void PGMDocHandler::fatalError ( const SAXParseException &  e)

Definition at line 633 of file PGMDocHandler.cpp.

Here is the call graph for this function:

◆ findCurrentFile()

Struct::File * PGMDocHandler::findCurrentFile ( )
private

Definition at line 652 of file PGMDocHandler.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findEnclosingGroupScopeDepth()

uint PGMDocHandler::findEnclosingGroupScopeDepth ( )
private

Definition at line 665 of file PGMDocHandler.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCurrentScope()

Prof::Struct::ANode* PGMDocHandler::getCurrentScope ( )
inlineprivate

Definition at line 174 of file PGMDocHandler.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLineAttr()

void PGMDocHandler::getLineAttr ( SrcFile::ln begLn,
SrcFile::ln endLn,
const XERCES_CPP_NAMESPACE::Attributes &  attributes 
)

Definition at line 569 of file PGMDocHandler.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getScope()

Prof::Struct::ANode* PGMDocHandler::getScope ( unsigned int  idx)
inlineprivate

Definition at line 181 of file PGMDocHandler.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getShadowScope()

Prof::Struct::ANode* PGMDocHandler::getShadowScope ( unsigned int  idx)
inlineprivate

Definition at line 188 of file PGMDocHandler.hpp.

Here is the call graph for this function:

◆ getStackEntry()

StackEntry_t* PGMDocHandler::getStackEntry ( unsigned int  idx)
inlineprivate

Definition at line 170 of file PGMDocHandler.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popCurrentScope()

void PGMDocHandler::popCurrentScope ( )
inlineprivate

Definition at line 202 of file PGMDocHandler.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processGroupDocEndTag()

void PGMDocHandler::processGroupDocEndTag ( )
private

Definition at line 679 of file PGMDocHandler.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushCurrentScope()

void PGMDocHandler::pushCurrentScope ( Prof::Struct::ANode scope)
inlineprivate

Definition at line 195 of file PGMDocHandler.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startElement()

void PGMDocHandler::startElement ( const XMLCh *const  uri,
const XMLCh *const  name,
const XMLCh *const  qname,
const XERCES_CPP_NAMESPACE::Attributes &  attributes 
)

Definition at line 270 of file PGMDocHandler.cpp.

Here is the call graph for this function:

◆ ToString()

const char * PGMDocHandler::ToString ( Doc_t  docty)
static

Definition at line 610 of file PGMDocHandler.cpp.

Here is the caller graph for this function:

◆ warning()

void PGMDocHandler::warning ( const SAXParseException &  e)

Definition at line 641 of file PGMDocHandler.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ attrFile

const XMLCh* const PGMDocHandler::attrFile
private

Definition at line 260 of file PGMDocHandler.hpp.

◆ attrId

const XMLCh* const PGMDocHandler::attrId
private

Definition at line 258 of file PGMDocHandler.hpp.

◆ attrLine

const XMLCh* const PGMDocHandler::attrLine
private

Definition at line 262 of file PGMDocHandler.hpp.

◆ attrLnName

const XMLCh* const PGMDocHandler::attrLnName
private

Definition at line 261 of file PGMDocHandler.hpp.

◆ attrName

const XMLCh* const PGMDocHandler::attrName
private

Definition at line 259 of file PGMDocHandler.hpp.

◆ attrVer

const XMLCh* const PGMDocHandler::attrVer
private

Definition at line 257 of file PGMDocHandler.hpp.

◆ attrVMA

const XMLCh* const PGMDocHandler::attrVMA
private

Definition at line 263 of file PGMDocHandler.hpp.

◆ elemAlien

const XMLCh* const PGMDocHandler::elemAlien
private

Definition at line 251 of file PGMDocHandler.hpp.

◆ elemFile

const XMLCh* const PGMDocHandler::elemFile
private

Definition at line 249 of file PGMDocHandler.hpp.

◆ elemGroup

const XMLCh* const PGMDocHandler::elemGroup
private

Definition at line 254 of file PGMDocHandler.hpp.

◆ elemLM

const XMLCh* const PGMDocHandler::elemLM
private

Definition at line 247 of file PGMDocHandler.hpp.

◆ elemLoop

const XMLCh* const PGMDocHandler::elemLoop
private

Definition at line 252 of file PGMDocHandler.hpp.

◆ elemProc

const XMLCh* const PGMDocHandler::elemProc
private

Definition at line 250 of file PGMDocHandler.hpp.

◆ elemStmt

const XMLCh* const PGMDocHandler::elemStmt
private

Definition at line 253 of file PGMDocHandler.hpp.

◆ elemStructure

const XMLCh* const PGMDocHandler::elemStructure
private

Definition at line 246 of file PGMDocHandler.hpp.

◆ elemVariable

const XMLCh* const PGMDocHandler::elemVariable
private

Definition at line 248 of file PGMDocHandler.hpp.

◆ groupNestingLvl

unsigned PGMDocHandler::groupNestingLvl
private

Definition at line 235 of file PGMDocHandler.hpp.

◆ idToProcMap

std::map<std::string, Prof::Struct::Proc*> PGMDocHandler::idToProcMap
private

Definition at line 87 of file PGMDocHandler.hpp.

◆ m_args

DocHandlerArgs& PGMDocHandler::m_args
private

Definition at line 223 of file PGMDocHandler.hpp.

◆ m_curFile

Prof::Struct::File* PGMDocHandler::m_curFile
private

Definition at line 232 of file PGMDocHandler.hpp.

◆ m_curLM

Prof::Struct::LM* PGMDocHandler::m_curLM
private

Definition at line 231 of file PGMDocHandler.hpp.

◆ m_curProc

Prof::Struct::Proc* PGMDocHandler::m_curProc
private

Definition at line 233 of file PGMDocHandler.hpp.

◆ m_curRoot

Prof::Struct::Root* PGMDocHandler::m_curRoot
private

Definition at line 230 of file PGMDocHandler.hpp.

◆ m_docty

Doc_t PGMDocHandler::m_docty
private

Definition at line 222 of file PGMDocHandler.hpp.

◆ m_structure

Prof::Struct::Tree* PGMDocHandler::m_structure
private

Definition at line 224 of file PGMDocHandler.hpp.

◆ m_version

double PGMDocHandler::m_version
private

Definition at line 227 of file PGMDocHandler.hpp.

◆ scopeStack

PointerStack PGMDocHandler::scopeStack
private

Definition at line 239 of file PGMDocHandler.hpp.


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