Public Types | |
enum | Error |
Descibes the Spherical Shape Parser error. More... | |
Public Member Functions | |
Parser (string in_spec) | |
Create an instance of a shape parser with a specification. | |
Static Public Member Functions | |
static string | errmsg (Error errno) |
Turns a Parser.Error argument into a textual description. | |
static List< double > | extract (String textSpec) |
Extracts all the points from a convex hull specification. | |
static Region | compile (String textSpec) |
Compile a text description of a region into a new Region object. |
Descibes the Spherical Shape Parser error.
Spherical.Shape.Parser.Parser | ( | string | in_spec | ) |
Create an instance of a shape parser with a specification.
Parsing occurs when parse() is invoked.
in_spec | a valid shape specification |
static string Spherical.Shape.Parser.errmsg | ( | Error | errno | ) | [static] |
Turns a Parser.Error argument into a textual description.
errno |
static List<double> Spherical.Shape.Parser.extract | ( | String | textSpec | ) | [static] |
Extracts all the points from a convex hull specification.
textSpec |
static Region Spherical.Shape.Parser.compile | ( | String | textSpec | ) | [static] |
Compile a text description of a region into a new Region object.
The Shape Grammar is given in these specification. If there is an error in the specification, compile will throw a ParserException with an appropriate text message, and and internal Parser.Error variable.
textSpec |