HyperspaceExplorer 0.7.1
Classes | Functions
Script Namespace Reference

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)

Detailed Description

Interpreting and executing scripts.


Function Documentation

std::string Script::leading ( const string haystack,
const string needle 
)
Returns:
the part of haystack before the start of needle

References strip_ws().

Referenced by Script::ParmStmt< T >::execute(), and Script::SizeStmt::SizeStmt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Script::starts_with ( const string haystack,
const string needle 
)

Does haystack start with needle ?

References strip_ws().

Referenced by Script::StatementFactory::createStatement().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Script::strip_ws ( const string s)

Trim whitespace from the beginning and the end of a string.

Returns:
The trimmed string

References end(), and start().

Referenced by leading(), starts_with(), strip_comments(), and trailing().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Script::trailing ( const string haystack,
const string needle 
)
Returns:
the part of 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().

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo