| Crates.io | xtrakcad_parser |
| lib.rs | xtrakcad_parser |
| version | 0.1.3 |
| created_at | 2025-09-27 20:22:17.761141+00 |
| updated_at | 2025-09-28 19:19:52.168248+00 |
| description | Parser for XTrackCAD layout files |
| homepage | |
| repository | https://github.com/RobertPHeller/xtrakcad_parser |
| max_upload_size | |
| id | 1857609 |
| size | 207,612 |
Ported from the Model RR System's Bision++ / C++ XTrackCAD layout file parser.
The parser is invoked as part of the new() class function of the Layout struct. This function takes a layout filename as its only parameter. It opens the file and procedes to parse the file and the parser's action code populates the Layout struct with the contents of the file. The new() returns the fully populated struct, which can then be accessed via various accessor methods to retrieve information about the layout, including tracks, structures, scenery features, and control features.