RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields
RoR::GenericDocContext Struct Reference

#include <GenericFileFormat.h>

+ Inheritance diagram for RoR::GenericDocContext:
+ Collaboration diagram for RoR::GenericDocContext:

Public Member Functions

 GenericDocContext (GenericDocumentPtr d)
 
virtual ~GenericDocContext ()
 
bool moveNext ()
 
uint32_t getPos () const
 
bool seekNextLine ()
 
int countLineArgs ()
 
bool endOfFile (int offset=0) const
 
TokenType tokenType (int offset=0) const
 
std::string getTokString (int offset=0) const
 
float getTokFloat (int offset=0) const
 
bool getTokBool (int offset=0) const
 
std::string getTokKeyword (int offset=0) const
 
std::string getTokComment (int offset=0) const
 
bool isTokString (int offset=0) const
 
bool isTokFloat (int offset=0) const
 
bool isTokBool (int offset=0) const
 
bool isTokKeyword (int offset=0) const
 
bool isTokComment (int offset=0) const
 
bool isTokLineBreak (int offset=0) const
 
bool insertToken (int offset=0)
 Inserts TokenType::NONE;. More...
 
bool eraseToken (int offset=0)
 
bool setTokString (int offset, const std::string &str)
 
bool setTokFloat (int offset, float val)
 
bool setTokBool (int offset, bool val)
 
bool setTokKeyword (int offset, const std::string &str)
 
bool setTokComment (int offset, const std::string &str)
 
bool setTokLineBreak (int offset)
 
const char * getStringData (int offset=0) const
 
float getFloatData (int offset=0) const
 
bool setStringData (int offset, TokenType type, const std::string &data)
 
bool setFloatData (int offset, TokenType type, float data)
 
- Public Member Functions inherited from RefCountingObject< GenericDocContext >
 RefCountingObject ()
 
virtual ~RefCountingObject ()
 
void AddRef ()
 
void Release ()
 

Data Fields

GenericDocumentPtr doc
 
uint32_t token_pos = 0
 
- Data Fields inherited from RefCountingObject< GenericDocContext >
int m_refcount
 
std::mutex m_refcount_mtx
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountingObject< GenericDocContext >
static void RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name)
 

Detailed Description

Definition at line 90 of file GenericFileFormat.h.

Constructor & Destructor Documentation

◆ GenericDocContext()

RoR::GenericDocContext::GenericDocContext ( GenericDocumentPtr  d)
inline

Definition at line 92 of file GenericFileFormat.h.

◆ ~GenericDocContext()

virtual RoR::GenericDocContext::~GenericDocContext ( )
inlinevirtual

Definition at line 100 of file GenericFileFormat.h.

Member Function Documentation

◆ countLineArgs()

int GenericDocContext::countLineArgs ( )

Definition at line 1129 of file GenericFileFormat.cpp.

+ Here is the caller graph for this function:

◆ endOfFile()

bool RoR::GenericDocContext::endOfFile ( int  offset = 0) const
inline

Definition at line 111 of file GenericFileFormat.h.

+ Here is the caller graph for this function:

◆ eraseToken()

bool GenericDocContext::eraseToken ( int  offset = 0)
Returns
false if offset is beyond EOF

Definition at line 1149 of file GenericFileFormat.cpp.

◆ getFloatData()

float RoR::GenericDocContext::getFloatData ( int  offset = 0) const
inline

Definition at line 142 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPos()

uint32_t RoR::GenericDocContext::getPos ( ) const
inline

Definition at line 108 of file GenericFileFormat.h.

◆ getStringData()

const char* RoR::GenericDocContext::getStringData ( int  offset = 0) const
inline

Definition at line 141 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTokBool()

bool RoR::GenericDocContext::getTokBool ( int  offset = 0) const
inline

Definition at line 116 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ getTokComment()

std::string RoR::GenericDocContext::getTokComment ( int  offset = 0) const
inline

Definition at line 118 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ getTokFloat()

float RoR::GenericDocContext::getTokFloat ( int  offset = 0) const
inline

Definition at line 115 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTokKeyword()

std::string RoR::GenericDocContext::getTokKeyword ( int  offset = 0) const
inline

Definition at line 117 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTokString()

std::string RoR::GenericDocContext::getTokString ( int  offset = 0) const
inline

Definition at line 114 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertToken()

bool GenericDocContext::insertToken ( int  offset = 0)

Inserts TokenType::NONE;.

Returns
false if offset is beyond EOF

Definition at line 1140 of file GenericFileFormat.cpp.

◆ isTokBool()

bool RoR::GenericDocContext::isTokBool ( int  offset = 0) const
inline

Definition at line 122 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isTokComment()

bool RoR::GenericDocContext::isTokComment ( int  offset = 0) const
inline

Definition at line 124 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isTokFloat()

bool RoR::GenericDocContext::isTokFloat ( int  offset = 0) const
inline

Definition at line 121 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isTokKeyword()

bool RoR::GenericDocContext::isTokKeyword ( int  offset = 0) const
inline

Definition at line 123 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isTokLineBreak()

bool RoR::GenericDocContext::isTokLineBreak ( int  offset = 0) const
inline

Definition at line 125 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ isTokString()

bool RoR::GenericDocContext::isTokString ( int  offset = 0) const
inline

Definition at line 120 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ moveNext()

bool RoR::GenericDocContext::moveNext ( )
inline

Definition at line 107 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ seekNextLine()

bool GenericDocContext::seekNextLine ( )

Definition at line 1112 of file GenericFileFormat.cpp.

+ Here is the caller graph for this function:

◆ setFloatData()

bool GenericDocContext::setFloatData ( int  offset,
TokenType  type,
float  data 
)
Returns
false if offset is beyond EOF

Definition at line 1175 of file GenericFileFormat.cpp.

+ Here is the caller graph for this function:

◆ setStringData()

bool GenericDocContext::setStringData ( int  offset,
TokenType  type,
const std::string &  data 
)
Returns
false if offset is beyond EOF

Definition at line 1161 of file GenericFileFormat.cpp.

+ Here is the caller graph for this function:

◆ setTokBool()

bool RoR::GenericDocContext::setTokBool ( int  offset,
bool  val 
)
inline

Definition at line 134 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ setTokComment()

bool RoR::GenericDocContext::setTokComment ( int  offset,
const std::string &  str 
)
inline

Definition at line 136 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ setTokFloat()

bool RoR::GenericDocContext::setTokFloat ( int  offset,
float  val 
)
inline

Definition at line 133 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ setTokKeyword()

bool RoR::GenericDocContext::setTokKeyword ( int  offset,
const std::string &  str 
)
inline

Definition at line 135 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ setTokLineBreak()

bool RoR::GenericDocContext::setTokLineBreak ( int  offset)
inline

Definition at line 137 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ setTokString()

bool RoR::GenericDocContext::setTokString ( int  offset,
const std::string &  str 
)
inline

Definition at line 132 of file GenericFileFormat.h.

+ Here is the call graph for this function:

◆ tokenType()

TokenType RoR::GenericDocContext::tokenType ( int  offset = 0) const
inline

Definition at line 112 of file GenericFileFormat.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ doc

GenericDocumentPtr RoR::GenericDocContext::doc

Definition at line 100 of file GenericFileFormat.h.

◆ token_pos

uint32_t RoR::GenericDocContext::token_pos = 0

Definition at line 103 of file GenericFileFormat.h.


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