RigsofRods
Soft-body Physics Simulation
|
Checks the rig-def file syntax and pulls data to File object. More...
#include <RigDef_Parser.h>
Data Structures | |
struct | Token |
Public Member Functions | |
Parser () | |
void | Prepare () |
void | Finalize () |
void | ProcessOgreStream (Ogre::DataStream *stream, Ogre::String resource_group) |
void | ProcessRawLine (const char *line) |
RigDef::DocumentPtr | GetFile () |
SequentialImporter * | GetSequentialImporter () |
Static Public Member Functions | |
static void | ProcessForsetLine (RigDef::Flexbody &def, const std::string &line, int line_number=-1) |
static Keyword | IdentifyKeyword (const std::string &line) |
static SpecialProp | IdentifySpecialProp (const std::string &str) |
Static Public Attributes | |
static const int | LINE_BUFFER_LENGTH = 2000 |
static const int | LINE_MAX_ARGS = 100 |
Static Private Member Functions | |
static void | _TrimTrailingComments (std::string const &line_in, std::string &line_out) |
Checks the rig-def file syntax and pulls data to File object.
For every section/directive, there is a data-container struct defined in File.h. The Parser should preferably only read data as-is, without validation.
Every time a line of a particular section is parsed, an instance of the struct is saved into an array container in struct RigDef::Document. There are exceptions to this rule.
Keywords 'set_[node|beam|inertia]_defaults' are 'presets' and are managed by dyn. allocated objects. For every preset, there are 2 pointers:
Definition at line 56 of file RigDef_Parser.h.
RigDef::Parser::Parser | ( | ) |
Definition at line 69 of file RigDef_Parser.cpp.
|
private |
Definition at line 653 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 2032 of file RigDef_Parser.cpp.
|
staticprivate |
Definition at line 2299 of file RigDef_Parser.cpp.
|
private |
Definition at line 2732 of file RigDef_Parser.cpp.
|
private |
void RigDef::Parser::Finalize | ( | ) |
|
private |
|
private |
Definition at line 3033 of file RigDef_Parser.cpp.
|
private |
|
private |
|
private |
Definition at line 2839 of file RigDef_Parser.cpp.
|
private |
|
private |
|
private |
|
private |
Definition at line 2995 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 2885 of file RigDef_Parser.cpp.
|
private |
|
private |
|
private |
Definition at line 3067 of file RigDef_Parser.cpp.
|
private |
|
private |
|
private |
Definition at line 2936 of file RigDef_Parser.cpp.
|
private |
Definition at line 2941 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 2890 of file RigDef_Parser.cpp.
|
private |
|
private |
|
private |
|
private |
Definition at line 2834 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 2950 of file RigDef_Parser.cpp.
|
private |
|
private |
|
inline |
|
inline |
|
static |
Definition at line 2686 of file RigDef_Parser.cpp.
|
static |
|
private |
Adds a message to console.
Definition at line 2677 of file RigDef_Parser.cpp.
|
private |
Definition at line 1631 of file RigDef_Parser.cpp.
|
private |
Definition at line 2569 of file RigDef_Parser.cpp.
|
private |
Definition at line 1268 of file RigDef_Parser.cpp.
|
private |
Definition at line 3000 of file RigDef_Parser.cpp.
|
private |
Definition at line 3005 of file RigDef_Parser.cpp.
|
private |
Definition at line 3028 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 3023 of file RigDef_Parser.cpp.
|
private |
Definition at line 1654 of file RigDef_Parser.cpp.
|
private |
Definition at line 2659 of file RigDef_Parser.cpp.
|
private |
Definition at line 1574 of file RigDef_Parser.cpp.
|
private |
Definition at line 2542 of file RigDef_Parser.cpp.
|
private |
Definition at line 1561 of file RigDef_Parser.cpp.
|
private |
Definition at line 826 of file RigDef_Parser.cpp.
|
private |
Definition at line 1556 of file RigDef_Parser.cpp.
|
private |
Definition at line 1696 of file RigDef_Parser.cpp.
|
private |
Definition at line 1516 of file RigDef_Parser.cpp.
|
private |
Definition at line 1502 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 1396 of file RigDef_Parser.cpp.
|
private |
Definition at line 1077 of file RigDef_Parser.cpp.
|
private |
Definition at line 1088 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 623 of file RigDef_Parser.cpp.
|
private |
Definition at line 1052 of file RigDef_Parser.cpp.
|
private |
Definition at line 1063 of file RigDef_Parser.cpp.
|
private |
Definition at line 812 of file RigDef_Parser.cpp.
|
private |
Definition at line 882 of file RigDef_Parser.cpp.
|
private |
Definition at line 603 of file RigDef_Parser.cpp.
|
private |
Definition at line 2814 of file RigDef_Parser.cpp.
|
private |
Definition at line 2819 of file RigDef_Parser.cpp.
|
private |
Definition at line 568 of file RigDef_Parser.cpp.
|
private |
Definition at line 554 of file RigDef_Parser.cpp.
|
private |
Definition at line 2059 of file RigDef_Parser.cpp.
|
private |
Definition at line 2067 of file RigDef_Parser.cpp.
|
private |
Definition at line 546 of file RigDef_Parser.cpp.
|
private |
Definition at line 527 of file RigDef_Parser.cpp.
|
private |
Definition at line 617 of file RigDef_Parser.cpp.
|
private |
Definition at line 1364 of file RigDef_Parser.cpp.
|
private |
Definition at line 1313 of file RigDef_Parser.cpp.
|
private |
Definition at line 1334 of file RigDef_Parser.cpp.
|
private |
Definition at line 1027 of file RigDef_Parser.cpp.
|
private |
Definition at line 1016 of file RigDef_Parser.cpp.
|
private |
Definition at line 1041 of file RigDef_Parser.cpp.
|
private |
Definition at line 2164 of file RigDef_Parser.cpp.
|
private |
Definition at line 1011 of file RigDef_Parser.cpp.
|
private |
Definition at line 978 of file RigDef_Parser.cpp.
|
private |
Definition at line 940 of file RigDef_Parser.cpp.
|
private |
Definition at line 863 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 785 of file RigDef_Parser.cpp.
|
private |
Definition at line 772 of file RigDef_Parser.cpp.
|
private |
Definition at line 762 of file RigDef_Parser.cpp.
|
private |
Definition at line 751 of file RigDef_Parser.cpp.
|
private |
Definition at line 744 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 2488 of file RigDef_Parser.cpp.
|
private |
Definition at line 1605 of file RigDef_Parser.cpp.
|
private |
Definition at line 2473 of file RigDef_Parser.cpp.
|
private |
Definition at line 2442 of file RigDef_Parser.cpp.
|
private |
Definition at line 2431 of file RigDef_Parser.cpp.
|
private |
|
private |
|
private |
Definition at line 2383 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 2513 of file RigDef_Parser.cpp.
|
private |
Definition at line 2286 of file RigDef_Parser.cpp.
|
private |
Definition at line 2266 of file RigDef_Parser.cpp.
|
private |
Definition at line 2226 of file RigDef_Parser.cpp.
|
private |
Definition at line 2209 of file RigDef_Parser.cpp.
|
private |
Definition at line 2196 of file RigDef_Parser.cpp.
|
private |
Definition at line 2181 of file RigDef_Parser.cpp.
|
private |
Definition at line 2117 of file RigDef_Parser.cpp.
|
private |
Definition at line 2092 of file RigDef_Parser.cpp.
|
private |
Definition at line 2106 of file RigDef_Parser.cpp.
|
private |
Definition at line 343 of file RigDef_Parser.cpp.
|
private |
Definition at line 509 of file RigDef_Parser.cpp.
|
private |
Definition at line 2012 of file RigDef_Parser.cpp.
|
private |
Definition at line 1985 of file RigDef_Parser.cpp.
|
private |
Definition at line 1956 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 1848 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 498 of file RigDef_Parser.cpp.
|
private |
Definition at line 491 of file RigDef_Parser.cpp.
|
private |
Definition at line 845 of file RigDef_Parser.cpp.
|
private |
|
private |
Definition at line 1775 of file RigDef_Parser.cpp.
|
private |
Definition at line 430 of file RigDef_Parser.cpp.
|
private |
Definition at line 476 of file RigDef_Parser.cpp.
|
private |
Definition at line 1756 of file RigDef_Parser.cpp.
|
private |
Definition at line 1738 of file RigDef_Parser.cpp.
|
private |
Definition at line 1708 of file RigDef_Parser.cpp.
|
private |
Definition at line 1665 of file RigDef_Parser.cpp.
|
private |
|
private |
|
private |
Definition at line 418 of file RigDef_Parser.cpp.
|
private |
Definition at line 324 of file RigDef_Parser.cpp.
void RigDef::Parser::Prepare | ( | ) |
|
private |
Definition at line 2765 of file RigDef_Parser.cpp.
|
private |
Definition at line 76 of file RigDef_Parser.cpp.
|
static |
Definition at line 893 of file RigDef_Parser.cpp.
|
private |
Directives that should only appear in root module.
Definition at line 635 of file RigDef_Parser.cpp.
void RigDef::Parser::ProcessOgreStream | ( | Ogre::DataStream * | stream, |
Ogre::String | resource_group | ||
) |
Definition at line 3379 of file RigDef_Parser.cpp.
void RigDef::Parser::ProcessRawLine | ( | const char * | line | ) |
|
private |
|
static |
Definition at line 61 of file RigDef_Parser.h.
|
static |
Definition at line 62 of file RigDef_Parser.h.
|
private |
Parser state.
Definition at line 276 of file RigDef_Parser.h.
|
private |
Tokens of current line.
Definition at line 272 of file RigDef_Parser.h.
|
private |
Definition at line 274 of file RigDef_Parser.h.
|
private |
Parser state.
Definition at line 278 of file RigDef_Parser.h.
|
private |
Definition at line 263 of file RigDef_Parser.h.
|
private |
Definition at line 271 of file RigDef_Parser.h.
|
private |
Definition at line 270 of file RigDef_Parser.h.
|
private |
Definition at line 264 of file RigDef_Parser.h.
|
private |
Definition at line 268 of file RigDef_Parser.h.
|
private |
Parser state.
Definition at line 277 of file RigDef_Parser.h.
|
private |
Definition at line 285 of file RigDef_Parser.h.
|
private |
Definition at line 282 of file RigDef_Parser.h.
|
private |
Definition at line 275 of file RigDef_Parser.h.
|
private |
Number of tokens on current line.
Definition at line 273 of file RigDef_Parser.h.
|
private |
Definition at line 283 of file RigDef_Parser.h.
|
private |
Definition at line 267 of file RigDef_Parser.h.
|
private |
Definition at line 254 of file RigDef_Parser.h.
|
private |
Definition at line 255 of file RigDef_Parser.h.
|
private |
Definition at line 280 of file RigDef_Parser.h.
|
private |
Definition at line 262 of file RigDef_Parser.h.
|
private |
Definition at line 260 of file RigDef_Parser.h.
|
private |
Definition at line 259 of file RigDef_Parser.h.
|
private |
Definition at line 261 of file RigDef_Parser.h.