ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PdmsParser Class Reference

#include <PdmsParser.h>

Collaboration diagram for PdmsParser:

Public Member Functions

 PdmsParser ()
 Default constructor. More...
 
 ~PdmsParser ()
 
void reset ()
 
void linkWithSession (PdmsLexer *s)
 
bool parseSessionContent ()
 
PdmsObjects::GenericItemgetLoadedObject (bool forgetIt=true)
 

Protected Member Functions

bool processCurrentToken ()
 

Protected Attributes

PdmsLexersession
 
PdmsCommands::CommandcurrentCommand
 
PdmsObjects::GenericItemcurrentItem
 
PdmsObjects::GenericItemroot
 

Detailed Description

Use this parser the following way: 1- create any Pdms session 2- link parser with the session 3- parse the current session content. if the session content changes, you can parse it as many times as you wish (the loaded object is overwritten each time) 4- get the result (either in session or in parser)

Definition at line 93 of file PdmsParser.h.

Constructor & Destructor Documentation

◆ PdmsParser()

PdmsParser::PdmsParser ( )

Default constructor.

Definition at line 450 of file PdmsParser.cpp.

◆ ~PdmsParser()

PdmsParser::~PdmsParser ( )

Member Function Documentation

◆ getLoadedObject()

PdmsObjects::GenericItem * PdmsParser::getLoadedObject ( bool  forgetIt = true)

Definition at line 593 of file PdmsParser.cpp.

References currentItem, PdmsLexer::getLoadedObject(), result, root, and session.

Referenced by PDMSFilter::loadFile().

◆ linkWithSession()

void PdmsParser::linkWithSession ( PdmsLexer s)

Definition at line 470 of file PdmsParser.cpp.

References currentCommand, currentItem, PdmsTools::PDMS_MILLIMETRE, root, and session.

Referenced by PDMSFilter::loadFile().

◆ parseSessionContent()

◆ processCurrentToken()

◆ reset()

void PdmsParser::reset ( )

Member Data Documentation

◆ currentCommand

PdmsCommands::Command* PdmsParser::currentCommand
protected

Definition at line 108 of file PdmsParser.h.

Referenced by linkWithSession(), processCurrentToken(), and ~PdmsParser().

◆ currentItem

PdmsObjects::GenericItem* PdmsParser::currentItem
protected

◆ root

PdmsObjects::GenericItem* PdmsParser::root
protected

◆ session

PdmsLexer* PdmsParser::session
protected

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