Input Formats¶
This module is used as a base for parsing input files.
The main class is formats.Parser.
Each input format module has a child class named FormatParser(Parser).
Classes¶
Constants¶
- BUILTIN_INPUT_FORMATS¶
Dictionnary that holds all input formats available in Total Open Station.
Form of the dictionnary :
{
‘parser_name’: (‘module_parser_name’, ‘FormatParser’, ‘Parser Name’),
}
- UNITS_CIRCLE¶
Dictionnary that holds angle corresponding to the complet ride of a circle per units.
Form of the dictionnary :
{
‘name’: numeric value of complet ride,
}
- UNKNOWN_STATION¶
formats.Pointthat holds arbitary coordinates of an unknown station.
These coordinates are not egals to zero to avoid negativ coordinates during computation.Point(10000, 10000, 100)
- UNKNOWN_POINT¶
formats.Pointthat holds arbitary coordinates of an unknown point.
These coordinates are negatives to be able to check them during computation.Point(-1, -1, -1)
- COORDINATE_ORDER¶
tuple that holds possible coordinates order in some input formats.
(‘NEZ’, ‘ENZ’)