|
KiCad PCB EDA Suite
|
#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_READER * | m_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 |
| WRLPROC::WRLPROC | ( | LINE_READER * | aLineReader | ) |
Definition at line 57 of file wrlproc.cpp.
References FN_NORMALIZE_FLAGS, GETLINE, m_badchars, m_buf, m_bufpos, m_eof, m_error, m_file, m_filedir, m_fileline, m_filename, m_fileVersion, VRML_INVALID, VRML_V1, and VRML_V2.
| WRLPROC::~WRLPROC | ( | ) |
Definition at line 133 of file wrlproc.cpp.
| bool WRLPROC::DiscardList | ( | void | ) |
Definition at line 487 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().
| bool WRLPROC::DiscardNode | ( | void | ) |
Definition at line 364 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, ReadGlob(), ReadString(), and traceVrmlPlugin.
Referenced by WRL2BASE::readInline(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
| bool WRLPROC::EatSpace | ( | void | ) |
Definition at line 187 of file wrlproc.cpp.
References getRawLine(), m_buf, m_bufpos, m_eof, m_error, and m_file.
Referenced by DiscardList(), DiscardNode(), Peek(), ReadGlob(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFBool(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), and ReadString().
| bool WRLPROC::eof | ( | void | ) |
Definition at line 1950 of file wrlproc.cpp.
References m_eof.
Referenced by WRL1BASE::Read(), WRL1COORDS::Read(), WRL1FACESET::Read(), WRL1GROUP::Read(), WRL1MATBINDING::Read(), WRL1MATERIAL::Read(), WRL1SEPARATOR::Read(), WRL1SHAPEHINTS::Read(), WRL1SWITCH::Read(), WRL1TRANSFORM::Read(), WRL2APPEARANCE::Read(), WRL2BASE::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2FACESET::Read(), WRL2INLINE::Read(), WRL2LINESET::Read(), WRL2MATERIAL::Read(), WRL2NORMS::Read(), WRL2POINTSET::Read(), WRL2SHAPE::Read(), WRL2SWITCH::Read(), WRL2TRANSFORM::Read(), WRL2SWITCH::readChildren(), WRL2TRANSFORM::readChildren(), and WRL1BASE::ReadNode().
| std::string WRLPROC::GetError | ( | void | ) |
Definition at line 1956 of file wrlproc.cpp.
References m_error.
Referenced by WRL1BASE::implementDef(), WRL2BASE::implementDef(), WRL1BASE::implementUse(), WRL2BASE::implementUse(), WRL1BASE::Read(), WRL1COORDS::Read(), WRL1FACESET::Read(), WRL1MATBINDING::Read(), WRL1MATERIAL::Read(), WRL1SHAPEHINTS::Read(), WRL1SWITCH::Read(), WRL1TRANSFORM::Read(), WRL2APPEARANCE::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2FACESET::Read(), WRL2INLINE::Read(), WRL2LINESET::Read(), WRL2MATERIAL::Read(), WRL2NORMS::Read(), WRL2POINTSET::Read(), WRL2SHAPE::Read(), WRL2SWITCH::Read(), WRL2TRANSFORM::Read(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
| std::string WRLPROC::GetFileName | ( | void | ) |
Definition at line 1991 of file wrlproc.cpp.
References m_error, and m_file.
Referenced by WRL1COORDS::Read(), WRL1FACESET::Read(), WRL1MATBINDING::Read(), WRL1MATERIAL::Read(), WRL1SHAPEHINTS::Read(), WRL1SWITCH::Read(), WRL1TRANSFORM::Read(), WRL2APPEARANCE::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2FACESET::Read(), WRL2INLINE::Read(), WRL2LINESET::Read(), WRL2MATERIAL::Read(), WRL2NORMS::Read(), WRL2POINTSET::Read(), WRL2SHAPE::Read(), WRL2SWITCH::Read(), and WRL2TRANSFORM::Read().
| bool WRLPROC::GetFilePosData | ( | size_t & | line, |
| size_t & | column ) |
Definition at line 1962 of file wrlproc.cpp.
References m_bufpos, m_file, and m_fileline.
Referenced by WRL2TRANSFORM::Read().
| std::string WRLPROC::GetFilePosition | ( | ) | const |
Definition at line 1978 of file wrlproc.cpp.
References m_bufpos, m_file, and m_fileline.
Referenced by WRL1BASE::implementDef(), WRL2BASE::implementDef(), WRL1BASE::Read(), WRL1COORDS::Read(), WRL1FACESET::Read(), WRL1GROUP::Read(), WRL1MATBINDING::Read(), WRL1MATERIAL::Read(), WRL1SEPARATOR::Read(), WRL1SHAPEHINTS::Read(), WRL1SWITCH::Read(), WRL1TRANSFORM::Read(), WRL2APPEARANCE::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2FACESET::Read(), WRL2INLINE::Read(), WRL2LINESET::Read(), WRL2MATERIAL::Read(), WRL2NORMS::Read(), WRL2POINTSET::Read(), WRL2SHAPE::Read(), WRL2SWITCH::Read(), WRL2TRANSFORM::Read(), WRL2SWITCH::readChildren(), WRL2TRANSFORM::readChildren(), WRL2BASE::readInline(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
| const char * WRLPROC::GetParentDir | ( | void | ) |
| bool WRLPROC::getRawLine | ( | void | ) |
Definition at line 138 of file wrlproc.cpp.
References GETLINE, m_buf, m_bufpos, m_eof, m_error, m_file, m_fileVersion, and VRML_V1.
Referenced by EatSpace(), and ReadString().
| WRLVERSION WRLPROC::GetVRMLType | ( | void | ) |
Definition at line 226 of file wrlproc.cpp.
References m_fileVersion.
Referenced by LoadVRML(), WRL1BASE::Read(), and WRL2BASE::Read().
| char WRLPROC::Peek | ( | void | ) |
Definition at line 2003 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, and m_file.
Referenced by WRL1BASE::Read(), WRL1COORDS::Read(), WRL1FACESET::Read(), WRL1GROUP::Read(), WRL1MATBINDING::Read(), WRL1MATERIAL::Read(), WRL1SEPARATOR::Read(), WRL1SHAPEHINTS::Read(), WRL1SWITCH::Read(), WRL1TRANSFORM::Read(), WRL2APPEARANCE::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2FACESET::Read(), WRL2INLINE::Read(), WRL2LINESET::Read(), WRL2MATERIAL::Read(), WRL2NORMS::Read(), WRL2POINTSET::Read(), WRL2SHAPE::Read(), WRL2SWITCH::Read(), WRL2TRANSFORM::Read(), WRL2SWITCH::readChildren(), and WRL2TRANSFORM::readChildren().
| void WRLPROC::Pop | ( | void | ) |
Definition at line 2031 of file wrlproc.cpp.
References m_buf, and m_bufpos.
Referenced by WRL1COORDS::Read(), WRL1FACESET::Read(), WRL1GROUP::Read(), WRL1MATBINDING::Read(), WRL1MATERIAL::Read(), WRL1SEPARATOR::Read(), WRL1SHAPEHINTS::Read(), WRL1SWITCH::Read(), WRL1TRANSFORM::Read(), WRL2APPEARANCE::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2FACESET::Read(), WRL2INLINE::Read(), WRL2LINESET::Read(), WRL2MATERIAL::Read(), WRL2NORMS::Read(), WRL2POINTSET::Read(), WRL2SHAPE::Read(), WRL2SWITCH::Read(), WRL2TRANSFORM::Read(), WRL2SWITCH::readChildren(), WRL2TRANSFORM::readChildren(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), and ReadSFVec3f().
| bool WRLPROC::ReadGlob | ( | std::string & | aGlob | ) |
Definition at line 241 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, and m_file.
Referenced by DiscardList(), DiscardNode(), WRL2BASE::ReadNode(), ReadSFBool(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), and ReadString().
| bool WRLPROC::ReadMFColor | ( | std::vector< WRLVEC3F > & | aMFColor | ) |
Definition at line 1277 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFColor().
| bool WRLPROC::ReadMFFloat | ( | std::vector< float > & | aMFFloat | ) |
Definition at line 1389 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().
| bool WRLPROC::ReadMFInt | ( | std::vector< int > & | aMFInt32 | ) |
Definition at line 1500 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFInt().
Referenced by WRL1FACESET::Read(), WRL2FACESET::Read(), and WRL2LINESET::Read().
| bool WRLPROC::ReadMFRotation | ( | std::vector< WRLROTATION > & | aMFRotation | ) |
Definition at line 1612 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFRotation().
| bool WRLPROC::ReadMFString | ( | std::vector< std::string > & | aMFString | ) |
Definition at line 1158 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().
| bool WRLPROC::ReadMFVec2f | ( | std::vector< WRLVEC2F > & | aMFVec2f | ) |
Definition at line 1724 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFVec2f().
| bool WRLPROC::ReadMFVec3f | ( | std::vector< WRLVEC3F > & | aMFVec3f | ) |
Definition at line 1835 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadSFVec3f().
Referenced by WRL1COORDS::Read(), WRL1MATERIAL::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), and WRL2NORMS::Read().
| bool WRLPROC::ReadName | ( | std::string & | aName | ) |
Definition at line 285 of file wrlproc.cpp.
References EatSpace(), m_badchars, m_buf, m_bufpos, m_error, m_file, m_fileline, and m_filename.
Referenced by WRL1BASE::implementDef(), WRL2BASE::implementDef(), WRL1BASE::implementUse(), WRL2BASE::implementUse(), WRL1COORDS::Read(), WRL1FACESET::Read(), WRL1MATBINDING::Read(), WRL1MATERIAL::Read(), WRL1SHAPEHINTS::Read(), WRL1SWITCH::Read(), WRL1TRANSFORM::Read(), WRL2APPEARANCE::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2FACESET::Read(), WRL2INLINE::Read(), WRL2LINESET::Read(), WRL2MATERIAL::Read(), WRL2NORMS::Read(), WRL2POINTSET::Read(), WRL2SHAPE::Read(), WRL2SWITCH::Read(), WRL2TRANSFORM::Read(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
| bool WRLPROC::ReadSFBool | ( | bool & | aSFBool | ) |
Definition at line 725 of file wrlproc.cpp.
References EatSpace(), m_bufpos, m_error, m_fileline, m_filename, and ReadGlob().
Referenced by WRL2FACESET::Read(), and WRL2LINESET::Read().
| bool WRLPROC::ReadSFColor | ( | WRLVEC3F & | aSFColor | ) |
Definition at line 770 of file wrlproc.cpp.
References m_bufpos, m_error, m_file, m_fileline, m_filename, and ReadSFVec3f().
Referenced by ReadMFColor().
| bool WRLPROC::ReadSFFloat | ( | float & | aSFFloat | ) |
Definition at line 802 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, and ReadGlob().
Referenced by WRL1SHAPEHINTS::Read(), WRL2FACESET::Read(), WRL2MATERIAL::Read(), and ReadMFFloat().
| bool WRLPROC::ReadSFInt | ( | int & | aSFInt32 | ) |
Definition at line 863 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().
| bool WRLPROC::ReadSFRotation | ( | WRLROTATION & | aSFRotation | ) |
Definition at line 933 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, and ReadGlob().
Referenced by WRL1TRANSFORM::Read(), WRL2TRANSFORM::Read(), and ReadMFRotation().
| bool WRLPROC::ReadSFVec2f | ( | WRLVEC2F & | aSFVec2f | ) |
Definition at line 1007 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, and ReadGlob().
Referenced by ReadMFVec2f().
| bool WRLPROC::ReadSFVec3f | ( | WRLVEC3F & | aSFVec3f | ) |
Definition at line 1078 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, Pop(), and ReadGlob().
Referenced by WRL1TRANSFORM::Read(), WRL2BOX::Read(), WRL2INLINE::Read(), WRL2MATERIAL::Read(), WRL2TRANSFORM::Read(), ReadMFVec3f(), and ReadSFColor().
| bool WRLPROC::ReadString | ( | std::string & | aSFString | ) |
Definition at line 608 of file wrlproc.cpp.
References EatSpace(), getRawLine(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_fileVersion, ReadGlob(), and VRML_V2.
Referenced by DiscardList(), DiscardNode(), and ReadMFString().
|
private |
Definition at line 112 of file wrlproc.h.
Referenced by ReadName(), and WRLPROC().
|
private |
Definition at line 105 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), EatSpace(), getRawLine(), Peek(), Pop(), ReadGlob(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), ReadString(), and WRLPROC().
|
private |
Definition at line 108 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), EatSpace(), GetFilePosData(), GetFilePosition(), getRawLine(), Peek(), Pop(), ReadGlob(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFBool(), ReadSFColor(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), ReadString(), and WRLPROC().
|
private |
Definition at line 106 of file wrlproc.h.
Referenced by EatSpace(), eof(), getRawLine(), and WRLPROC().
|
private |
Definition at line 111 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), EatSpace(), GetError(), GetFileName(), getRawLine(), Peek(), ReadGlob(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFBool(), ReadSFColor(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), ReadString(), and WRLPROC().
|
private |
Definition at line 104 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), EatSpace(), GetFileName(), GetFilePosData(), GetFilePosition(), getRawLine(), Peek(), ReadGlob(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFColor(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), ReadString(), and WRLPROC().
|
private |
Definition at line 114 of file wrlproc.h.
Referenced by GetParentDir(), and WRLPROC().
|
private |
Definition at line 107 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), GetFilePosData(), GetFilePosition(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFBool(), ReadSFColor(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), ReadString(), and WRLPROC().
|
private |
Definition at line 113 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFBool(), ReadSFColor(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), and WRLPROC().
|
private |
Definition at line 110 of file wrlproc.h.
Referenced by getRawLine(), GetVRMLType(), ReadString(), and WRLPROC().