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

#include <wrlproc.h>

Public Member Functions

 WRLPROC (LINE_READER *aLineReader)
 
 ~WRLPROC ()
 
bool eof (void)
 
WRLVERSION GetVRMLType (void)
 
const char * GetParentDir (void)
 
std::string GetError (void)
 
bool GetFilePosData (size_t &line, size_t &column)
 
std::string GetFilePosition () const
 
std::string GetFileName (void)
 
bool EatSpace (void)
 
char Peek (void)
 
void Pop (void)
 
bool ReadGlob (std::string &aGlob)
 
bool ReadName (std::string &aName)
 
bool DiscardNode (void)
 
bool DiscardList (void)
 
bool ReadString (std::string &aSFString)
 
bool ReadSFBool (bool &aSFBool)
 
bool ReadSFColor (WRLVEC3F &aSFColor)
 
bool ReadSFFloat (float &aSFFloat)
 
bool ReadSFInt (int &aSFInt32)
 
bool ReadSFRotation (WRLROTATION &aSFRotation)
 
bool ReadSFVec2f (WRLVEC2F &aSFVec2f)
 
bool ReadSFVec3f (WRLVEC3F &aSFVec3f)
 
bool ReadMFString (std::vector< std::string > &aMFString)
 
bool ReadMFColor (std::vector< WRLVEC3F > &aMFColor)
 
bool ReadMFFloat (std::vector< float > &aMFFloat)
 
bool ReadMFInt (std::vector< int > &aMFInt32)
 
bool ReadMFRotation (std::vector< WRLROTATION > &aMFRotation)
 
bool ReadMFVec2f (std::vector< WRLVEC2F > &aMFVec2f)
 
bool ReadMFVec3f (std::vector< WRLVEC3F > &aMFVec3f)
 
bool getRawLine (void)
 

Private Attributes

LINE_READERm_file
 
std::string m_buf
 
bool m_eof
 
unsigned int m_fileline
 
unsigned int m_bufpos
 
WRLVERSION m_fileVersion
 
std::string m_error
 
std::string m_badchars
 
std::string m_filename
 
std::string m_filedir
 

Detailed Description

Definition at line 41 of file wrlproc.h.

Constructor & Destructor Documentation

◆ WRLPROC()

WRLPROC::WRLPROC ( LINE_READER aLineReader)

◆ ~WRLPROC()

WRLPROC::~WRLPROC ( )

Definition at line 137 of file wrlproc.cpp.

Member Function Documentation

◆ DiscardList()

bool WRLPROC::DiscardList ( void  )

Definition at line 491 of file wrlproc.cpp.

References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, ReadGlob(), and ReadString().

Referenced by WRL2BASE::ReadNode().

◆ DiscardNode()

bool WRLPROC::DiscardNode ( void  )

◆ EatSpace()

◆ eof()

◆ GetError()

◆ GetFileName()

◆ GetFilePosData()

bool WRLPROC::GetFilePosData ( size_t &  line,
size_t &  column 
)

Definition at line 1966 of file wrlproc.cpp.

References m_bufpos, m_file, and m_fileline.

Referenced by WRL2TRANSFORM::Read().

◆ GetFilePosition()

◆ GetParentDir()

const char * WRLPROC::GetParentDir ( void  )

Definition at line 236 of file wrlproc.cpp.

References m_filedir.

Referenced by WRL2BASE::Read().

◆ getRawLine()

bool WRLPROC::getRawLine ( void  )

Definition at line 142 of file wrlproc.cpp.

References GETLINE, m_buf, m_bufpos, m_eof, m_error, m_file, and m_fileVersion.

Referenced by EatSpace(), and ReadString().

◆ GetVRMLType()

WRLVERSION WRLPROC::GetVRMLType ( void  )

Definition at line 230 of file wrlproc.cpp.

References m_fileVersion.

Referenced by LoadVRML(), WRL1BASE::Read(), and WRL2BASE::Read().

◆ Peek()

◆ Pop()

◆ ReadGlob()

bool WRLPROC::ReadGlob ( std::string &  aGlob)

◆ ReadMFColor()

bool WRLPROC::ReadMFColor ( std::vector< WRLVEC3F > &  aMFColor)

Definition at line 1281 of file wrlproc.cpp.

References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFColor().

◆ ReadMFFloat()

bool WRLPROC::ReadMFFloat ( std::vector< float > &  aMFFloat)

Definition at line 1393 of file wrlproc.cpp.

References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFFloat().

Referenced by WRL1MATERIAL::Read().

◆ ReadMFInt()

bool WRLPROC::ReadMFInt ( std::vector< int > &  aMFInt32)

◆ ReadMFRotation()

bool WRLPROC::ReadMFRotation ( std::vector< WRLROTATION > &  aMFRotation)

Definition at line 1616 of file wrlproc.cpp.

References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFRotation().

◆ ReadMFString()

bool WRLPROC::ReadMFString ( std::vector< std::string > &  aMFString)

Definition at line 1162 of file wrlproc.cpp.

References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadString().

Referenced by WRL2INLINE::Read().

◆ ReadMFVec2f()

bool WRLPROC::ReadMFVec2f ( std::vector< WRLVEC2F > &  aMFVec2f)

Definition at line 1728 of file wrlproc.cpp.

References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFVec2f().

◆ ReadMFVec3f()

bool WRLPROC::ReadMFVec3f ( std::vector< WRLVEC3F > &  aMFVec3f)

◆ ReadName()

◆ ReadSFBool()

bool WRLPROC::ReadSFBool ( bool &  aSFBool)

Definition at line 729 of file wrlproc.cpp.

References EatSpace(), m_bufpos, m_error, m_fileline, m_filename, and ReadGlob().

Referenced by WRL2FACESET::Read(), and WRL2LINESET::Read().

◆ ReadSFColor()

bool WRLPROC::ReadSFColor ( WRLVEC3F aSFColor)

Definition at line 774 of file wrlproc.cpp.

References m_bufpos, m_error, m_file, m_fileline, m_filename, and ReadSFVec3f().

Referenced by ReadMFColor().

◆ ReadSFFloat()

bool WRLPROC::ReadSFFloat ( float &  aSFFloat)

◆ ReadSFInt()

bool WRLPROC::ReadSFInt ( int &  aSFInt32)

Definition at line 867 of file wrlproc.cpp.

References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, and ReadGlob().

Referenced by WRL1SWITCH::Read(), WRL2SWITCH::Read(), and ReadMFInt().

◆ ReadSFRotation()

bool WRLPROC::ReadSFRotation ( WRLROTATION aSFRotation)

◆ ReadSFVec2f()

bool WRLPROC::ReadSFVec2f ( WRLVEC2F aSFVec2f)

Definition at line 1011 of file wrlproc.cpp.

References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, and ReadGlob().

Referenced by ReadMFVec2f().

◆ ReadSFVec3f()

◆ ReadString()

bool WRLPROC::ReadString ( std::string &  aSFString)

Member Data Documentation

◆ m_badchars

std::string WRLPROC::m_badchars
private

Definition at line 116 of file wrlproc.h.

Referenced by ReadName(), and WRLPROC().

◆ m_buf

◆ m_bufpos

◆ m_eof

bool WRLPROC::m_eof
private

Definition at line 110 of file wrlproc.h.

Referenced by EatSpace(), eof(), getRawLine(), and WRLPROC().

◆ m_error

◆ m_file

◆ m_filedir

std::string WRLPROC::m_filedir
private

Definition at line 118 of file wrlproc.h.

Referenced by GetParentDir(), and WRLPROC().

◆ m_fileline

◆ m_filename

◆ m_fileVersion

WRLVERSION WRLPROC::m_fileVersion
private

Definition at line 114 of file wrlproc.h.

Referenced by getRawLine(), GetVRMLType(), ReadString(), and WRLPROC().


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