![]() |
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 | 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) |
Private Member Functions | |
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 49 of file wrlproc.cpp.
References GETLINE, LINE_READER::GetSource(), m_badchars, m_buf, m_bufpos, m_eof, m_error, m_file, m_filedir, m_fileline, m_filename, m_fileVersion, NULL, VRML_INVALID, VRML_V1, and VRML_V2.
WRLPROC::~WRLPROC | ( | ) |
Definition at line 127 of file wrlproc.cpp.
bool WRLPROC::DiscardList | ( | void | ) |
Definition at line 482 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 359 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, MASK_VRML, ReadGlob(), and ReadString().
Referenced by WRL2BASE::readInline(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
bool WRLPROC::EatSpace | ( | void | ) |
Definition at line 182 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 1939 of file wrlproc.cpp.
References m_eof.
Referenced by WRL1GROUP::Read(), WRL1SEPARATOR::Read(), WRL1SWITCH::Read(), WRL1MATBINDING::Read(), WRL1COORDS::Read(), WRL1SHAPEHINTS::Read(), WRL1TRANSFORM::Read(), WRL1FACESET::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2NORMS::Read(), WRL2INLINE::Read(), WRL2SWITCH::Read(), WRL2MATERIAL::Read(), WRL1MATERIAL::Read(), WRL2TRANSFORM::Read(), WRL2SHAPE::Read(), WRL1BASE::Read(), WRL2APPEARANCE::Read(), WRL2POINTSET::Read(), WRL2LINESET::Read(), WRL2FACESET::Read(), WRL2BASE::Read(), WRL2SWITCH::readChildren(), WRL2TRANSFORM::readChildren(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
std::string WRLPROC::GetError | ( | void | ) |
Definition at line 1945 of file wrlproc.cpp.
References m_error.
Referenced by WRL1BASE::implementDef(), WRL2BASE::implementDef(), WRL1BASE::implementUse(), WRL2BASE::implementUse(), WRL1SEPARATOR::Read(), WRL1GROUP::Read(), WRL1SWITCH::Read(), WRL1MATBINDING::Read(), WRL1COORDS::Read(), WRL1SHAPEHINTS::Read(), WRL1TRANSFORM::Read(), WRL2BOX::Read(), WRL1FACESET::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2NORMS::Read(), WRL2INLINE::Read(), WRL2SWITCH::Read(), WRL1MATERIAL::Read(), WRL2MATERIAL::Read(), WRL2TRANSFORM::Read(), WRL1BASE::Read(), WRL2SHAPE::Read(), WRL2APPEARANCE::Read(), WRL2POINTSET::Read(), WRL2LINESET::Read(), WRL2FACESET::Read(), WRL2BASE::Read(), WRL2BASE::readInline(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
std::string WRLPROC::GetFileName | ( | void | ) |
Definition at line 1967 of file wrlproc.cpp.
References LINE_READER::GetSource(), m_error, and m_file.
Referenced by WRL1SWITCH::Read(), WRL1MATBINDING::Read(), WRL1SHAPEHINTS::Read(), WRL1COORDS::Read(), WRL1TRANSFORM::Read(), WRL2BOX::Read(), WRL1FACESET::Read(), WRL2NORMS::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2SWITCH::Read(), WRL2INLINE::Read(), WRL1MATERIAL::Read(), WRL2MATERIAL::Read(), WRL2TRANSFORM::Read(), WRL2SHAPE::Read(), WRL2APPEARANCE::Read(), WRL2POINTSET::Read(), WRL2LINESET::Read(), and WRL2FACESET::Read().
bool WRLPROC::GetFilePosData | ( | size_t & | line, |
size_t & | column | ||
) |
Definition at line 1951 of file wrlproc.cpp.
References m_bufpos, m_file, and m_fileline.
Referenced by WRL1BASE::implementDef(), WRL2BASE::implementDef(), WRL1SEPARATOR::Read(), WRL1GROUP::Read(), WRL1SWITCH::Read(), WRL1MATBINDING::Read(), WRL1COORDS::Read(), WRL1SHAPEHINTS::Read(), WRL1TRANSFORM::Read(), WRL2BOX::Read(), WRL1FACESET::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2NORMS::Read(), WRL2INLINE::Read(), WRL2SWITCH::Read(), WRL1MATERIAL::Read(), WRL2MATERIAL::Read(), WRL2TRANSFORM::Read(), WRL1BASE::Read(), WRL2SHAPE::Read(), WRL2APPEARANCE::Read(), WRL2POINTSET::Read(), WRL2LINESET::Read(), WRL2FACESET::Read(), WRL2SWITCH::readChildren(), WRL2TRANSFORM::readChildren(), WRL2BASE::readInline(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
const char * WRLPROC::GetParentDir | ( | void | ) |
Definition at line 227 of file wrlproc.cpp.
References m_filedir, and NULL.
Referenced by WRL2BASE::Read().
|
private |
Definition at line 133 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 221 of file wrlproc.cpp.
References m_fileVersion.
Referenced by LoadVRML(), WRL1BASE::Read(), and WRL2BASE::Read().
char WRLPROC::Peek | ( | void | ) |
Definition at line 1979 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, and m_file.
Referenced by WRL1GROUP::Read(), WRL1SEPARATOR::Read(), WRL1SWITCH::Read(), WRL1MATBINDING::Read(), WRL1SHAPEHINTS::Read(), WRL1COORDS::Read(), WRL1TRANSFORM::Read(), WRL2BOX::Read(), WRL1FACESET::Read(), WRL2NORMS::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2INLINE::Read(), WRL2SWITCH::Read(), WRL2MATERIAL::Read(), WRL1MATERIAL::Read(), WRL2TRANSFORM::Read(), WRL1BASE::Read(), WRL2SHAPE::Read(), WRL2APPEARANCE::Read(), WRL2POINTSET::Read(), WRL2LINESET::Read(), WRL2FACESET::Read(), WRL2SWITCH::readChildren(), and WRL2TRANSFORM::readChildren().
void WRLPROC::Pop | ( | void | ) |
Definition at line 2007 of file wrlproc.cpp.
References m_buf, and m_bufpos.
Referenced by WRL1GROUP::Read(), WRL1SEPARATOR::Read(), WRL1SWITCH::Read(), WRL1MATBINDING::Read(), WRL1COORDS::Read(), WRL1SHAPEHINTS::Read(), WRL1TRANSFORM::Read(), WRL1FACESET::Read(), WRL2BOX::Read(), WRL2NORMS::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2SWITCH::Read(), WRL2INLINE::Read(), WRL2MATERIAL::Read(), WRL1MATERIAL::Read(), WRL2TRANSFORM::Read(), WRL2SHAPE::Read(), WRL2APPEARANCE::Read(), WRL2POINTSET::Read(), WRL2LINESET::Read(), WRL2FACESET::Read(), WRL2SWITCH::readChildren(), WRL2TRANSFORM::readChildren(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), and ReadSFVec3f().
bool WRLPROC::ReadGlob | ( | std::string & | aGlob | ) |
Definition at line 236 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 1264 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 1376 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 1488 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(), WRL2LINESET::Read(), and WRL2FACESET::Read().
bool WRLPROC::ReadMFRotation | ( | std::vector< WRLROTATION > & | aMFRotation | ) |
Definition at line 1600 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 1145 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 1712 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 1824 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(), WRL2NORMS::Read(), WRL2COORDS::Read(), WRL2COLOR::Read(), and WRL1MATERIAL::Read().
bool WRLPROC::ReadName | ( | std::string & | aName | ) |
Definition at line 280 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(), WRL1SWITCH::Read(), WRL1MATBINDING::Read(), WRL1SHAPEHINTS::Read(), WRL1COORDS::Read(), WRL1TRANSFORM::Read(), WRL1FACESET::Read(), WRL2BOX::Read(), WRL2COLOR::Read(), WRL2COORDS::Read(), WRL2NORMS::Read(), WRL2INLINE::Read(), WRL2SWITCH::Read(), WRL2MATERIAL::Read(), WRL1MATERIAL::Read(), WRL2TRANSFORM::Read(), WRL2SHAPE::Read(), WRL2APPEARANCE::Read(), WRL2POINTSET::Read(), WRL2LINESET::Read(), WRL2FACESET::Read(), WRL1BASE::ReadNode(), and WRL2BASE::ReadNode().
bool WRLPROC::ReadSFBool | ( | bool & | aSFBool | ) |
Definition at line 720 of file wrlproc.cpp.
References EatSpace(), m_bufpos, m_error, m_fileline, m_filename, and ReadGlob().
Referenced by WRL2LINESET::Read(), and WRL2FACESET::Read().
bool WRLPROC::ReadSFColor | ( | WRLVEC3F & | aSFColor | ) |
Definition at line 757 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 789 of file wrlproc.cpp.
References EatSpace(), m_buf, m_bufpos, m_error, m_file, m_fileline, m_filename, and ReadGlob().
Referenced by WRL1SHAPEHINTS::Read(), WRL2MATERIAL::Read(), WRL2FACESET::Read(), and ReadMFFloat().
bool WRLPROC::ReadSFInt | ( | int & | aSFInt32 | ) |
Definition at line 850 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 920 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 994 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 1065 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 603 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 51 of file wrlproc.h.
Referenced by ReadName(), and WRLPROC().
|
private |
Definition at line 44 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 47 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), EatSpace(), GetFilePosData(), 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 45 of file wrlproc.h.
Referenced by EatSpace(), eof(), getRawLine(), and WRLPROC().
|
private |
Definition at line 50 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 43 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), EatSpace(), GetFileName(), GetFilePosData(), getRawLine(), Peek(), ReadGlob(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFColor(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), ReadString(), and WRLPROC().
|
private |
Definition at line 53 of file wrlproc.h.
Referenced by GetParentDir(), and WRLPROC().
|
private |
Definition at line 46 of file wrlproc.h.
Referenced by DiscardList(), DiscardNode(), GetFilePosData(), ReadMFColor(), ReadMFFloat(), ReadMFInt(), ReadMFRotation(), ReadMFString(), ReadMFVec2f(), ReadMFVec3f(), ReadName(), ReadSFBool(), ReadSFColor(), ReadSFFloat(), ReadSFInt(), ReadSFRotation(), ReadSFVec2f(), ReadSFVec3f(), ReadString(), and WRLPROC().
|
private |
Definition at line 52 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 49 of file wrlproc.h.
Referenced by getRawLine(), GetVRMLType(), ReadString(), and WRLPROC().