|
HyperspaceExplorer 0.7.1
|
Interpreting and executing scripts. More...
Classes | |
| class | Parser |
| Parser reads a file and executes the commands in it in a C4DView. More... | |
| class | BadStatementException |
| exception thrown when an unknown statement is encountered in a script More... | |
| class | Statement |
| Base class for all possible statements in a script. More... | |
| class | BoolStatement |
| Statement with a single boolean parameter. More... | |
| class | SizeStmt |
| "size <width> <height>" More... | |
| class | ObjectStmt |
| "object <object_name>" More... | |
| class | ParmStmt |
| "parameter <double|int|unsigned|string> <parameter>" More... | |
| class | XformStmt |
| "transform <rotation>" More... | |
| class | RotStmt |
| "rotation <rotation>" More... | |
| class | DeltaStmt |
| "transform_step <rotation>" More... | |
| class | RotDeltaStmt |
| "rotation_step <rotation>" More... | |
| class | FramesStmt |
| "frames <num_frames>" More... | |
| class | LoopStmt |
| "loop <num_loops>" More... | |
| class | ColorStmt |
| "color <bool>" More... | |
| class | ShadingStmt |
| "shading <bool>" More... | |
| class | LightStmt |
| "lighting <bool>" More... | |
| class | TransStmt |
| "transparence <bool>" More... | |
| class | WireStmt |
| "wireframe <bool>" More... | |
| class | SolidStmt |
| "solid <bool>" More... | |
| class | FogStmt |
| "depthcue3d <bool>" More... | |
| class | Fog4DStmt |
| "depthcue4d <bool>" More... | |
| class | CoordsStmt |
| "coordinates <bool>" More... | |
| class | AnimateStmt |
| "animate" More... | |
| class | SleepStmt |
| "sleep <milliseconds>" More... | |
| class | ImgDirStmt |
| "image_dir <directory>" More... | |
| class | ImgPrefixStmt |
| "image_prefix <filename_prefix>" More... | |
| class | StatementFactory |
| Factory object, creates Statement objects from a Parser and a given line. More... | |
Functions | |
| string | strip_ws (const string &s) |
| Trim whitespace from the beginning and the end of a string. | |
| string | strip_comments (const string &s) |
| Remove everything beginning with a "#" character to the end of the line. | |
| bool | starts_with (const string &haystack, const string &needle) |
| string | leading (const string &haystack, const string &needle) |
| string | trailing (const string &haystack, const string &needle) |
Interpreting and executing scripts.
| std::string Script::leading | ( | const string & | haystack, |
| const string & | needle | ||
| ) |
haystack before the start of needle References strip_ws().
Referenced by Script::ParmStmt< T >::execute(), and Script::SizeStmt::SizeStmt().


Does haystack start with needle ?
References strip_ws().
Referenced by Script::StatementFactory::createStatement().


| std::string Script::strip_ws | ( | const string & | s | ) |
Trim whitespace from the beginning and the end of a string.
References end(), and start().
Referenced by leading(), starts_with(), strip_comments(), and trailing().


| std::string Script::trailing | ( | const string & | haystack, |
| const string & | needle | ||
| ) |
haystack after the end of needle References strip_ws().
Referenced by Script::StatementFactory::createStatement(), Script::ParmStmt< T >::execute(), Script::FramesStmt::FramesStmt(), Script::LoopStmt::LoopStmt(), Script::SizeStmt::SizeStmt(), and Script::SleepStmt::SleepStmt().


1.7.4
-
Hosted by