OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
TrackParser Class Reference

#include <TrackParser.h>

Inheritance diagram for TrackParser:
Inheritance graph
[legend]
Collaboration diagram for TrackParser:
Collaboration graph
[legend]

Public Member Functions

 TrackParser ()
 
virtual ~TrackParser ()
 
- Public Member Functions inherited from OpalParser
 OpalParser ()
 
virtual ~OpalParser ()
 
virtual void parse (Statement &) const
 Parse and execute current statement. More...
 
virtual StatementreadStatement (TokenStream *) const
 Read complete statement from a token stream. More...
 
virtual void run () const
 Read current stream. More...
 
virtual void run (TokenStream *) const
 Read given stream. More...
 
void stop () const
 Set stop flag. More...
 
- Public Member Functions inherited from Parser
 Parser ()
 
virtual ~Parser ()
 
virtual void parse (Statement &stat) const =0
 Parse and execute the statement. More...
 
virtual StatementreadStatement (TokenStream *ts) const =0
 Read complete statement from token stream. More...
 
virtual void run (TokenStream *ts) const =0
 Read statements and parse. More...
 

Protected Member Functions

virtual Objectfind (const std::string &) const
 Find object by name in the track command directory. More...
 
- Protected Member Functions inherited from OpalParser
void execute (Object *, const std::string &) const
 Execute or check the current command. More...
 
virtual Objectfind (const std::string &) const
 Find object by name in the main directory. More...
 
virtual void parseAction (Statement &) const
 Parse executable command. More...
 
virtual void parseAssign (Statement &) const
 Parse assignment statement. More...
 
virtual void parseDefine (Statement &) const
 Parse definition. More...
 
virtual void parseEnd (Statement &) const
 Check for end of statement. More...
 
virtual void parseMacro (const std::string &name, Statement &) const
 Parse macro definition or call. More...
 
virtual void printHelp (const std::string &) const
 Print help on named command. More...
 

Private Member Functions

 TrackParser (const TrackParser &)
 
void operator= (const TrackParser &)
 

Private Attributes

Directory trackDirectory
 

Additional Inherited Members

- Static Public Member Functions inherited from OpalParser
static Token readToken ()
 Return next input token. More...
 

Detailed Description

Definition at line 28 of file TrackParser.h.

Constructor & Destructor Documentation

◆ TrackParser() [1/2]

TrackParser::TrackParser ( )

Definition at line 25 of file TrackParser.cpp.

References Directory::insert(), and trackDirectory.

Here is the call graph for this function:

◆ ~TrackParser()

TrackParser::~TrackParser ( )
virtual

Definition at line 32 of file TrackParser.cpp.

◆ TrackParser() [2/2]

TrackParser::TrackParser ( const TrackParser )
private

Member Function Documentation

◆ find()

Object * TrackParser::find ( const std::string &  name) const
protectedvirtual

Find object by name in the track command directory.

Reimplemented from OpalParser.

Definition at line 36 of file TrackParser.cpp.

References Directory::find(), name, and trackDirectory.

Here is the call graph for this function:

◆ operator=()

void TrackParser::operator= ( const TrackParser )
private

Member Data Documentation

◆ trackDirectory

Directory TrackParser::trackDirectory
private

Definition at line 47 of file TrackParser.h.

Referenced by find(), and TrackParser().


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