RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields
DocumentParser Struct Reference
+ Collaboration diagram for DocumentParser:

Public Member Functions

 DocumentParser (GenericDocument &d, const BitMask_t opt, Ogre::DataStreamPtr ds)
 
void ProcessChar (const char c)
 
void ProcessEOF ()
 
void ProcessSeparatorWithinBool ()
 
void BeginToken (const char c)
 
void UpdateComment (const char c)
 
void UpdateString (const char c)
 
void UpdateNumber (const char c)
 
void UpdateBool (const char c)
 
void UpdateKeyword (const char c)
 
void UpdateTitle (const char c)
 
void UpdateGarbage (const char c)
 
void DiscontinueBool ()
 
void DiscontinueNumber ()
 
void DiscontinueKeyword ()
 
void FlushStringishToken (RoR::TokenType type)
 
void FlushNumericToken ()
 

Data Fields

GenericDocumentdoc
 
const BitMask_t options
 
Ogre::DataStreamPtr datastream
 
std::vector< char > tok
 
size_t line_num = 0
 
size_t line_pos = 0
 
PartialToken partial_tok_type = PartialToken::NONE
 
bool title_found = false
 

Detailed Description

Definition at line 53 of file GenericFileFormat.cpp.

Constructor & Destructor Documentation

◆ DocumentParser()

DocumentParser::DocumentParser ( GenericDocument d,
const BitMask_t  opt,
Ogre::DataStreamPtr  ds 
)
inline

Definition at line 55 of file GenericFileFormat.cpp.

Member Function Documentation

◆ BeginToken()

void DocumentParser::BeginToken ( const char  c)

Definition at line 90 of file GenericFileFormat.cpp.

+ Here is the call graph for this function:

◆ DiscontinueBool()

void DocumentParser::DiscontinueBool ( )

Definition at line 734 of file GenericFileFormat.cpp.

◆ DiscontinueKeyword()

void DocumentParser::DiscontinueKeyword ( )

Definition at line 752 of file GenericFileFormat.cpp.

◆ DiscontinueNumber()

void DocumentParser::DiscontinueNumber ( )

Definition at line 744 of file GenericFileFormat.cpp.

◆ FlushNumericToken()

void DocumentParser::FlushNumericToken ( )

Definition at line 916 of file GenericFileFormat.cpp.

◆ FlushStringishToken()

void DocumentParser::FlushStringishToken ( RoR::TokenType  type)

Definition at line 907 of file GenericFileFormat.cpp.

◆ ProcessChar()

void DocumentParser::ProcessChar ( const char  c)

Definition at line 924 of file GenericFileFormat.cpp.

+ Here is the caller graph for this function:

◆ ProcessEOF()

void DocumentParser::ProcessEOF ( )

Definition at line 973 of file GenericFileFormat.cpp.

+ Here is the caller graph for this function:

◆ ProcessSeparatorWithinBool()

void DocumentParser::ProcessSeparatorWithinBool ( )

Definition at line 584 of file GenericFileFormat.cpp.

+ Here is the call graph for this function:

◆ UpdateBool()

void DocumentParser::UpdateBool ( const char  c)

Definition at line 606 of file GenericFileFormat.cpp.

+ Here is the call graph for this function:

◆ UpdateComment()

void DocumentParser::UpdateComment ( const char  c)

Definition at line 277 of file GenericFileFormat.cpp.

◆ UpdateGarbage()

void DocumentParser::UpdateGarbage ( const char  c)

Definition at line 881 of file GenericFileFormat.cpp.

+ Here is the call graph for this function:

◆ UpdateKeyword()

void DocumentParser::UpdateKeyword ( const char  c)

Definition at line 760 of file GenericFileFormat.cpp.

+ Here is the call graph for this function:

◆ UpdateNumber()

void DocumentParser::UpdateNumber ( const char  c)

Definition at line 424 of file GenericFileFormat.cpp.

+ Here is the call graph for this function:

◆ UpdateString()

void DocumentParser::UpdateString ( const char  c)

Definition at line 307 of file GenericFileFormat.cpp.

+ Here is the call graph for this function:

◆ UpdateTitle()

void DocumentParser::UpdateTitle ( const char  c)

Definition at line 859 of file GenericFileFormat.cpp.

Field Documentation

◆ datastream

Ogre::DataStreamPtr DocumentParser::datastream

Definition at line 61 of file GenericFileFormat.cpp.

◆ doc

GenericDocument& DocumentParser::doc

Definition at line 59 of file GenericFileFormat.cpp.

◆ line_num

size_t DocumentParser::line_num = 0

Definition at line 65 of file GenericFileFormat.cpp.

◆ line_pos

size_t DocumentParser::line_pos = 0

Definition at line 66 of file GenericFileFormat.cpp.

◆ options

const BitMask_t DocumentParser::options

Definition at line 60 of file GenericFileFormat.cpp.

◆ partial_tok_type

PartialToken DocumentParser::partial_tok_type = PartialToken::NONE

Definition at line 67 of file GenericFileFormat.cpp.

◆ title_found

bool DocumentParser::title_found = false

Definition at line 68 of file GenericFileFormat.cpp.

◆ tok

std::vector<char> DocumentParser::tok

Definition at line 64 of file GenericFileFormat.cpp.


The documentation for this struct was generated from the following file: