KiCad PCB EDA Suite
Loading...
Searching...
No Matches
VRML_LINE_READER Class Reference

#include <vrml_line_reader.h>

Public Member Functions

 VRML_LINE_READER (const wxString &aFileName, unsigned aStartingLineNumber, unsigned aMaxLineLength, const S3D::MODEL_IMPORT_OPTIONS &aOptions)
 
 ~VRML_LINE_READER ()
 
 VRML_LINE_READER (const VRML_LINE_READER &)=delete
 
VRML_LINE_READER & operator= (const VRML_LINE_READER &)=delete
 
char * ReadLine ()
 
const char * Line () const
 
unsigned LineNumber () const
 
const wxString & Source () const
 

Private Member Functions

bool fill ()
 Refill the read buffer, returning false at end of file or on a read error.
 

Private Attributes

FILE * m_file = nullptr
 
wxString m_source
 
std::string m_line
 
std::vector< char > m_buffer
 
std::size_t m_bufferPos = 0
 
std::size_t m_bufferEnd = 0
 
unsigned m_lineNumber = 0
 
unsigned m_maxLineLength = 0
 
S3D::MODEL_IMPORT_OPTIONS m_options
 

Detailed Description

Definition at line 34 of file vrml_line_reader.h.

Constructor & Destructor Documentation

◆ VRML_LINE_READER() [1/2]

VRML_LINE_READER::VRML_LINE_READER ( const wxString & aFileName,
unsigned aStartingLineNumber,
unsigned aMaxLineLength,
const S3D::MODEL_IMPORT_OPTIONS & aOptions )

Definition at line 33 of file vrml_line_reader.cpp.

References m_buffer, m_file, m_line, m_lineNumber, m_maxLineLength, m_options, and m_source.

Referenced by operator=(), and VRML_LINE_READER().

◆ ~VRML_LINE_READER()

VRML_LINE_READER::~VRML_LINE_READER ( )

Definition at line 49 of file vrml_line_reader.cpp.

References m_file.

◆ VRML_LINE_READER() [2/2]

VRML_LINE_READER::VRML_LINE_READER ( const VRML_LINE_READER & )
delete

References VRML_LINE_READER().

Member Function Documentation

◆ fill()

bool VRML_LINE_READER::fill ( )
private

Refill the read buffer, returning false at end of file or on a read error.

Definition at line 55 of file vrml_line_reader.cpp.

References m_buffer, m_bufferEnd, m_bufferPos, and m_file.

Referenced by ReadLine().

◆ Line()

const char * VRML_LINE_READER::Line ( ) const
inline

Definition at line 45 of file vrml_line_reader.h.

References m_line.

◆ LineNumber()

unsigned VRML_LINE_READER::LineNumber ( ) const
inline

Definition at line 46 of file vrml_line_reader.h.

References m_lineNumber.

◆ operator=()

VRML_LINE_READER & VRML_LINE_READER::operator= ( const VRML_LINE_READER & )
delete

References VRML_LINE_READER().

◆ ReadLine()

char * VRML_LINE_READER::ReadLine ( )

◆ Source()

const wxString & VRML_LINE_READER::Source ( ) const
inline

Definition at line 47 of file vrml_line_reader.h.

References m_source.

Member Data Documentation

◆ m_buffer

std::vector<char> VRML_LINE_READER::m_buffer
private

Definition at line 56 of file vrml_line_reader.h.

Referenced by fill(), ReadLine(), and VRML_LINE_READER().

◆ m_bufferEnd

std::size_t VRML_LINE_READER::m_bufferEnd = 0
private

Definition at line 58 of file vrml_line_reader.h.

Referenced by fill(), and ReadLine().

◆ m_bufferPos

std::size_t VRML_LINE_READER::m_bufferPos = 0
private

Definition at line 57 of file vrml_line_reader.h.

Referenced by fill(), and ReadLine().

◆ m_file

FILE* VRML_LINE_READER::m_file = nullptr
private

Definition at line 53 of file vrml_line_reader.h.

Referenced by fill(), VRML_LINE_READER(), and ~VRML_LINE_READER().

◆ m_line

std::string VRML_LINE_READER::m_line
private

Definition at line 55 of file vrml_line_reader.h.

Referenced by Line(), ReadLine(), and VRML_LINE_READER().

◆ m_lineNumber

unsigned VRML_LINE_READER::m_lineNumber = 0
private

Definition at line 59 of file vrml_line_reader.h.

Referenced by LineNumber(), ReadLine(), and VRML_LINE_READER().

◆ m_maxLineLength

unsigned VRML_LINE_READER::m_maxLineLength = 0
private

Definition at line 60 of file vrml_line_reader.h.

Referenced by ReadLine(), and VRML_LINE_READER().

◆ m_options

S3D::MODEL_IMPORT_OPTIONS VRML_LINE_READER::m_options
private

Definition at line 61 of file vrml_line_reader.h.

Referenced by ReadLine(), and VRML_LINE_READER().

◆ m_source

wxString VRML_LINE_READER::m_source
private

Definition at line 54 of file vrml_line_reader.h.

Referenced by Source(), and VRML_LINE_READER().


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