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

#include <PdmsParser.h>

Inheritance diagram for PdmsFileSession:
Collaboration diagram for PdmsFileSession:

Public Member Functions

 PdmsFileSession (const std::string &filename)
 
virtual ~PdmsFileSession ()
 
virtual bool initializeSession () override
 
virtual void closeSession (bool destroyLoadedObject=false) override
 
virtual void printWarning (const char *str) override
 
- Public Member Functions inherited from PdmsLexer
 PdmsLexer ()
 
virtual ~PdmsLexer ()
 
bool gotoNextToken ()
 
void finish ()
 
PointCoordinateType valueFromBuffer ()
 
const char * nameFromBuffer () const
 
Token getCurrentToken () const
 
PdmsObjects::GenericItemgetLoadedObject () const
 
const char * getBufferContent () const
 
void setLoadedObject (PdmsObjects::GenericItem *o)
 

Protected Member Functions

virtual void parseCurrentToken () override
 
virtual bool moveForward () override
 
virtual void skipComment () override
 
virtual void skipHandleCommand () override
 
- Protected Member Functions inherited from PdmsLexer
void pushIntoDictionary (const char *str, Token token, int minSize=0)
 

Protected Attributes

std::string m_filename
 
int m_currentLine
 
bool m_eol
 
bool m_eof
 
FILE * m_file
 
- Protected Attributes inherited from PdmsLexer
PdmsObjects::GenericItemloadedObject
 
Token currentToken
 
char tokenBuffer [c_max_buff_size]
 
char nextBuffer [c_max_buff_size]
 
std::map< std::string, Tokendictionary
 
bool stop
 
char metaGroupMask
 

Additional Inherited Members

- Static Protected Attributes inherited from PdmsLexer
static const int c_max_buff_size = 2048
 

Detailed Description

Definition at line 63 of file PdmsParser.h.

Constructor & Destructor Documentation

◆ PdmsFileSession()

PdmsFileSession::PdmsFileSession ( const std::string &  filename)

Definition at line 261 of file PdmsParser.cpp.

◆ ~PdmsFileSession()

virtual PdmsFileSession::~PdmsFileSession ( )
inlinevirtual

Definition at line 73 of file PdmsParser.h.

Member Function Documentation

◆ closeSession()

void PdmsFileSession::closeSession ( bool  destroyLoadedObject = false)
overridevirtual

Reimplemented from PdmsLexer.

Definition at line 280 of file PdmsParser.cpp.

References PdmsLexer::closeSession(), and m_file.

◆ initializeSession()

bool PdmsFileSession::initializeSession ( )
overridevirtual

Reimplemented from PdmsLexer.

Definition at line 268 of file PdmsParser.cpp.

References PdmsLexer::initializeSession(), m_currentLine, m_eof, m_eol, m_file, and m_filename.

◆ moveForward()

bool PdmsFileSession::moveForward ( )
overrideprotectedvirtual

◆ parseCurrentToken()

void PdmsFileSession::parseCurrentToken ( )
overrideprotectedvirtual

◆ printWarning()

void PdmsFileSession::printWarning ( const char *  str)
overridevirtual

◆ skipComment()

◆ skipHandleCommand()

void PdmsFileSession::skipHandleCommand ( )
overrideprotectedvirtual

Implements PdmsLexer.

Definition at line 414 of file PdmsParser.cpp.

References PdmsTools::c_max_str_length, m_file, and PdmsLexer::tokenBuffer.

Member Data Documentation

◆ m_currentLine

int PdmsFileSession::m_currentLine
protected

Definition at line 66 of file PdmsParser.h.

Referenced by initializeSession(), moveForward(), printWarning(), and skipComment().

◆ m_eof

bool PdmsFileSession::m_eof
protected

Definition at line 68 of file PdmsParser.h.

Referenced by initializeSession(), moveForward(), and parseCurrentToken().

◆ m_eol

bool PdmsFileSession::m_eol
protected

Definition at line 67 of file PdmsParser.h.

Referenced by initializeSession(), moveForward(), and skipComment().

◆ m_file

FILE* PdmsFileSession::m_file
protected

◆ m_filename

std::string PdmsFileSession::m_filename
protected

Definition at line 65 of file PdmsParser.h.

Referenced by initializeSession(), and printWarning().


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