Model Railroad System
2.2.1
|
#include "config.h"
◆ ErrorCode
◆ stopwatchFract
#define stopwatchFract status3 |
◆ stopwatchSeconds
#define stopwatchSeconds status4 |
~SL2()
Definition: sl2.h:83
bool GetBlueButton16() const
Get Blue Button 16.
Definition: RaildriverIO.h:440
void SetPrintAtwice(bool flag)
Set the print second copy of the alphabetical listing flag.
Definition: System.h:527
@ USIC
Classic Universal Serial Interface Card.
Definition: cmri.tcl:78
bool LoadCarFile(char **outmessage=NULL)
(Re-)Load the car file.
unsigned int input_1_enabled
Input 1 enabled?
Definition: sl2.h:233
float EdgeY(int nid, int edgenum) const
Returns the $Y$ coordinate of the specificed edge of the node.
const Stop * StopI(int i) const
Return the ith stop object.
Definition: Train.h:437
const char * Marks() const
Return the car's reporting marks (railroad).
Definition: Car.h:183
char line_buffer[buffersize]
Input line buffer.
Definition: ParseFile.h:388
float x
$X$ coordinate.
Definition: TurnoutBody.h:133
int CarsInTransit() const
Return the number of cars still in transit.
Definition: System.h:500
bool GetZoomUp() const
Get Zoom Up.
Definition: RaildriverIO.h:531
const char * Order(int index) const
Return the Ith order.
Definition: Train.h:288
const FCFSupport::Industry * IndRipTrack()
Return a pointer to the RIP track (workbench).
Definition: System.h:558
int first_line
Definition: MRRXtrkCad.tab.h:168
const Station * station
A station stop, for Box Moves and Way Freights.
Definition: SwitchList.h:81
bool IsCompressedNode(int cnid) const
Is cid a node in the compressed graph?
Definition: ParseFile.h:575
virtual int Parse()
Parseer function.
void SetTransitStorageTrack(int istop, string trackname)
Set an intermediate storage track.
bool Motor_2_State() const
Motor 2 state, return true if Q3 and Q4 are on.
Definition: sl2.h:159
An EventID or empty string.
Definition: lcc.tcl:226
GrType
Graphic types.
Definition: TrackGraph.h:164
void AddPageLabelTree(PageLabelTree *node)
Add a page label tree node.
Definition: PDFPrinterSupport.h:899
double x2
Second X coordinate.
Definition: PDFPrinterSupport.h:643
@ out
Output Pin.
Definition: LinuxGpio.tcl:47
ErrorCode BlinkRelays(bool Q1, bool Q2, bool Q3, bool Q4, uint8_t speed)
Blink relay contacts.
Definition: sr4.h:96
BezierBody(BezierBodyElt *e, BezierBody *n)
Basic constructor.
Definition: BezierBody.h:216
float minX
Minimum $X$ coordinate.
Definition: TrackGraph.h:252
_m(msgid,...)
Handle messages with a context hint prefix (eg Label|lab).
AbstractMRMessage()
@Brief Macro to create common methods and variables for an AbstractMRMessage
int onduty
The onduty time for this train, in minutes since midnight.
Definition: Train.h:372
uint8_t theByte
Status byte as a byte.
Definition: mrd.h:229
int numRoutelists
Number of routes.
Definition: TrackGraph.h:347
@ middle
Middle frame datagram.
Definition: lcc.tcl:117
bool GetEBrakeDown() const
Get Emergency Brake Down.
Definition: RaildriverIO.h:594
IntegerList(int car=0, IntegerList *cdr=NULL)
Base constructor.
Definition: IntegerList.h:95
unsigned int latch_1
Latch 1.
Definition: mrd.h:237
bool GetBlueButton28() const
Get Blue Button 28.
Definition: RaildriverIO.h:524
void SetNotDone()
Flag this car as not done.
Definition: Car.h:279
int MovementsThisSession() const
Return the number of movements this session.
Definition: Car.h:294
TrackBodyElt * theEnd
Pointer to T or E line data.
Definition: CornuBody.h:103
void AddPageTree(PageTree *thepagetree)
Add a tree of pages.
Definition: PDFPrinterSupport.h:1177
void SetShift(int newshift)
Set the train's shift.
Definition: Train.h:245
double From() const
Return the start time;.
Definition: Station.h:122
istream & Read(istream &stream)
Read an object from a stream.
bool IsDoneP() const
Is this car done?
Definition: Car.h:273
const double FEETperMM
Definition: MRRXtrkCad.tab.h:36
@ WIPER_M
Wiper switch.
Definition: RaildriverIO.h:122
const char * Initials() const
Return this owner's initials.
Definition: Owner.h:109
int maxcars
The maximum number of cars on this train.
Definition: Train.h:360
PDFFileStructures::CatalogDictionary * rootDictionary
PDF Root catalog.
Definition: PDFPrinter.h:145
void CarAssignment(const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *log, const FCFSupport::ShowBannerCallback *banner, char **outmessage=NULL)
Car assignment procedure.
vector< string > orders
List of train orders.
Definition: Train.h:339
istream & Read(istream &stream)
Read ourselves from an input stream.
void AddProperties(const string name, IndirectObject *obj)
Add an Properties resource.
Definition: PDFPrinterSupport.h:541
@ cmd_Q1posQ2neg
(SL2 only) Sets output terminal Q1 to positive, Q2 to negative.
Definition: Azatrax.h:171
~CatalogDictionary()
Destructor.
Definition: PDFPrinterSupport.h:1167
StorageTrackMap::const_iterator LastStorageTrack() const
Return a const_iterator for the last element in the storage track map.
Definition: Station.h:676
List of turnout body lines (T, E, P, S, C, and J lines).
Definition: TurnoutBody.h:281
bool Sense_1_Latch() const
Sense 1, return true if input line 1 was activated since last get status.
Definition: sr4.h:175
int Trips() const
Return the number of trips this car has had.
Definition: Car.h:315
@ NonTurnoutDirectionSensing
Non Turnout, Direction Sensing.
Definition: mrd.h:95
const char * Name() const
Return the name of the station.
Definition: Station.h:585
@ UpperRoman
Uppercase roman numerals.
Definition: PDFPrinterSupport.h:824
void AddShading(const string name, IndirectObject *obj)
Add an Shading resource.
Definition: PDFPrinterSupport.h:517
#define YY_MRRXtrkCad_LLOC
Definition: MRRXtrkCad.tab.h:200
List of Cornu body lines (T, E, S, and C lines).
Definition: CornuBody.h:196
virtual ostream & WriteDirect(ostream &stream) const
Dummy function for direct writing (should never be called).
Definition: PDFPrinterSupport.h:298
unsigned int sense_4
Sense 4.
Definition: sr4.h:303
void SetDestination(Industry *newdest)
Set the destination of this car.
Definition: Car.h:312
~PageLabelTree()
Destructor.
Definition: PDFPrinterSupport.h:895
virtual void GrabTrainDisplay() const
Grab the train display.
Definition: CallBack.h:230
bool AllowingExternalChanges() const
Allowing External Changes?
Definition: mrd.h:197
cget(path, option)
Configuration option accessor procedure: access one option directly.
TurnoutRoutelist * tpo
Turnout route list (if type is turnout).
Definition: TrackGraph.h:598
Industry * location
This car's location.
Definition: Car.h:356
void ReportCarTypes(CarTypeReport rtype, char carType, FCFSupport::PrinterDevice *printer, char **outmessage=NULL) const
Report on car types.
virtual ~LogMessageCallback()
Destructor.
Definition: CallBack.h:150
int Size() const
Return the number of sub-nodes in this page label tree.
Definition: PDFPrinterSupport.h:914
const Industry * DropStopIndustry() const
Return the industry this switch list element is dropping off at.
Definition: SwitchList.h:162
@ SwitchMotor
Switch Motor.
Definition: TrackGraph.h:526
unsigned char AutoBrake
Automatic Brake lever, 0-255.
Definition: RaildriverIO.h:725
int iElt
The current element.
Definition: IntegerList.h:79
This class implements a train.
Definition: Train.h:307
virtual bool Put(const string text)
Put a string.
void GetIndustryCarCounts()
Update industry car counts.
unsigned int input_4_enabled
Input 4 enabled?
Definition: sl2.h:239
static const int SpeakerCommand
Speaker command code.
Definition: RaildriverIO.h:696
int maxLines
The maximum number of lines per page.
Definition: PostScriptPrinter.h:155
ColorPopup(path)
Procedure bound to the palette button to select a color.
The CarType class represents a type of railroad car (rolling stock).
Definition: CarType.h:68
@ TurnoutMotor
Turnout, Motor (sustained action)
Definition: mrd.h:99
const char * CarsFile() const
Return the Cars file's full path name.
Definition: System.h:252
bool operator==(const TimeRange &other) const
Equality to operator.
Definition: Station.h:219
unsigned int resetStatus
Reset Status.
Definition: mrd.h:253
PageSize pageSize
Document page size.
Definition: Printer.h:411
The StorageTrack class implements a storage track.
Definition: Station.h:286
virtual void ReleaseTrainDisplay() const
Release the train display.
Definition: CallBack.h:234
ostream & WriteDictionaryType(ostream &stream) const
Write the dictionary's type.
Definition: PDFPrinterSupport.h:383
int classnumber
The train's class.
Definition: Train.h:466
string marks
This car's reporting marks.
Definition: Car.h:362
char mySerialNumber[10]
Serial number buffer.
Definition: Azatrax.h:407
vector< TypedDictionary * > pagenodes
The children of this page tree node.
Definition: PDFPrinterSupport.h:804
bool GetBlueButton15() const
Get Blue Button 15.
Definition: RaildriverIO.h:433
unsigned int sense_3
Sense 3.
Definition: sl2.h:219
@ Letter
US Letter page size.
Definition: Printer.h:223
static int segCount
Counter for S and C segments.
Definition: CornuBody.h:97
Base class for printer devices (hard copy output).
Definition: Printer.h:215
@ BezierStraightSegment
S line.
Definition: BezierBody.h:89
unsigned char GetWiper() const
Get Wiper value (0-255).
Definition: RaildriverIO.h:330
create(path,...)
Procedure to create a LabelSpinBox.
CatalogDictionary(unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:1160
char Type() const
Return the car type.
Definition: Car.h:176
#define len1
Definition: TurnoutBody.h:74
IndirectObjectDictionary properties
A Dictionary that maps resource names to property list dictionaries for marked content.
Definition: PDFPrinterSupport.h:579
ostream & Write(ostream &stream) const
Write object to a stream.
bool GetRangeUp() const
Get Range Up.
Definition: RaildriverIO.h:573
NodeValues(int _id=-1, NodeType _type=Undefined, TurnoutGraphic *_tgr=NULL, TurnoutRoutelist *_tpo=NULL, float _length=0.0, IntegerList *_tracklist=NULL, int _turnoutnumber=0, char *_name=NULL, char *_sensescript=NULL, char *_normalactionscript=NULL, char *_reverseactionscript=NULL, int _numheads=0, StringPairList *_aspects=NULL, float _origx=0.0, float _origy=0.0, float _angle=0.0, char *_onscript=NULL, char *_offscript=NULL)
Default constructor.
Definition: TrackGraph.h:643
CarGroup()
Default constructor.
Definition: CarType.h:185
double y2
Second Y coordinate.
Definition: PDFPrinterSupport.h:646
const double CENTIMETERSperMM
Definition: MRRXtrkCad.tab.h:39
unsigned int sense_1
Sense 1.
Definition: sr4.h:297
uint8_t theByte
Status byte as a byte.
Definition: mrd.h:249
@ NOTE
Definition: ParserClassesGroup.h:136
const char * Name() const
Return the station's name.
Definition: Station.h:115
ErrorCode OutputRelayInputControl(bool I1, bool I2, bool I3, bool I4)
Enable/Disable descrete input lines from affecting outputs.
Definition: sr4.h:164
const Occupied * StoreTrain(string train, double from, double to, string train2)
Insert train onto storage track for a time.
CornuBodyEltType
Element types.
Definition: CornuBody.h:80
LQ24PrinterDevice(const string filename="", const string title="", PageSize pageSize=Letter, char **outmessage=NULL)
Constructor.
~Rectangle()
Destructor.
Definition: PDFPrinterSupport.h:612
const char * TrainNum() const
Return the train that arrives.
Definition: Station.h:116
PageSize PrinterPageSize() const
Return the page size.
Definition: Printer.h:301
void PrintLocOneIndustry(const FCFSupport::Industry *Ix, const FCFSupport::Station *Sx, bool &firstOne, FCFSupport::PrinterDevice *printer) const
Print a location report for a single industry.
This class holds all of the information for a single car.
Definition: Car.h:71
Main C/MRI interface class.
Definition: cmri.tcl:141
static unsigned long int lastObjectNumber
The last used object number.
Definition: PDFPrinterSupport.h:136
@ O
Definition: ParserClassesGroup.h:125
Station(const Station &other)
Copy constructor, copy from another station instance.
Definition: Station.h:82
bool Sense_2() const
Sensor two active.
Definition: mrd.h:155
@ AUTOBRAKE
Automatic Brake lever.
Definition: RaildriverIO.h:197
TurnoutBodyElt * element
Current element.
Definition: TurnoutBody.h:285
bool GetBlueButton12() const
Get Blue Button 12.
Definition: RaildriverIO.h:412
static TurnoutBodyElt * MakeTurnoutCurveSegment(float r, float x, float y, float a0, float a1)
Create a turnout curve segment (C lines).
Definition: TurnoutBody.h:222
bool GetBlueButton5() const
Get Blue Button 5.
Definition: RaildriverIO.h:363
bool GetWhistleUp() const
Get Whistle Up.
Definition: RaildriverIO.h:629
string baseFont
Base font name.
Definition: PDFPrinterSupport.h:1103
int CompressedEdgeCount(int cnid) const
Number of compressed graph edges for node cnid.
string name
Name of the train.
Definition: Train.h:345
int CarsMoved() const
Return the number of cars moved.
Definition: System.h:476
#define YY_MRRXtrkCad_LVAL
Definition: MRRXtrkCad.tab.h:196
int CarTypesOrderIndex(char type) const
Car type order index.
unsigned int Q4_state
Q4 state.
Definition: sr4.h:285
float Angle(int nid) const
Return the angle of the signal.
Definition: ParseFile.h:529
virtual bool Tab(int column)
Tab over to the specified column.
Industry * industry
Industry, for Manifest freights.
Definition: Train.h:334
CarTypeMap::const_iterator FirstCarType() const
Iterator of the first car type in the car type map.
Definition: System.h:917
unsigned char GetBailOff() const
Get Bail Off value (0-255).
Definition: RaildriverIO.h:320
void PrintOneCarLocation(const Car *car, FCFSupport::PrinterDevice *printer) const
Print one car location report.
int trainLength
Train length.
Definition: System.h:1036
unsigned long int ObjectNumber() const
Return this object's object number.
Definition: PDFPrinterSupport.h:218
Division()
Default constructor.
Definition: Division.h:78
bool GetBlueButton13() const
Get Blue Button 13.
Definition: RaildriverIO.h:419
This class maintains information about cabs.
Definition: Cab.h:76
int MaxCarLen() const
The maximum car length this industry can handle.
Definition: Industry.h:236
streampos WriteTable(ostream &stream) const
Write this cross reference table out.
stringVector Split() const
Return a list of pathname components.
ostream & Write(ostream &stream) const
Write ourselves to an output stream.
PDFStream(unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:663
float radius
A radius value.
Definition: BezierBody.h:122
bool GetSand() const
Get Sand.
Definition: RaildriverIO.h:608
@ cmd_EnableExternal
Enable External Changes (MRD2 only)
Definition: Azatrax.h:169
void PrintTrainOrderHeader(const FCFSupport::Train *train, FCFSupport::PrinterDevice *printer)
Print a train order header.
Track endpoint elements (T and E lines).
Definition: TrackBody.h:76
int first_column
Definition: MRRXtrkCad.tab.h:169
stringVector Split() const
Return a list of pathname components.
@ Track
Plain trackage: straight, curved, or easement.
Definition: TrackGraph.h:514
FCFSupport::Car * TheCar(int i) const
Get a car by index.
Definition: System.h:399
const double YARDSperMM
Definition: MRRXtrkCad.tab.h:37
An event id structure.
Definition: lcc.tcl:160
ostream & Write(ostream &stream) const
Write ourselves to an output stream.
This is a specialized form of the LabelFrame widget containing a SpinBox Widget.
Definition: labelspinbox.tcl:30
IntegerList * CompressedNodeSegments(int cnid) const
Raw nodes in a compressed graph node.
Definition: ParseFile.h:567
int CarsNotMoved() const
Return the number of cars not moved at all.
Definition: System.h:482
bool Q2_State() const
Q2 state, return true if Q2 is closed.
Definition: sr4.h:205
@ cmd_OutputRelayInputControl
(SR4 and SL2 only) 2 bytes - Enables/disables discrete input lines from controlling outputs For SL2: ...
Definition: Azatrax.h:261
bool partline
Partial line flag.
Definition: PostScriptPrinter.h:158
Station * MyStation() const
Return the industry's station.
Definition: Industry.h:201
virtual bool Put(const string text)
Print a string of text.
Definition: Printer.h:378
int NumberOfNotes() const
Return the number of notes.
Definition: Train.h:216
Car(char t, const char *m, const char *n, const char *d, int l, int p, int wc, int lw, int ldw, bool lp, bool mp, bool fp, const Owner *own, bool dp, const Train *lt, int mvs, Industry *loc, Industry *dest, int trps, int asgns)
Full constructor.
Definition: Car.h:163
const TurnoutRoutelist * NodeTurnoutRoutelist(int nid) const
Returns the TurnoutRoutelist of the node.
PathName & operator=(PathName other)
Assignment operator, from another pathname.
Definition: PathName.h:101
bool Sense_2_Latch() const
Sense 2, return true if input line 2 was activated since last get status.
Definition: sr4.h:181
Structure holding a turnout's graphical information.
Definition: TrackGraph.h:249
vector< int > notes
The vector of note numbers.
Definition: Train.h:283
string emptyTypes
The vector of empty car type characters.
Definition: Industry.h:287
@ P
Definition: ParserClassesGroup.h:149
virtual void ProgressDone(const string Message) const
Mark the process meter as done.
Definition: CallBack.h:108
int NumberOfStations() const
Return the number of stations in this division.
Definition: Division.h:132
bool IsOpenP() const
Is the printer open?
Definition: Printer.h:298
vector< PageLabelTree * > PageLabelTreeKidVector
Map of PageLabelTree kids.
Definition: PDFPrinterSupport.h:870
const Division * FindDivisionBySymbol(char symbol) const
Find a division by its symbol.
void SetFixedRouteP(bool f)
Set whether this car is on a fixed route.
Definition: Car.h:264
IndirectObjectDictionary pattern
A Dictionary that maps resource names to pattern objects.
Definition: PDFPrinterSupport.h:564
vector< int > SearchForCarIndexesByNumber(string number, bool subStringP) const
Search for cars with a specificed number.
@ Error
Error messages.
Definition: CallBack.h:138
int totalShifts
The total number of shifts.
Definition: System.h:1009
int LtWt() const
Return the car's empty weight.
Definition: Car.h:231
Definition: TimeTableSystem.h:123
TurnoutBodyEltType
Element types.
Definition: TurnoutBody.h:86
@ CURVE
Definition: ParserClassesGroup.h:130
bool partline
Partial line flag.
Definition: PDFPrinter.h:178
Station & operator=(Station &other)
Assignment operator, copy from another station instance.
Definition: Station.h:91
int CarsLen() const
Return the length of all of the cars.
Definition: Industry.h:261
bool GetPantograph() const
Get Pantograph.
Definition: RaildriverIO.h:615
int BezierSegmentCount()
Count segments (S, C, and J lines).
Definition: BezierBody.h:238
standardMethods()
Macro to add a standard set of methods to an object type.
IndirectObjectDictionary shading
A Dictionary that maps resource names to shading dictionaries.
Definition: PDFPrinterSupport.h:568
virtual bool Put(const string text)
Print a string of text.
@ Q
Definition: ParserClassesGroup.h:154
@ CAR
Definition: ParserClassesGroup.h:134
int ldlmt
This car's loaded weight.
Definition: Car.h:383
char * RouteName
Route name (P lines).
Definition: TurnoutBody.h:118
void DeleteAllExistingCars()
Delete all existing cars.
OperatingMode_Type OperatingMode() const
Operating mode.
Definition: mrd.h:206
void SetLength(int l)
Set the car's length.
Definition: Car.h:216
float EdgeX(int nid, int edgenum) const
Returns the $X$ coordinate of the specificed edge of the node.
string Tail() const
Return the last pathname component.
bool OtherCarOkForTrain(Car *car, Train *train)
Check to see if this other car can be picked up.
virtual bool SetTypeSlant(TypeSlant slant)
Set the type slant.
CarVector::iterator FindCarInCarVector(CarVector &cvect, Car *car)
Find a car in a car vector.
@ AUTOBRAKE_M
Automatic Brake lever.
Definition: RaildriverIO.h:103
map< unsigned long int, IndirectObject *, less< unsigned long int > > objectMap
The object table type.
Definition: PDFPrinterSupport.h:140
const double NScale
Definition: MRRXtrkCad.tab.h:41
bool GetPanRight() const
Get Pan Right.
Definition: RaildriverIO.h:552
double To() const
Return the high end of the range.
Definition: Station.h:197
int CarsAtDest_CarsInTransit() const
Return the number of cars at their destinations plus the number of cars in transit.
Definition: System.h:506
The Industry class represents an industry.
Definition: Industry.h:89
~StorageTrack()
Destructor.
Definition: Station.h:300
char area
The division's area.
Definition: Division.h:165
int TurnoutSegmentCount()
Count segments (S, C, and J lines).
Definition: TurnoutBody.h:330
int timestamp
Definition: MRRXtrkCad.tab.h:167
int lines
Number of lines.
Definition: PDFPrinter.h:169
get(path,...)
Procedure to get the ComboBox value.
void IncrementTrips()
Increment the number of trips this car has had.
Definition: Car.h:321
~PostScriptStandardType1FontDictionary()
Destructor.
Definition: PDFPrinterSupport.h:1146
create(path,...)
Creation procedure.
StringPairList * spl
Definition: MRRXtrkCad.tab.h:81
int currentColumn
Current column.
Definition: TextPrinter.h:136
module TclSocketCAN
Definition: TclSocketCAN.i:59
~TurnoutBodyElt()
Destructor.
Definition: TurnoutBody.h:169
@ SMINI
SMINI Super Mini node.
Definition: cmri.tcl:86
static void CleanUpTurnoutBody(TurnoutBody *trb)
Free up memory.
Definition: TurnoutBody.h:354
void CompressGraph()
Create a compressed graph.
Definition: ParseFile.h:546
bool HasRelays() const
Has Relays?
Definition: mrd.h:173
SR4 I/O Class.
Definition: sr4.h:71
TrackBody * tb
Definition: MRRXtrkCad.tab.h:72
~Owner()
The destructor does nothing special.
Definition: Owner.h:106
float ang0
An angle value.
Definition: TurnoutBody.h:149
Definition: MRRXtrkCad.tab.h:68
Eventmask_bits
Event Masks.
Definition: RaildriverIO.h:79
CornuBodyEltType theType
Element type.
Definition: CornuBody.h:100
PageLabelTree * labels
Page labels.
Definition: PDFPrinterSupport.h:1211
int NumberOfStations() const
The number of stations loaded.
Definition: System.h:281
bool UsedTimeRange(double from, double to) const
Return true if the time range is in use.
bool GetBlueButton23() const
Get Blue Button 23.
Definition: RaildriverIO.h:489
float OrigY(int nid) const
Return the $y$ coordinate of the signal base.
void SetPrintDispatch(bool flag)
Set the print dispatcher report sheet.
Definition: System.h:548
bool Input_3_Enabled() const
Input 3 enabled? Return true if I3 can affect outputs.
Definition: sr4.h:235
Position structure.
Definition: TrackGraph.h:754
static CornuBody * ConcatCornuBody(CornuBody *trba, CornuBody *trb)
Definition: CornuBody.h:223
unsigned long int HighestObjectNumber() const
Return the highest object number.
Definition: PDFPrinterSupport.h:125
Route structure.
Definition: TrackGraph.h:323
StorageTrackMap storageTracks
Storage track map.
Definition: Station.h:693
Dictionary(unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:316
icursor(path,...)
Pass through procedure for the ComboBox icursor function.
RouteVec * routes
Route vector.
Definition: TrackGraph.h:351
void ClearAssignments()
Clear the number of assignments this car has had.
Definition: Car.h:330
SegPos gPos2
Second graphic position.
Definition: TrackGraph.h:185
@ TITLE
Definition: ParserClassesGroup.h:119
~RaildriverIO()
Destructor.
getlistbox(path,...)
Procedure to get the listbox of the ComboBox widget.
const char * Name() const
Return the industry's name.
Definition: Industry.h:206
map< string, IndirectObject *, less< string > > NamedIndirectObjectMap
A `‘vector’' of named indirect objects, implemented as a map.
Definition: PDFPrinterSupport.h:404
@ All
Report on all car types.
Definition: System.h:778
int trainEmpties
The number of empties on a train.
Definition: System.h:1048
int FindDivisionIndex(const FCFSupport::Division *division) const
Find a division's index.
bool LoadStatsFile(char **outmessage=NULL)
Load the stats file.
list< Train * > TrainList
List of trains.
Definition: TimeTableSystem.h:147
map< string, Cab *, less< string > > CabNameMap
Cab name map, cabs indexed by name.
Definition: Cab.h:136
void ReLoadCarFile(char **outmessage)
Reload car file.
Definition: System.h:698
const BezierBodyElt * Element() const
Return current element.
Definition: BezierBody.h:264
ostream & WriteObjectToFile(ostream &stream)
Write an object indirectly.
Definition: PDFPrinterSupport.h:182
int duplicateStationIndex
Duplicate station index.
Definition: Station.h:699
double oneColumnWidthFraction
One column's width fraction.
Definition: LQ24Printer.h:163
float a
A value of edge.
Definition: TrackGraph.h:559
@ FF
Form feed.
Definition: LQ24Printer.h:172
const FCFSupport::Industry * FindIndustryByName(string name) const
Find an industry by its name.
const FCFSupport::Industry * IndRipTrackConst() const
Const version of the pointer to the RIP track (workbench).
Definition: System.h:561
void UpdateStopLayover(int istop, double layover)
Update stop layover.
@ CornuEnd
T or E line.
Definition: CornuBody.h:86
int moves
The number of moves this car has made.
Definition: Car.h:389
@ Manifest
A Manifest Freight train.
Definition: Train.h:146
string name
Station name.
Definition: Station.h:690
Pos pos1
First position.
Definition: CornuBody.h:118
ResourceDictionary * resources
Resources for this page tree.
Definition: PDFPrinterSupport.h:795
string divisions
This car's division list.
Definition: Car.h:368
void ReportCarOwners(string ownerInitials, const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL) const
Report on a specified car owner.
string Tail() const
Return the last pathname component.
Type 1 Font dictionary.
Definition: PDFPrinterSupport.h:1032
const TurnoutBodyElt * Element() const
Return current element.
Definition: TurnoutBody.h:368
const FCFSupport::Station * TheStation(int i) const
Return a selected station in the division.
Definition: Division.h:136
@ INDUSTRY
Report by industry.
Definition: System.h:805
int threebits
Definition: lcc.tcl:34
unsigned char ReportBuffer[14]
Event Buffer.
Definition: RaildriverIO.h:710
Graph nodes
Graph adjacency_list.
Definition: TrackGraph.h:714
vector< Division * > DivisionVector
A vector of divisions.
Definition: Division.h:172
string Extension() const
Return only the extension.
int segmentId
Segment index (S or C lines).
Definition: BezierBody.h:106
StorageTrack(const StorageTrack &other)
Clone a StorageTrack – copy constructor.
Definition: Station.h:387
virtual bool SetTypeSpacing(TypeSpacing spacing)
Set the the spacing.
int byte
Definition: lcc.tcl:54
Division * MyDivision() const
Return the station's division.
Definition: Station.h:118
@ None
None.
Definition: PDFPrinterSupport.h:818
const char * LoadsAccepted() const
The types of loads this industry can handle.
Definition: Industry.h:239
struct azatrax::SR4::status3_union::@8 theBits
Status byte as bit fields.
unsigned int reserved
Reserved bits.
Definition: mrd.h:261
int carsNotMoved
The number of cars not moved.
Definition: System.h:1075
int segmentId
Segment index (S, C, or J lines).
Definition: TurnoutBody.h:124
SegVector * segments
Segment vector.
Definition: TrackGraph.h:268
@ Warning
Warning messages.
Definition: CallBack.h:135
#define len0
Definition: TurnoutBody.h:73
@ F
Definition: ParserClassesGroup.h:144
unsigned int reservered
Reserved bits.
Definition: sl2.h:223
int RanAllTrains() const
Ran all trains?
Definition: System.h:432
char Symbol() const
Return the division's Symbol.
Definition: Division.h:126
@ YY_MRRXtrkCad_NULL_TOKEN
Definition: ParserClassesGroup.h:107
void SetPrint(bool flag)
Set the train's print flag.
Definition: Train.h:275
int SessionNumber() const
Return the session number.
Definition: System.h:409
void ResetSwitchList()
Reset the switch list pointer.
verifyBoolMethod()
Macro to add a verify boolean method to a snit type.
@ _GrowSize
Definition: Azatrax.h:267
Cab & operator=(const Cab &other)
Assignment operator.
Definition: Cab.h:110
static void InitTSegId()
Segment count initializer.
Definition: BezierBody.h:129
int yychar
Definition: ParserClassesGroup.h:177
int StatsLen() const
Return the stats length.
Definition: Industry.h:264
@ TurnoutRoute
P line.
Definition: TurnoutBody.h:95
uint8_t status3
Status byte 3 (SR4-U, SL2-U) / Stopwatch 1/100ths of a second (MRD2 only)
Definition: Azatrax.h:429
char PathSeparator() const
Return the pathname separater character.
virtual void ProgressUpdate(int Percent, const string Message) const
Update the progress meter.
Definition: CallBack.h:103
const char * Number() const
Return the car's number.
Definition: Car.h:193
bool Reload() const
Can this industry reload cars?
Definition: Industry.h:218
@ cmd_OutputRelayPulse
(SR4 only) 3 bytes - Pulses output relay contacts to momentary 'on' state.
Definition: Azatrax.h:242
@ THROTTLE_M
Throttle lever.
Definition: RaildriverIO.h:97
static void InitTSegId()
Segment count initializer.
Definition: TurnoutBody.h:162
This class implements each switch list element.
Definition: SwitchList.h:73
PathName & operator=(PathName other)
Assignment operator, from another pathname.
Definition: PathName.h:105
ostream & Write(ostream &stream) const
Write object to a stream.
bool ReadDivisions(istream &stream, map< int, int, less< int > > &homemap, char **outmessage=NULL)
Read in the division map.
CompressedIdNodeMap c_idMap
Node Id map.
Definition: TrackGraph.h:818
int NumEdges(int nid) const
Returns the number of edges for the specificed node id.
Definition: ParseFile.h:464
char CarTypesOrder(int i) const
Access a car type by index.
Definition: System.h:360
Industry * MyMirror() const
This industry's mirror industry (if any).
Definition: Industry.h:224
double arrival
The arrival time, in scale time units.
Definition: TimeTableSystem.h:213
@ E
Definition: ParserClassesGroup.h:146
string storageTrackName
The storage track name.
Definition: Train.h:289
PDF Name array.
Definition: PDFPrinterSupport.h:346
graph_traits< CompressedGraph >::vertex_descriptor CompressedNode
Compressed Graph Vertex type.
Definition: TrackGraph.h:808
int last_line
Definition: MRRXtrkCad.tab.h:170
PathName()
Default constructor.
Definition: PathName.h:83
int currentColumn
Current column.
Definition: PDFPrinter.h:190
double CompressedNodePositionY(int cnid) const
X Coordinate of a Compressed Node position.
Definition: ParseFile.h:587
bool TrainCarPickupCheck(Car *car, Train *train, bool boxMove, CarVector &consist, bool &didAction, int Px, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Check to see if we can really pick up this car.
bool GetBlueButton7() const
Get Blue Button 7.
Definition: RaildriverIO.h:377
bool printYards
Flag for printing yard switch lists.
Definition: System.h:1102
void ShowTrainTotals(const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner) const
Show train totals.
int DuplicateStationIndex() const
Return the duplicate station index.
Definition: Station.h:595
string name
The name of the industry.
Definition: Industry.h:281
bool Sense_2() const
Sense 2, return true if input line 2 was activated since last get status.
Definition: sl2.h:123
int priority
The industry's priority.
Definition: Industry.h:299
double Departure() const
Accessor for the departure time.
Definition: TimeTableSystem.h:205
CarGroup(CarGroup &other)
Copy constructor.
Definition: CarType.h:189
bool Print() const
Return the train's print flag.
Definition: Train.h:271
unsigned char Digital2
Blue Buttons 9-16.
Definition: RaildriverIO.h:743
Master catalog of the PDF file.
Definition: PDFPrinterSupport.h:1153
bool GetBlueButton3() const
Get Blue Button 3.
Definition: RaildriverIO.h:349
char * sensescript
Sense Script (occupation / point).
Definition: TrackGraph.h:613
const char * TrainsFile() const
Return the trains file's full path name.
Definition: System.h:240
const char * NameOfNode(int nid) const
Return a block's or switchmotor's name.
Definition: ParseFile.h:502
@ Sensor
Sensor.
Definition: TrackGraph.h:532
SegPos ePos2
Second end point position.
Definition: TrackGraph.h:191
string title
The document title.
Definition: PostScriptPrinter.h:146
int headerword
Definition: lcc.tcl:74
float a
Angle of track endpoint.
Definition: TrackBody.h:89
float minY
Minimum $Y$ coordinate.
Definition: TrackGraph.h:255
bool Input_3_Enabled() const
Input 3 enabled? Return true if I3 can affect outputs.
Definition: sl2.h:177
const Train * LastTrain() const
Return the train train for the car this switch list element is for.
Definition: SwitchList.h:159
@ BLOCK
Definition: ParserClassesGroup.h:155
CompressedEdgePairVector CompressedGraphPrimMinimumSpanningTree()
Run the prim_minimum_spanning_tree algorithm and return a Parent Vector.
@ Passenger
A Passenger train.
Definition: Train.h:149
int ClassNumber() const
Return the class number.
Definition: Train.h:350
CornuBodyEltType TheType() const
Type accessor.
Definition: CornuBody.h:135
@ cmd_ClearExternallyChanged
Clear Externally Changed (MRD2 only)
Definition: Azatrax.h:165
TrackBody * CornuEnds()
Create a track endpoint list.
Definition: CornuBody.h:235
bool GetBlueButton2() const
Get Blue Button 2.
Definition: RaildriverIO.h:342
int GetStraightSegment(float &x1, float &y1, float &x2, float &y2) const
Fetch straight segment data.
Definition: BezierBody.h:157
string divisionControlList
The division control list.
Definition: Industry.h:290
ResourceDictionary(unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:476
void PrintDispatcher(string banner, char trainType, FCFSupport::PrinterDevice *printer) const
Print dispatcher report sheets.
@ END
Definition: ParserClassesGroup.h:117
NodeType
Node types.
Definition: TrackGraph.h:508
const Occupied * UpdateStoredTrain(double from, double to, string train)
Replace a stored arrrival train.
void SetOkToMirrorP(bool m)
Set this car's mirror status.
Definition: Car.h:258
int twobits
Definition: lcc.tcl:29
virtual void InitializeTrainDisplay(string name, int stationCount, int maxLength, int maxCars) const
Initialize the train status display.
Definition: CallBack.h:221
IntegerList * heads
Uncompressed graph heads (strong components).
Definition: TrackGraph.h:720
unsigned int sense_1
Sense 1.
Definition: sl2.h:215
@ LAYERS
Definition: ParserClassesGroup.h:126
const char * SenseScript(int nid) const
Return a block's or switchmotor's sense script.
bool ReadGroupLimit(istream &stream, const char *label, int &value, const char *filename, char **outmessage=NULL)
Utility to read a group limit.
@ STRAIGHT
Definition: ParserClassesGroup.h:133
System()
The default constructor.
Definition: System.h:205
float origx
X coordinate of the base of the signal.
Definition: TrackGraph.h:628
@ WIPER
Wiper switch.
Definition: RaildriverIO.h:216
const char * OrdersFile() const
Return the train orders file's full path name.
Definition: System.h:243
List of track endpoints (T and E lines).
Definition: TrackBody.h:134
const char * Comment() const
Return commentary about this owner.
Definition: Owner.h:115
A Grid Connect formatted CAN message (reply).
Definition: lcc.tcl:906
unsigned int motor_2_direction
Motor 2 direction.
Definition: sl2.h:201
OpenLCB Message type.
Definition: lcc.tcl:1169
Station * StationStop(int index) const
Return the Ith station stop this train makes.
Definition: Train.h:312
@ cmd_Q3posQ4neg
(SL2 only) Sets output terminal Q3 to positive, Q4 to negative.
Definition: Azatrax.h:177
Turnout route list structure.
Definition: TrackGraph.h:344
BezierBody * tbb
Definition: MRRXtrkCad.tab.h:76
File-based parser classes.
Definition: ParserClassesGroup.h:93
void SetCab(Cab *newcab)
Update the cab.
Definition: Train.h:213
const IntegerList * Roots()
Compressed graph roots.
Definition: TrackGraph.h:1122
struct tm * localtime_r(const time_t *, struct tm *)
bool Sense_3_Live() const
Sense 3, return true if input line 3 is now activated.
Definition: sr4.h:259
bool Sense_3_Latch() const
Sense 3, return true if input line 3 was activated since last get status.
Definition: sr4.h:187
IntegerList * il
Definition: MRRXtrkCad.tab.h:80
int CarsAtDest() const
Return the number of cars that are at their destinations.
Definition: System.h:479
string comment
The commentary string.
Definition: CarType.h:142
const double IScale
Definition: MRRXtrkCad.tab.h:43
configure(path,...)
Procedure to configure a LabelComboBox.
SwitchListElement & operator[](int ielement)
Random index access to the switch list.
void SetLdLmt(int ldw)
Set the car's load limit.
Definition: Car.h:240
bool GetBlueButton9() const
Get Blue Button 9.
Definition: RaildriverIO.h:391
@ DIGITAL6
Cab Buttons, Whistle.
Definition: RaildriverIO.h:260
listtype bytelist
Definition: lcc.tcl:94
char group
The car group code.
Definition: CarType.h:223
static char ** AllConnectedDevices()
List serial numbers of all connected devices.
This class implements a stop.
Definition: Train.h:139
@ DIGITAL1
Blue Buttons 1-8.
Definition: RaildriverIO.h:228
static void InitTSegId()
Segment count initializer.
Definition: CornuBody.h:129
void SetOriginStorageTrack(string trackname)
Set the origin storage track.
FCFSupport::Industry * TheIndustry(int i)
Industry indexing function.
Definition: System.h:338
int source_line
Source line number.
Definition: ParseFile.h:382
List of Bezier body lines (T, E, S, and C lines).
Definition: BezierBody.h:196
ErrorCode ClearExternallyChanged() const
Clear ‘ExternallyChanged’ status bit.
Definition: mrd.h:122
GrType tgType
Segment type.
Definition: TrackGraph.h:178
CarType(const char *c, const char *t, char g)
Full constructor.
Definition: CarType.h:118
@ MAPSCALE
Definition: ParserClassesGroup.h:120
@ valid
Currently valid.
Definition: lcc.tcl:136
streampos fileOffset
The file position.
Definition: PDFPrinterSupport.h:265
bool GetBlueButton18() const
Get Blue Button 18.
Definition: RaildriverIO.h:454
@ DIGITAL2_M
Blue Buttons 9-16.
Definition: RaildriverIO.h:140
~PageLabelDictionary()
Destructor.
Definition: PDFPrinterSupport.h:851
MRD(const char *serialnumber, char **outmessage=NULL)
Base constructor.
Definition: mrd.h:79
@ C
Definition: ParserClassesGroup.h:151
float y
$Y$ coordinate of track endpoint.
Definition: TrackBody.h:86
@ None
Placeholder.
Definition: CornuBody.h:83
bool IsCompressedNode(int cnid) const
Is cid a node in the compressed graph?
void ShowTrainCars(const Train *Tx, const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner) const
Show cars moved by a specific train.
Train(TimeTableSystem *timetable=NULL, string name="", string number="", int speed=0, int classnumber=0, int departure=0, int start=0, int end=-1)
Create and initialize a train object.
unpost(path,...)
Pass through procedure for the ComboBox unpost function.
CarTypeConsts
Some specific constants relating to car types.
Definition: CarType.h:82
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write an object directly.
static void CleanUpBezierBody(BezierBody *trb)
Free up memory.
Definition: BezierBody.h:250
float x
X value of edge.
Definition: TrackGraph.h:553
void RemoveNoteFromStop(int istop, int note)
Remove a note from a stop.
bool PrintAlpha() const
Print the alphabetical listing flag.
Definition: System.h:516
bool fixedP
This car's fixed route flag.
Definition: Car.h:401
std::list< int > segments
List of uncompressed node ids.
Definition: TrackGraph.h:779
Indirect array of floats.
Definition: PDFPrinterSupport.h:992
@ D
Definition: ParserClassesGroup.h:141
static TrackBodyElt * ConnectedTrackEnd(int ind, float X, float Y, float A)
Create a connected track endpoint.
Definition: TrackBody.h:100
static BezierBodyElt * MakeStraightSegment(float x1, float y1, float x2, float y2)
Create a straight segment (S lines).
Definition: BezierBody.h:145
CrossReferenceTable()
Constructor.
_destroy(path)
Destructor function.
char * reverseactionscript
Reverse action script.
Definition: TrackGraph.h:619
const StringPairList * SignalAspects(int nid) const
Return a Signal's aspect list.
Definition: ParseFile.h:517
TrackBody * BezierEnds()
Create a track endpoint list.
Definition: BezierBody.h:226
PostScriptPrinterDevice(const string filename="", const string title_="", PageSize pageSize=Letter, char **outmessage=NULL)
Constructor.
uint8_t stopwatchMinutes
Stopwatch minutes (MRD2 only)
Definition: Azatrax.h:437
char type
The industry type.
Definition: Industry.h:329
ofstream printerStream
Output stream.
Definition: PostScriptPrinter.h:143
PDF Printer device.
Definition: PDFPrinter.h:71
PDF Dictionary class.
Definition: PDFPrinterSupport.h:308
Definition: MRRXtrkCad.tab.h:164
TrackBodyElt * tbe
Definition: MRRXtrkCad.tab.h:73
int CarsNum() const
Return the number of cars.
Definition: Industry.h:258
TypedDictionary * encodingDictionary
Encoding as a dictionary.
Definition: PDFPrinterSupport.h:1121
int TurnoutNumber(int nid) const
Return a switchmotor's turnout number.
IndustryMap::const_iterator LastIndustry() const
Iterator of one past the last industry in the industry map.
Definition: System.h:914
int MaxWeight() const
Return the train's maximum weight class.
Definition: Train.h:254
int Departure() const
Return the departure time.
Definition: Train.h:340
Industry * carDest
A temporary for a car's location.
Definition: System.h:1063
bool operator>(const PathName other) const
Greater than operator.
Definition: PathName.h:131
char * text
Definition: MRRXtrkCad.tab.h:172
bool printDispatch
Flag for printing a dispatcher's report.
Definition: System.h:1117
void PrintCarTypesSummaryHeader(FCFSupport::PrinterDevice *printer) const
Print car type summary header.
void GetTurnoutRoute(char *&pName, IntegerList *&cList) const
Fetch turnout route data.
Definition: TurnoutBody.h:194
char * normalactionscript
Normal action script.
Definition: TrackGraph.h:616
ErrorCode SetQ1negQ2pos() const
Sets output terminal Q1 to negative, Q2 to positive.
Definition: sl2.h:87
Typed dictionary.
Definition: PDFPrinterSupport.h:362
int HighestNode() const
Returns the highest numbered node id.
void UpdateStopCab(int istop, Cab *cab)
Update the cab.
~Station()
Destructor.
Definition: Station.h:582
const char * ReverseActionScript(int nid) const
Return a block's or switchmotor's reverse action script.
void PrintCarTypesHeader(FCFSupport::PrinterDevice *printer) const
Print the car type header.
float L
$L$ value (for J lines).
Definition: TurnoutBody.h:158
int MaxClear() const
Return the train's maximum clearance plate.
Definition: Train.h:251
SwitchListElement & operator=(const SwitchListElement &other)
Assignment operator.
Definition: SwitchList.h:108
int carMovements
The number of cars movements.
Definition: System.h:1090
int YY_MRRXtrkCad_NERRS
Definition: MRRXtrkCad.tab.h:527
Union of stations or industries, used for stops.
Definition: Train.h:328
BezierBodyElt * element
Current element.
Definition: BezierBody.h:199
ErrorCode DisableExternal() const
Disable external changes of turnout state.
Definition: mrd.h:127
map< TimeRange, Occupied, less< TimeRange > > OccupiedMap
The Occupied Map type, ordered by time ranges.
Definition: Station.h:271
@ TurnoutEnd
T or E line.
Definition: TurnoutBody.h:92
unsigned char Digital5
Pan, Cab buttons.
Definition: RaildriverIO.h:753
unsigned int input_3_enabled
Input 3 enabled?
Definition: sr4.h:319
const char * IndustriesFile() const
Return the industry file's full path name.
Definition: System.h:237
int LimitCars() const
Return the limit count.
Definition: SwitchList.h:282
int WeightClass() const
Return the car's weight class.
Definition: Car.h:225
double from
Start time.
Definition: Station.h:260
void RemoveNoteFromTrain(int note)
Remove a note.
Definition: Train.h:376
@ DIGITAL2
Blue Buttons 9-16.
Definition: RaildriverIO.h:234
Position structure.
Definition: TurnoutBody.h:130
virtual bool OpenPrinter(const string filename, PageSize pageSize_=Letter, char **outmessage=NULL)
Member function to open the printer.
Definition: Printer.h:284
~Cab()
Clean things up.
Definition: Cab.h:92
const StringPairList * SignalAspects(int nid) const
Return a Signal's aspect list.
int maxweight
The maximum weight class for this train.
Definition: Train.h:366
Status byte 2 union type (Input sense)
Definition: sr4.h:291
@ ROOMSIZE
Definition: ParserClassesGroup.h:121
Train * TrainByIndex(int i)
Train indexing function.
Definition: System.h:305
const char * Name() const
Return the name of the cab.
Definition: Cab.h:95
const IntegerList * Roots()
Compressed graph roots.
Definition: ParseFile.h:581
CornuBody * tcb
Definition: MRRXtrkCad.tab.h:78
const char * OnScript(int nid) const
Return the on action script.
Definition: ParseFile.h:533
Implements a CAN Alias.
Definition: lcc.tcl:1055
CarGroup * TheCarGroup(int i) const
Get a car class instance pointer given a car group index.
Definition: System.h:378
bool ExternallyChanged() const
Externally changed?
Definition: mrd.h:191
@ Forward
Forward.
Definition: xpressnet.tcl:527
void PrintCarHeading(FCFSupport::PrinterDevice *printer) const
Print the car heading.
PageLabelTree(unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:889
int trackLen
The track length.
Definition: Industry.h:293
@ DIGITAL1_M
Blue Buttons 1-8.
Definition: RaildriverIO.h:134
void TrainLocalDrops(Train *train, int Px, CarVector &consist, bool &didAction, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Drop cars from a local (box move or way freight).
string FullPath() const
Return the full pathname.
Definition: PathName.h:163
File to parse an XTrkCad layout file and create a track graph.
Definition: ParseFile.h:429
const char * Number() const
Return the number (or symbol) of the train.
Definition: Train.h:337
OwnerMap::const_iterator LastOwner() const
Iterator of one past the last owner in the owner map.
Definition: System.h:926
TrainMap trains
Train map.
Definition: System.h:976
virtual bool SetTypeSlant(TypeSlant slant)
Set the type slant.
bool GetBlueButton21() const
Get Blue Button 21.
Definition: RaildriverIO.h:475
const string FormatDutyTime(int dutytimeminutes) const
Format the on duty time in a human readable format.
bool printem
Flag for printing train movements.
Definition: System.h:1120
bool GetBlueButton22() const
Get Blue Button 22.
Definition: RaildriverIO.h:482
@ TEXT
Definition: ParserClassesGroup.h:137
double to
End time.
Definition: Station.h:263
vector< double > doubleVector
A Vector of doubles.
Definition: TimeTableSystem.h:97
~PageTree()
Destructor.
Definition: PDFPrinterSupport.h:767
double Until() const
Return the end time.
Definition: Station.h:125
bool GetEBrakeUp() const
Get Emergency Brake Up.
Definition: RaildriverIO.h:587
std::list< int >::size_type FindSegmentIndex(int segment) const
Return the segment index for a given segment.
Definition: TrackGraph.h:782
int GetCurveSegment(float &r, float &x, float &y, float &a0, float &a1) const
Fetch curve segment data.
Definition: CornuBody.h:179
~TrackBody()
Destructor.
Definition: TrackBody.h:149
PDFFileStructures::Page * currentPage
Current PDF Page.
Definition: PDFPrinter.h:148
CrossReferenceTable * table
The cross referece table we are in.
Definition: PDFPrinterSupport.h:268
bool HasOffset() const
Does the object have a file offset?
Definition: PDFPrinterSupport.h:229
union RaildriverIO::@9 RDInput
Event data.
void RunOneLocal(Train *train, bool boxMove, CarVector &consist, const FCFSupport::TrainDisplayCallback *traindisplay, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
One one local train.
const TurnoutGraphic * NodeTurnoutGraphic(int nid) const
Returns the TurnoutGraphic of the node.
Definition: ParseFile.h:485
FILE * fp
Input file pointer.
Definition: ParseFile.h:379
BezierBodyEltType
Element types.
Definition: BezierBody.h:80
int id
Node number.
Definition: TrackGraph.h:589
bool StringToIntRange(string str, int &result, int minv, int maxv, const char *message, char **outmessage=NULL) const
Convert a string to an integer and check its range.
_openFile(path)
Prodedure bound to the file open button.
virtual ~Dictionary()
Destructor.
Definition: PDFPrinterSupport.h:323
ErrorCode RelaysOn(bool Q1, bool Q2, bool Q3, bool Q4)
Set output relay contacts on.
Definition: sr4.h:128
bool operator>=(const PathName other) const
Greater than or equal operator.
Definition: PathName.h:143
TurnoutBody * next
Next element.
Definition: TurnoutBody.h:288
void AddIndirectObjectToTable(IndirectObject *obj)
Add an indirect object to the cross reference table.
Status byte 3 union type (Input Control Status)
Definition: sr4.h:309
Train()
Default constructor.
Definition: Train.h:155
uint8_t packetCount
Packet counter (All Devices)
Definition: Azatrax.h:419
FlagType Flag() const
Return the flag.
Definition: Train.h:249
int carsNum
The number of cars.
Definition: Industry.h:311
_path_command(path, cmd, larg)
Path command for this megawidget.
FlagType flag
The type of stop, originating, terminating, or passing through.
Definition: Train.h:286
bool ContainsTime(double time) const
Does this interval contain the specified time?
Definition: Station.h:201
Division & operator=(Division &other)
Assignment operator.
Definition: Division.h:93
int assignLen
The assignable length.
Definition: Industry.h:296
Owner * TheOwner(const char *initials)
Get a car owner class instance pointer given a car owner's initials.
Definition: System.h:387
virtual ostream & WriteDirect(ostream &stream) const
Write an object directly.
Definition: PDFPrinterSupport.h:327
void ReportIndustries(const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL) const
Report on all industries.
int HighestNode() const
Returns the highest numbered node id.
Definition: ParseFile.h:543
int index
Index of connected track (T lines only).
Definition: TrackBody.h:80
void UnLoad()
Unload the car.
Definition: Car.h:252
void PrintDashedLine(FCFSupport::PrinterDevice *printer) const
Print a dashed line.
SegPos ePos1
First end point position.
Definition: TrackGraph.h:188
virtual void yyerror(char *msg)
void yyerror1(const char *message, const char *s) const
Work In Progress Callback.
Definition: CallBack.h:77
~PathName()
Destructor.
Definition: PathName.h:101
@ Control
Control.
Definition: TrackGraph.h:535
char * name
Name of block or switch motor.
Definition: TrackGraph.h:610
int carsMoved
The number of cars moved.
Definition: System.h:1069
bool circleLayoutP
Has CompressedGraphCircleLayout been run?
Definition: TrackGraph.h:827
virtual ~MRRXtrkCad()
Definition: ParserClassesGroup.h:191
void ReportLocIndustry(IndustryMap::const_iterator Ix, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL)
Print a location report for one industry.
float x
$X$ coordinate.
Definition: BezierBody.h:113
@ TurnoutSolenoid
Turnout, Solenoid (momentary action)
Definition: mrd.h:97
Industry * mirror
The mirror industry or NULL if there is no mirror industry.
Definition: Industry.h:278
int GetStraightSegment(float &x1, float &y1, float &x2, float &y2) const
Fetch straight segment data.
Definition: CornuBody.h:157
bool GetBlueButton26() const
Get Blue Button 26.
Definition: RaildriverIO.h:510
Base class to connect to a CAN bus using GridConnect formatted message over.
Definition: lcc.tcl:1240
Train & operator=(Train &other)
Assignment operator.
Definition: Train.h:182
void AddExternalGraphicsState(const string name, IndirectObject *obj)
Add an External Graphics State resource.
Definition: PDFPrinterSupport.h:493
virtual bool Tab(int column)
Tab over to the specified column.
const char * SystemFile() const
Return the system file's full path name.
Definition: System.h:234
int totalPickups
The total number of pickups.
Definition: System.h:1015
verifyPositionMethod()
Macro to add a verify position method to a snit type.
string comment
The station's comment.
Definition: Station.h:150
bool Done() const
Return the train's done flag.
Definition: Train.h:278
unsigned short int myProductId
Product id.
Definition: Azatrax.h:409
unsigned int reservered
reserved bits
Definition: sr4.h:287
bool Input_4_Enabled() const
Input 4 enabled? Return true if I4 can affect outputs.
Definition: sr4.h:241
@ MAIN
Definition: ParserClassesGroup.h:138
Azatrax(const char *serialnumber, unsigned short int idProduct, char **outmessage=NULL)
Base constructor.
map< int, Train *, less< int > > TrainMap
A map of trains, indexed by integer (train index).
Definition: Train.h:388
const Owner * CarOwner() const
Return the car's owner.
Definition: Car.h:267
bool LoadedP() const
Is the car loaded?
Definition: Car.h:243
IdNodeMap idMap
Node Id map.
Definition: TrackGraph.h:717
int NumberOfStops() const
Return the number of stops this train makes.
Definition: Train.h:294
void PrintOneCarType(bool totalsOnly, char carType, const CarType *ct, int &OnLineShippersOfType, int &OffLineShippersOfType, int &OnLineReceiversOfType, int &OffLineReceiversOfType, int &allTotalMoves, int &allTotalAssigns, FCFSupport::PrinterDevice *printer) const
Print one car type.
bool GetBlueButton25() const
Get Blue Button 25.
Definition: RaildriverIO.h:503
char Group() const
Return the car type's group code.
Definition: CarType.h:134
CompressedEdgePairVector CompressedGraphKruskalMinimumSpanningTree()
Run the kruskal_minimum_spanning_tree algorithm and return a vector of edge pairs.
void AddOwner(const char *initials)
Create a new owner given a set of initials.
Definition: System.h:391
CarType & operator=(CarType &other)
Assignment operaror.
Definition: CarType.h:106
@ cmd_Q1Q2open
(SL2 only) Outputs Q1 & Q2 both set to open circuit (disconnects switch machine #1)
Definition: Azatrax.h:175
Position structure.
Definition: BezierBody.h:111
struct azatrax::SL2::status1_union::@3 theBits
Status byte as bit fields.
void SetDuplicateStationIndex(int index)
Set the duplication station index.
Definition: Station.h:599
const char * SerialNumber() const
Serial Number.
Definition: Azatrax.h:308
ShowBannerCallback()
Constructor.
Definition: CallBack.h:176
uint8_t theByte
Status byte as a byte.
Definition: sl2.h:229
bool wayFreight
Way freight flag.
Definition: System.h:1030
TurnoutBodyEltType theType
Element type.
Definition: TurnoutBody.h:112
float x
$X$ coordinate.
Definition: CornuBody.h:113
@ cmd_GetStateData
Get State Data (All devices)
Definition: Azatrax.h:193
float ang1
Second angle.
Definition: TrackGraph.h:200
void SetType(char t)
Set the car type.
Definition: Car.h:180
void PrintLocCommon(FCFSupport::PrinterDevice *printer)
Print a header for all location reports.
void SetPrintem(bool flag)
Set the print train enroute switch list.
Definition: System.h:555
virtual void ParseError(const char *)=0
The parser's error handler, supplied by derived classes.
int AppendIndustry(FCFSupport::Industry *industry)
Append an industry to this station's list of industries.
Definition: Station.h:136
void ShowCarsInDivision(const Division *division, const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner) const
Show cars in a specificed division.
DivisionMap::const_iterator FirstDivision() const
Iterator of the first division in the division map.
Definition: System.h:893
TimeRange & operator=(const TimeRange &other)
Assign a TimeRange to another TimeRange.
Definition: Station.h:244
const IntegerList * Heads()
Uncompressed graph heads.
Definition: TrackGraph.h:1115
ChCodes
Special character codes.
Definition: LQ24Printer.h:168
istream & Read(istream &stream, const CabNameMap cabs)
Read an object from a stream.
void SetPrintList(bool flag)
Set the print switch list order flag.
Definition: System.h:534
int speed
The train's speed.
Definition: Train.h:463
virtual bool PutLine(const string line)
Print out a string and follow it with a new line sequence.
A deleted indirect object.
Definition: PDFPrinterSupport.h:278
Station(const char *n, Division *d, const char *c)
Full constructor.
Definition: Station.h:105
int trainLongest
The longest a train has been.
Definition: System.h:1051
std::vector< CompressedEdgePair > CompressedEdgePairVector
Definition: TrackGraph.h:539
CarType()
Default constructor.
Definition: CarType.h:94
vector< string > stringVector
A Vector of strings.
Definition: PathName.h:69
char symbol
The division's symbol.
Definition: Division.h:162
const Occupied * IncludesTime(double time) const
Return the occupation that includes the specified time;.
TrackBody(TrackBodyElt *Element, TrackBody *Next)
Constructor.
Definition: TrackBody.h:145
ErrorCode SetQ3negQ4pos() const
Sets output terminal Q3 to negative, Q4 to positive.
Definition: sl2.h:93
@ JOINT
Definition: ParserClassesGroup.h:135
bind(path,...)
Bind function.
unsigned char Wiper
Wiper switch, 0-255.
Definition: RaildriverIO.h:734
listtype databuf
Definition: lcc.tcl:150
void AddNoteToTrain(int note)
Add a note.
Definition: Train.h:366
virtual bool PutLine(const string line="")
Print out a string and follow it with a new line sequence.
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write an object directly.
const char * Comment() const
Return the car type's commentary.
Definition: CarType.h:128
static const int buffersize
Size of line buffer.
Definition: ParseFile.h:385
int length
Definition: lcc.tcl:49
float length
Length of segment.
Definition: TrackGraph.h:218
Definition: MRRXtrkCad.tab.h:359
bool ReadIndustries(char **outmessage=NULL)
Read in the industries file.
static const unsigned short int PIEngineering
Rail Driver vendor code.
Definition: RaildriverIO.h:666
TrackBody * next
Next element.
Definition: TrackBody.h:141
@ CornuStraightSegment
S line.
Definition: CornuBody.h:89
@ cmd_Identify_2
Identify LED 2 (MRD2 only)
Definition: Azatrax.h:187
unsigned char GetHeadlight() const
Get Headlight value (0-255).
Definition: RaildriverIO.h:325
virtual bool SetTypeSlant(TypeSlant slant)
Set the type slant.
char * nid
Node ID regexp pattern. A Node Id is six bytes as pairs of hex digits separacted by colons (:).
Definition: lcc.tcl:1028
float OrigX(int nid) const
Return the $x$ coordinate of the signal base.
Definition: ParseFile.h:521
unsigned int modtype
Module type.
Definition: mrd.h:241
@ idAzatraxVendor
Azatrax vendor id.
Definition: Azatrax.h:277
virtual int Parse()=0
The parser itself, supplied by derived classes.
void AddSwitchListElement(const Industry *pickloc, const Car *pickcar, const Train *picktrain, const Train *lasttrain, const Industry *istop)
Add a switch list element for a manifest freight (industry stop).
double Random()
Return a random number between 0.0 and 1.0.
Definition: System.h:575
SwitchList switchList
Switch lists.
Definition: System.h:1000
Stream object.
Definition: PDFPrinterSupport.h:654
unsigned int sense_2
Sense 2.
Definition: sl2.h:217
void SetDone()
Flag this car as done.
Definition: Car.h:276
The Owner class describes a car owner.
Definition: Owner.h:67
virtual ~TextPrinterDevice()
Destructor.
struct azatrax::Azatrax::StateDataPacket stateDataPacket
Train * TrainByName(const char *name)
Train indexing (by name) function.
Definition: System.h:320
@ Undefined
Undefined type.
Definition: TrackGraph.h:511
Pos pos2
Second position.
Definition: TurnoutBody.h:143
double CompressedNodePositionX(int cnid) const
X Coordinate of a Compressed Node position.
~Division()
Destructor.
Definition: Division.h:117
ParseFile(const char *filename)
Constructor.
Definition: ParseFile.h:409
int NumberOfCars() const
Definition: System.h:382
A rectangle object.
Definition: PDFPrinterSupport.h:590
int NumberOfDivisions() const
return the number of divisions loaded.
Definition: System.h:258
int twelvebits
Definition: lcc.tcl:59
const string UpperCase(const string str) const
Convert a string to all uppercase letters.
@ T
Definition: ParserClassesGroup.h:145
Callback to manage a train status display.
Definition: CallBack.h:199
struct RaildriverIO::@9::bytes theBytes
_destroy(path)
Destructor function.
static int segCount
Counter for S and C segments.
Definition: BezierBody.h:97
verifyOrientation8Method()
Macro to add a verify 8-way orientation method to a snit type.
const Industry * pickLoc
The pickup industry.
Definition: SwitchList.h:197
int id
Node number.
Definition: TrackGraph.h:770
const char * StorageTrackName() const
Return storage track name.
Definition: Train.h:252
@ UpperLetters
Uppercase letters.
Definition: PDFPrinterSupport.h:830
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write an object directly.
static unsigned short int GetProductId(libusb_device *dev, const char *serialnumber, unsigned short int idProductMatch=0)
Return the matching product id for this device and serial number.
listtype eightbytes
Definition: lcc.tcl:84
bool FixedRouteP() const
Is this car on a fixed route?
Definition: Car.h:261
bool Printem() const
Print train enroute switch list.
Definition: System.h:551
char * source_file
Name of the source file.
Definition: ParseFile.h:400
@ L
Definition: ParserClassesGroup.h:142
unsigned int reserved
Reserved bits.
Definition: sl2.h:241
uint8_t commandEcho
Command Echo byte.
Definition: Azatrax.h:417
char Area() const
Return the division's area.
Definition: Division.h:129
Rectangle * mediaBox
This page's media box.
Definition: PDFPrinterSupport.h:732
vector< SwitchListElement > SwitchListElementVector
A vector of switch list elements.
Definition: SwitchList.h:219
AbstractMessage()
Define common variables and accessor methods.
const CornuBodyElt * Element() const
Return current element.
Definition: CornuBody.h:273
double until
The end time of the occupation.
Definition: Station.h:171
float routeLength
Length of the route.
Definition: TrackGraph.h:332
int shift
The train's shift.
Definition: Train.h:357
~PathName()
Destructor.
Definition: PathName.h:97
virtual bool Put(const string text)
Print a string of text.
Azatrax I/O Class.
Definition: Azatrax.h:115
SwitchListElement()
Default constructor.
Definition: SwitchList.h:88
ErrorCode PulseRelays(bool Q1, bool Q2, bool Q3, bool Q4, uint8_t duration)
Pulse output relay contacts.
Definition: sr4.h:145
void Stopwatch(uint8_t &fract, uint8_t &seconds, uint8_t &minutes, uint8_t &hours) const
Stopwatch time.
Definition: mrd.h:217
Type1FontDictionary(const string basefont, int firstchar, int lastchar, IndirectFloatVector *widths_, TypedDictionary *fontdescriptor, TypedDictionary *encoding, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:1073
TrainType
Types of trains.
Definition: Train.h:134
virtual bool ClosePrinter(char **outmessage=NULL)
Close the printer.
void ResetIndustryStats()
Reset industry statistics.
bool isOpenP
Is open flag.
Definition: Printer.h:408
@ cmd_Identify_1
Identify LED 1 (All devices)
Definition: Azatrax.h:185
@ TurnoutCurveSegment
C line.
Definition: TurnoutBody.h:101
int LowestNode() const
Returns the lowest numbered node id.
Definition: ParseFile.h:540
~CrossReferenceTable()
Destructor.
Definition: PDFPrinterSupport.h:113
bool ResetStatus() const
Reset status?
Definition: mrd.h:179
OccupiedMap::const_iterator LastOccupied() const
Return a const iterator for the last occupation.
Definition: Station.h:418
FreedObject(unsigned long int objNum, unsigned short int genNum, CrossReferenceTable *tab)
Constructor.
Definition: PDFPrinterSupport.h:286
~PDFNameArray()
Destructor.
Definition: PDFPrinterSupport.h:353
string title
Title string.
Definition: PDFPrinter.h:163
CarVector cars
The vector of cars at this industry.
Definition: Industry.h:272
int FindIndustryIndex(const FCFSupport::Industry *industry) const
Find an industry's index.
void CompressGraph()
Create a compressed graph.
@ idMRDProduct
MRD2 Product id.
Definition: Azatrax.h:279
Status byte 3 union type (Input control state)
Definition: sl2.h:227
int Speed() const
Return the train's speed.
Definition: Train.h:347
@ INDEPENDBRK_M
Independent Brake lever.
Definition: RaildriverIO.h:109
Station * station
The station this industry is at.
Definition: Industry.h:275
void SetPrintAlpha(bool flag)
Set the print alphabetical listing flag.
Definition: System.h:520
static CornuBodyElt * MakeCurveSegment(float r, float x, float y, float a0, float a1)
Create a curve segment (C lines).
Definition: CornuBody.h:165
@ cmd_RestoreLEDFunction
Restore LED Function (All devices)
Definition: Azatrax.h:183
static int NumberOfOpenDevices()
Open device count.
Definition: Azatrax.h:135
unsigned char ProductCodeId
Product Code Id, usually 210.
Definition: RaildriverIO.h:760
virtual void UpdateTrainDisplay(string currentStationName, string currentStopName, int trainLength, int numberCars, int trainTons, int trainLoads, int trainEmpties, int trainLongest, int currentStop) const
Update the train display.
Definition: CallBack.h:248
DivisionMap::const_iterator LastDivision() const
Iterator of one past the last division in the division map.
Definition: System.h:896
virtual bool OpenPrinter(const string filename, PageSize pageSize=Letter, char **outmessage=NULL)
Member function to open the printer.
float origy
Y coordinate of the base of the signal.
Definition: TrackGraph.h:631
FCFSupport::Car * TheCar(int i) const
Return the indexed car at this industry.
Definition: Industry.h:246
void PrintAllCarTypes(bool totalsOnly, FCFSupport::PrinterDevice *printer) const
Print all car types.
const Occupied * UpdateStoredTrainDeparture(double from, double to, double newDeparture)
Update a train's departure time.
bool loadedP
This car's loaded flag.
Definition: Car.h:395
virtual ostream & WriteDirect(ostream &stream) const
Write an object directly.
Compressed graph edge values.
Definition: TrackGraph.h:737
@ DIGITAL3_M
Blue Buttons 17-24.
Definition: RaildriverIO.h:146
TurnoutBody(TurnoutBodyElt *e, TurnoutBody *n)
Basic constructor.
Definition: TurnoutBody.h:307
@ Signal
Signal.
Definition: TrackGraph.h:529
const char * NormalActionScript(int nid) const
Return a switchmotor's normal action script.
CarLocationType
Types of location report.
Definition: System.h:802
int carsMovedTwice
The number of cars moved two times.
Definition: System.h:1081
char PathSeparator() const
Return the pathname separater character.
float OrigX(int nid) const
Return the $x$ coordinate of the signal base.
int numheads
Number of heads.
Definition: TrackGraph.h:622
void SetPrintLtwice(bool flag)
Set the print a second copy of the switch list order flag.
Definition: System.h:541
unsigned int input_2_enabled
Input 2 enabled?
Definition: sl2.h:235
StopVector stops
The train's stops.
Definition: Train.h:475
ErrorCode sendByte(uint8_t commandByte) const
Send a command byte.
MRRXtrkCad(const char *filename)
The constructor function.
bool operator>=(const TimeRange &other) const
Greater than or equal operator.
Definition: Station.h:231
OccupiedMap occupations
Map of occupations.
Definition: Station.h:425
bool ReadCarTypes(char **outmessage=NULL)
Read in the car types file.
@ ESC
Escape.
Definition: LQ24Printer.h:186
FCFSupport::Industry * TheIndustry(int i) const
Return the Ith industry at this station.
Definition: Station.h:128
map< string, StationTimes, less< string > > TrainStationTimes
Map of station times, indexed by train number.
Definition: TimeTableSystem.h:234
unsigned char GetAutoBrake() const
Get Auto Brake value (0-255).
Definition: RaildriverIO.h:308
bool operator==(const PathName other) const
Equality operator.
Definition: PathName.h:119
virtual bool SetTypeSlant(TypeSlant slant)
Set the type slant.
Definition: Printer.h:346
int remLen
The remaining length.
Definition: Industry.h:323
Pos pos2
Second position.
Definition: BezierBody.h:120
int LowestNode() const
Returns the lowest numbered node id.
bool ReadStations(istream &stream, char **outmessage=NULL)
Read in the station map.
IndirectFloatVector(unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:999
void ClearTrips()
Clear the number of trips this car has had.
Definition: Car.h:318
virtual ~WorkInProgressCallback()
Destructor.
Definition: CallBack.h:88
Industry * destination
This car's destination.
Definition: Car.h:359
const Train * lasttrain
The last train to handle this car.
Definition: Car.h:350
Eventcodes
Event Codes.
Definition: RaildriverIO.h:174
TrackBodyElt(int ind=-1, float X=-1.0, float Y=-1.0, float A=0.0)
Constructor.
Definition: TrackBody.h:93
@ DIGITAL4_M
Blue Buttons 25-28, Zoom, Pan.
Definition: RaildriverIO.h:153
TurnoutBodyElt()
Constructor.
Definition: TurnoutBody.h:165
ResourceDictionary * resources
The page's resources.
Definition: PDFPrinterSupport.h:729
float EdgeLength(int nid, int edgenum) const
Returns the length of an edge.
Definition: ParseFile.h:479
Position structure.
Definition: CornuBody.h:111
@ complete
One frame datagram.
Definition: lcc.tcl:109
float radius
Radius value.
Definition: TrackGraph.h:194
void PrintOneCarInfo(const Car *car, FCFSupport::PrinterDevice *printer) const
Print one car's information.
@ None
Placeholder.
Definition: BezierBody.h:83
float CompressedEdgeLength(int cnid, int edgenum) const
Length of a compressed graph edge.
int Assignments() const
Return the number of assignments this car has had.
Definition: Car.h:324
vector< StationOrIndustry > stops
List of stops.
Definition: Train.h:342
double Layover() const
Return layover period.
Definition: Train.h:192
const char * SystemName() const
Return the system name.
Definition: System.h:231
virtual bool SetTypeSpacing(TypeSpacing spacing)
Set the the spacing.
Definition: Printer.h:338
virtual bool Tab(int column)
Move to the specified tab column.
PDFStreamVector contents
This page's contents vector.
Definition: PDFPrinterSupport.h:738
leverMethods(hasCenter)
Macro to add lever methods to object types.
double CompressedNodePositionX(int cnid) const
X Coordinate of a Compressed Node position.
Definition: ParseFile.h:584
CarTypeReport
Types of car type reports.
Definition: System.h:776
@ Transit
Definition: Train.h:146
static TrackBodyElt * UnConnectedTrackEnd(float X, float Y, float A)
Create a unconnected track endpoint.
Definition: TrackBody.h:110
MRD I/O Class.
Definition: mrd.h:71
include typemaps i
Definition: TclSocketCAN.i:69
static TurnoutBodyElt * MakeTurnoutJointSegment(float x, float y, float a, float l0, float l1, float r, float l)
Create a turnout joint segment (J lines).
Definition: TurnoutBody.h:245
void SetLocation(Industry *newloc)
Set the location of this car.
Definition: Car.h:306
ostream & Write(ostream &stream) const
Write object to a stream.
@ INTEGER
Definition: ParserClassesGroup.h:109
unsigned char Digital6
Cab Buttons, Whistle Switch.
Definition: RaildriverIO.h:757
ErrorCode SetQ1posQ2neg() const
Sets output terminal Q1 to positive, Q2 to negative.
Definition: sl2.h:85
Class for an LQ24 compatible printer.
Definition: LQ24Printer.h:65
TurnoutBody * trb
Definition: MRRXtrkCad.tab.h:74
Industry * originYard
Origin Yard.
Definition: System.h:1057
TurnoutBodyEltType TheType() const
Type accessor.
Definition: TurnoutBody.h:172
bool KamadaKawaiSpringLayoutP
Has CompressedGraphKamadaKawaiSpring been run?
Definition: TrackGraph.h:830
@ Origin
Definition: Train.h:146
static const string whitespace
String of white space characters.
Definition: System.h:1131
int Size() const
Return the number of elements in this dictionary.
Definition: PDFPrinterSupport.h:434
PathName()
Default constructor.
Definition: PathName.h:79
int start
Page numbering start.
Definition: PDFPrinterSupport.h:868
The Pause callback.
Definition: CallBack.h:264
char * asctime_r(const struct tm *, char *)
const char * Type() const
Return the car type name.
Definition: CarType.h:131
unsigned short int MyProductId() const
My product code.
Definition: Azatrax.h:326
PathName & operator+=(const PathName other)
Append a pathname.
~Page()
Destructor.
Definition: PDFPrinterSupport.h:709
void CleanUpElement()
Free up memory.
Definition: TurnoutBody.h:291
~Stop()
Destructor.
Definition: Train.h:189
TrainType Type() const
Return the train's type.
Definition: Train.h:281
~MRD()
Base destructor.
Definition: mrd.h:104
MRRXtrkCad parser class.
Definition: ParserClassesGroup.h:103
virtual bool NewPage(const string heading="")
Perform a page feed and print a heading.
~CarType()
Destructor.
Definition: CarType.h:125
unsigned int input_4_enabled
Input 4 enabled?
Definition: sr4.h:321
@ STRING
Definition: ParserClassesGroup.h:111
@ Unknown
An unknown type of train.
Definition: Train.h:137
PathName operator+(const PathName other)
Concatenate pathnames.
const char * Description() const
Return the descrition string.
Definition: CarType.h:215
int plate
This car's clearance plate.
Definition: Car.h:374
@ cmd_OutputRelayOn
(SR4 only) 2 bytes - Sets output relay contacts to 'on' state.
Definition: Azatrax.h:226
@ NONE
No bits set.
Definition: RaildriverIO.h:178
virtual ostream & WriteDirect(ostream &stream) const =0
Write an object directly.
void AppendStation(FCFSupport::Station *station)
Append an additional station to this division.
Definition: Division.h:143
virtual bool NewPage(const string heading="")
Perform a page feed and print a heading.
@ G
Definition: ParserClassesGroup.h:147
@ cmd_OutputRelayOff
2 bytes - Sets output relay contacts to 'off' state.
Definition: Azatrax.h:217
@ B
Definition: ParserClassesGroup.h:139
bool ElementP(int v) const
Is value in the list?
Definition: IntegerList.h:149
string trim(string line) const
Helper utility function to trim white space off the ends of a string.
bool printAlpha
Flag for printing alphabetical lists.
Definition: System.h:1105
OccupiedMap::const_iterator FirstOccupied() const
Return a const iterator for the first occupation.
Definition: Station.h:415
static CornuBodyElt * MakeStraightSegment(float x1, float y1, float x2, float y2)
Create a straight segment (S lines).
Definition: CornuBody.h:145
double CurrentScale
Definition: ParserClassesGroup.h:191
vector< Car * > CarVector
A vector of cars.
Definition: Industry.h:67
bool IsNodeP(int nid) const
Tests if a node id exists in the graph.
Definition: ParseFile.h:461
@ HEADLIGHT
Headlight switch.
Definition: RaildriverIO.h:222
int NumberOfStops() const
Return the number of stops.
Definition: Train.h:432
unsigned char GetThrottle() const
Get Throttle value (0-255).
Definition: RaildriverIO.h:303
static Azatrax * OpenDevice(const char *serialnumber, unsigned short int idProduct=0, char **outmessage=NULL)
Open an Azatrax device by serial number.
Indirect object base class.
Definition: PDFPrinterSupport.h:153
PageLabelDictionaryNumMap nums
Num nodes.
Definition: PDFPrinterSupport.h:939
bool mirrorP
This car's mirror flag.
Definition: Car.h:398
ErrorCode send3Bytes(uint8_t commandByte, uint8_t byte2, uint8_t byte3) const
Send a command bytewith 2 data bytes.
int fifteenbits
Definition: lcc.tcl:64
~TypedDictionary()
Destructor.
Definition: PDFPrinterSupport.h:378
hid_device * rdriverdev
Rail Driver Device.
Definition: RaildriverIO.h:684
Owner(const char *i, const char *n, const char *c)
The full constructor initalizes the class instance from user supplied parameters.
Definition: Owner.h:99
CarType(CarType &other)
Copy constructor.
Definition: CarType.h:98
Virtual base class for file-based parsers.
Definition: ParseFile.h:372
virtual void ProgressStart(const string Message) const
Start up the work in progress display.
Definition: CallBack.h:94
void ShowCarsNotMoved(const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner) const
Display cars not moved.
TrackBodyElt * element
Current element.
Definition: TrackBody.h:138
const char * NormalActionScript(int nid) const
Return a switchmotor's normal action script.
Definition: ParseFile.h:508
int EdgeIndex(int nid, int edgenum) const
Returns the node id of the specificed edge of the node.
Definition: ParseFile.h:467
uint8_t PacketCount() const
Packet count.
Definition: Azatrax.h:303
@ CURRENT
Definition: ParserClassesGroup.h:127
NumberStyle
Numbering style.
Definition: PDFPrinterSupport.h:815
int AssignLen() const
Return the assignable amount of track at this industry.
Definition: Industry.h:212
StationMap::const_iterator FirstStation() const
Iterator of the first station in the station map.
Definition: System.h:899
bool GetAlert() const
Get Alert.
Definition: RaildriverIO.h:601
static TrackBody * ConsTrackBody(TrackBodyElt *tbe, TrackBody *tb)
Prepend a track endpoint.
Definition: TrackBody.h:152
StationMap::const_iterator LastStation() const
Iterator of one past the last station in the station map.
Definition: System.h:902
StationTimes(double a=-1, double d=-1, Stop::FlagType f=Stop::Transit)
Constructor: create an entry for a time table cell.
Definition: TimeTableSystem.h:176
bool GetBlueButton14() const
Get Blue Button 14.
Definition: RaildriverIO.h:426
This is a specialized form of the LabelFrame widget containing a ComboBox Widget.
Definition: labelcombobox.tcl:31
PathName(string p)
Constructor, given a STL basic_string.
Definition: PathName.h:93
void RestartLoop()
Reset loop variables.
void SetAssignments(int a)
Set the number of assignments this car has had.
Definition: Car.h:327
static TurnoutBodyElt * MakeTurnoutEnd(TrackBodyElt *tbe)
Create an endpoint (T or E lines).
Definition: TurnoutBody.h:175
virtual bool Tab(int column)
Tab over to the specified column.
int index
Index of next segment.
Definition: TrackGraph.h:550
void ReportAnalysis(const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL) const
Industry analysis report.
Derived class for printing on generic plain text printers.
Definition: TextPrinter.h:67
bool PickTrainEq(int Gx, const Train *Tx) const
Is the selected element for the specificed train?
std::unordered_map< const char *, std::string, hash, eqstr > OptionHashMap
Definition: TimeTableSystem.h:137
const FCFSupport::Station * FindStationByName(string name, string comment) const
Station indexing (by name) function.
virtual bool SetTypeWeight(TypeWeight weight)
Set the type weight.
@ Roman
Upright.
Definition: Printer.h:330
int totalTons
The total number of tons.
Definition: System.h:1021
@ Italic
Italic.
Definition: Printer.h:333
bool GlobStringMatchHelper(string::const_iterator string_i, string::const_iterator string_e, string::const_iterator pattern_i, string::const_iterator pattern_e) const
Helper function for glob string matching.
_path_command(path, cmd, larg)
Path command for this megawidget.
@ _VERSION
Definition: ParserClassesGroup.h:118
const FCFSupport::Industry indScrapYard
The pointer to the scrapyard.
Definition: System.h:1134
double Arrival() const
Accessor for the arrival time.
Definition: TimeTableSystem.h:202
SwitchListElementVector theList
The switch list vector.
Definition: SwitchList.h:309
bool operator()(const char *s1, const char *s2) const
Definition: TimeTableSystem.h:125
int CornuSegmentCount()
Count segments (S, C, and J lines).
Definition: CornuBody.h:247
virtual ~FreedObject()
Destructor.
Definition: PDFPrinterSupport.h:294
int uint32
Definition: lcc.tcl:79
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write the elements of a dictionary.
Node rawnode
Uncompressed head node for this compressed node.
Definition: TrackGraph.h:773
void TrainManifestPickups(Train *train, bool boxMove, int Px, CarVector &consist, bool &didAction, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Pick up cars for a manifest freight train.
@ MaxCarGroup
The maximum number of car groups.
Definition: CarType.h:179
Turnout body elements: T, E, P, S, C, and J lines are collected.
Definition: TurnoutBody.h:82
Industry()
Default constructor.
Definition: Industry.h:94
int StatsPeriod() const
Return the current stats period.
Definition: System.h:465
virtual bool OpenPrinter(const string filename, PageSize pageSize=Letter, char **outmessage=NULL)
Member function to open the printer.
MessageType
The three types of messages.
Definition: CallBack.h:129
bool valid_heads
Flag to indicate if heads is valid.
Definition: TrackGraph.h:723
#define YY_MRRXtrkCad_ERROR_BODY
Definition: MRRXtrkCad.tab.h:341
@ TURNOUT
Definition: ParserClassesGroup.h:131
#define YY_MRRXtrkCad_CONSTRUCTOR_PARAM
Definition: MRRXtrkCad.tab.h:50
int carsMovedThree
The number of cars moved three times.
Definition: System.h:1084
bool GetBlueButton19() const
Get Blue Button 19.
Definition: RaildriverIO.h:461
int NextShift()
Increment the shift number.
Definition: System.h:418
IndustryMap::iterator FindIndustry(Industry *industry)
Find an industry in the industry map.
ofstream printerStream
Output stream.
Definition: LQ24Printer.h:145
Uncompressed graph edge values.
Definition: TrackGraph.h:547
static TurnoutBody * ConsTurnoutBody(TurnoutBodyElt *trbe, TurnoutBody *trb)
Alternitive constructor function.
Definition: TurnoutBody.h:310
void ReportLocDivision(DivisionMap::const_iterator Dx, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL)
Print a location report for one division.
@ Decimal
Decimal arabic numerals.
Definition: PDFPrinterSupport.h:821
FontDictionary(const string subtype, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:954
string trainnum2
The train that departs.
Definition: Station.h:165
map< char, CarType *, less< char > > CarTypeMap
A map of car types indexed by type character.
Definition: CarType.h:158
string type
The dictionary's type name.
Definition: PDFPrinterSupport.h:395
virtual void ParseError(const char *m)
Parse error handler.
unsigned int motor_1_state
Motor 1 state.
Definition: sl2.h:199
char * offscript
Off action script.
Definition: TrackGraph.h:637
@ None
Placeholder.
Definition: TurnoutBody.h:89
~TrackBodyElt()
Destructor.
Definition: TrackBody.h:97
This is a specialized form of the LabelEntry widget intended for selecting file names.
Definition: fileentry.tcl:50
bool CreateNewStream()
Create new stream.
Type1FontDictionary(const string basefont, int firstchar, int lastchar, IndirectFloatVector *widths_, TypedDictionary *fontdescriptor, const string encoding="", unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:1045
string encodingName
Encoding as a name.
Definition: PDFPrinterSupport.h:1118
EdgeValues(int _index=-1, float _x=0.0, float _y=0.0, float _a=0.0, float _length=0.0)
Default constructor.
Definition: TrackGraph.h:565
TrainDisplayCallback()
Constructor.
Definition: CallBack.h:205
char Group() const
Return the group code.
Definition: CarType.h:212
void IncrmentMovementsThisSession()
Increment the number of movements this session.
Definition: Car.h:300
#define YY_MRRXtrkCad_MEMBERS
Definition: MRRXtrkCad.tab.h:56
uint8_t status4
Status byte 4 (SR4-U, SL2-U) / Stopwatch seconds (MRD2 only)
Definition: Azatrax.h:433
bool GetBlueButton8() const
Get Blue Button 8.
Definition: RaildriverIO.h:384
static CornuBody * ConsCornuBody(CornuBodyElt *trbe, CornuBody *trb)
Alternitive constructor function.
Definition: CornuBody.h:218
_destroy(path)
Destructor function.
char hazard
The hazard type character.
Definition: Industry.h:332
Cab * TheCab() const
Return the cab.
Definition: Train.h:209
string pathname
The pathname string.
Definition: PathName.h:189
map< int, PageLabelDictionary *, less< int > > PageLabelDictionaryNumMap
Map of PageLabelDictionary numbers.
Definition: PDFPrinterSupport.h:876
void AppendStream(PDFStream *s)
Append a stream to the page.
Definition: PDFPrinterSupport.h:713
int NumberOfIndustries() const
Return the number of industries loaded.
Definition: System.h:332
@ Double
Double wide characters.
Definition: Printer.h:313
vector< Industry * > industries
The list of industries at this station.
Definition: Station.h:156
Train(const char *n, const char *dl, const char *ct, const char *descr, int sh, int mc, int mcl, int mw, int ml, int od, bool p, bool d, TrainType t)
Full constructor.
Definition: Train.h:217
virtual ostream & WriteDirect(ostream &stream) const
Write an object directly.
Definition: PDFPrinterSupport.h:628
virtual ~IndirectObject()
Destructor.
Definition: PDFPrinterSupport.h:173
virtual bool PutLine(const string line="")
Put a line of text.
void TrainPrintFinalSummary(Train *train, FCFSupport::PrinterDevice *printer)
Print a train's final summary.
TypeWeight currentWeight
Current weight.
Definition: LQ24Printer.h:157
void TrainPrintTown(const FCFSupport::Train *train, const FCFSupport::Station *curStation, FCFSupport::PrinterDevice *printer)
Print the town a train is in.
unsigned int reserved
Reserved bits.
Definition: sr4.h:305
Bezier Body elements: T, E, S, and C lines are collected.
Definition: BezierBody.h:76
Industry * home
The division's home yard.
Definition: Division.h:159
unsigned char Throttle
Throttle / Dynamic Brake lever, 0-255.
Definition: RaildriverIO.h:722
int Plate() const
Return the car's clearence plate.
Definition: Car.h:219
StorageTrackMap::const_iterator FirstStorageTrack() const
Return a const_iterator for the first element in the storage track map.
Definition: Station.h:670
double currentColumnFraction
Current column fraction.
Definition: LQ24Printer.h:151
Owner & operator=(Owner &other)
The Assignment operator copies the contents of another Owner to this one.
Definition: Owner.h:86
Car group class.
Definition: CarType.h:165
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write this dictionary's elements.
Definition: PDFPrinterSupport.h:975
TrackBody * TurnoutEnds()
Create a track endpoint list.
Definition: TurnoutBody.h:318
const double METERSperMM
Definition: MRRXtrkCad.tab.h:38
bool GetPanLeft() const
Get Pan Left.
Definition: RaildriverIO.h:566
uint8_t operatingMode
Operating mode (MRD2 only)
Definition: Azatrax.h:441
char * sval
Definition: MRRXtrkCad.tab.h:70
int totalLoads
The total number of loads.
Definition: System.h:1018
TrackGraph::CompressedEdgePairVector CompressedGraphPrimMinimumSpanningTree()
Run the prim_minimum_spanning_tree algorithm and return a vector of edge pairs.
Definition: ParseFile.h:605
bool scanEol
Definition: ParserClassesGroup.h:191
@ STRUCTURE
Definition: ParserClassesGroup.h:128
unsigned int externallyChanged
Externally Changed.
Definition: mrd.h:257
bool operator<=(const PathName other) const
Less than or equal operator.
Definition: PathName.h:137
Cornu Body elements: T, E, S, and C lines are collected.
Definition: CornuBody.h:76
const char * Divisions() const
Return the car's division list.
Definition: Car.h:203
CompressedEdgeValues(float _length=0.0)
Default constructor.
Definition: TrackGraph.h:746
CornuBody(CornuBodyElt *e, CornuBody *n)
Basic constructor.
Definition: CornuBody.h:216
StationTimes(const StationTimes &other)
Copy constructor: create an entry for a time table cell from an existing StationTimes object.
Definition: TimeTableSystem.h:185
Segemnt structure.
Definition: TrackGraph.h:161
bool SaveCars(char **outmessage=NULL)
Save cars (and stats).
@ M
Definition: ParserClassesGroup.h:143
OwnerMap::const_iterator FirstOwner() const
Iterator of the first owner in the owner map.
Definition: System.h:923
int maxLines
Maximum number of lines.
Definition: PDFPrinter.h:175
bool print
The print flag for this train.
Definition: Train.h:375
~SR4()
Definition: sr4.h:84
int GetTurnoutCurveSegment(float &r, float &x, float &y, float &a0, float &a1) const
Fetch turnout curve segment data.
Definition: TurnoutBody.h:236
string QuotePDFString(const string &str)
Quote a string (protect special character with a backslash).
PathName carTypesFile
Full pathname of the car types file.
Definition: System.h:961
virtual bool NewPage(const string heading="")
Perform a page feed and print a heading.
Definition: Printer.h:356
int lastChar
Last character in widths array.
Definition: PDFPrinterSupport.h:1109
StorageTrack * FindTrackTrainIsStoredOn(string trainNumber, double fromtime, double totime)
Find track a train is stored on.
string type
The type name.
Definition: CarType.h:145
@ DIGITAL4
Blue Buttons 25-28, Zoom, Pan.
Definition: RaildriverIO.h:247
int carsInTransit
The number of cars in transit.
Definition: System.h:1093
bool IndustryTakesCar(Industry *Ix, Car *Cx)
Check if an industry takes a certain car.
int SocketCAN(Tcl_Interp *interp, const char *candev)
Open a CAN Socket.
void SetPlate(int p)
Set the car's clearence plate.
Definition: Car.h:222
@ cmd_Q3Q4open
(SL2 only) Outputs Q3 & Q4 both set to open circuit (disconnects switch machine #1)
Definition: Azatrax.h:181
int lastIndex
The last index.
Definition: SwitchList.h:318
void CompressedGraphCircleLayout(double radius)
Run the BGL circle_graph_layout for a given radius.
Definition: ParseFile.h:590
const char * TrainNum2() const
Return the train that departs.
Definition: Station.h:119
The global switch list structure.
Definition: SwitchList.h:226
bool printList
Flag for printing train switch lists.
Definition: System.h:1111
const Train * FindTrainByName(const char *name) const
Find a train by its name.
Definition: System.h:325
int TurnoutNumber(int nid) const
Return a switchmotor's turnout number.
Definition: ParseFile.h:499
const IntegerList * Next() const
Next pointer accessor (Const version).
Definition: IntegerList.h:142
@ cmd_SetChan1
Set channel 1 (MRD2 only)
Definition: Azatrax.h:161
int departure
Departure time.
Definition: Train.h:472
unsigned int sense_3
Sense 3.
Definition: sr4.h:301
TrainNameMap trainIndex
Train name map.
Definition: System.h:979
bool needPageHeader
Flag to let us know if we need a page header,.
Definition: PostScriptPrinter.h:161
const Car * pickCar
The car picked up.
Definition: SwitchList.h:200
@ _InitSize
Definition: Azatrax.h:266
WorkInProgressCallback()
Constructor.
Definition: CallBack.h:83
void SetMarks(string m)
Set the car's reporting marks.
Definition: Car.h:189
ErrorCode ResetStopwatch() const
Reset Stopwatch.
Definition: mrd.h:147
int NumberOfNotes() const
Number of notes.
Definition: Train.h:353
void SetNumber(string n)
Set the car's number.
Definition: Car.h:199
map< int, Division *, less< int > > DivisionMap
A map of divisions, by integer index (division index).
Definition: Division.h:175
unsigned short int generationNumber
The generation number.
Definition: PDFPrinterSupport.h:262
int ranAllTrains
The ran all trains flag.
Definition: System.h:1012
Cab(string name_="", string color_="")
Construct a new cab.
Definition: Cab.h:85
static IntegerList * CopyList(const IntegerList *src)
Definition: IntegerList.h:120
PathName industriesFile
Full pathname of the industries file.
Definition: System.h:949
~Azatrax()
Base destructor.
string name
The name of the division.
Definition: Division.h:153
double SMile() const
Return the scale mile of the station.
Definition: Station.h:588
std::map< int, Node > IdNodeMap
Type of Node Id map.
Definition: TrackGraph.h:710
int IndustryIndex(const FCFSupport::Industry *indus) const
Return an industry's index.
char messageBuffer[2048]
Message buffer, used for error messages mostly.
Definition: System.h:1123
CarGroup & operator=(CarGroup &other)
Assignment operator.
Definition: CarType.h:196
TrackBodyElt * theEnd
Pointer to T or E line data.
Definition: TurnoutBody.h:115
PageSize
Page size selection, for those printers that support different page sizes.
Definition: Printer.h:220
StorageTrack(string name_="Track 0")
Construct a storage track.
Definition: Station.h:294
configure(path,...)
Configuration procedure: configure one or more options for this widget.
uint8_t theByte
Status byte as a byte.
Definition: sr4.h:293
struct azatrax::MRD::status1_union::@1 theBits
Status byte as bit fields.
std::size_t operator()(const char *s) const
Definition: TimeTableSystem.h:107
float EdgeA(int nid, int edgenum) const
Returns the angle of the specificed edge of the node.
unsigned int input_3_enabled
Input 3 enabled?
Definition: sl2.h:237
bool operator<(const PathName other) const
Less than operator.
Definition: PathName.h:121
ostream & WriteFontType(ostream &stream) const
Write the font's subtype.
Definition: PDFPrinterSupport.h:968
const char * Name() const
Return the name of the train.
Definition: Train.h:334
int MaxCars() const
Return the train's maximum number of cars.
Definition: Train.h:248
virtual bool NewPage(const string heading="")
Perform a page feed and print a heading.
BezierBodyElt()
Constructor.
Definition: BezierBody.h:131
Pos pos1
First position.
Definition: TurnoutBody.h:140
ErrorCode Identify_2() const
Identify 2.
Definition: mrd.h:137
objectMap objectTable
The table of objects.
Definition: PDFPrinterSupport.h:143
Division(char s, FCFSupport::Industry *h, char a, const char *n)
Constructor given a set of field values.
Definition: Division.h:108
commands
Command codes.
Definition: Azatrax.h:159
ErrorCode Identify_1_2() const
Identify 1 and 2.
Definition: mrd.h:142
LogMessageCallback()
Constructor.
Definition: CallBack.h:145
@ idSL2Product
SL2 Product id.
Definition: Azatrax.h:281
#define YY_MRRXtrkCad_LEX
Definition: MRRXtrkCad.tab.h:192
string Dirname() const
Return only the directory name.
bool IsNone(Node node)
Check if node is the none node;.
Definition: TrackGraph.h:840
void AddProcSet(string pname)
Add a procedure set.
Definition: PDFPrinterSupport.h:486
bool deliver
Deliver flag.
Definition: System.h:1033
static unsigned short int ProductIdCode(const char *productName)
Product id code.
Definition: Azatrax.h:333
istream & Read(istream &stream)
Read ourselves from an input stream.
@ HO
Definition: ParserClassesGroup.h:123
void AddFont(const string name, IndirectObject *obj)
Add an Font resource.
Definition: PDFPrinterSupport.h:533
bool SkipCommentsGets(istream &stream, string &buffer, const char *message, char **outmessage=NULL)
Utility to get a line after skipping any intervening comments.
unsigned char IndependBrake
Independent Brake lever, 0-255.
Definition: RaildriverIO.h:728
std::map< Node, CompressedNode > backpointers
Backpointer map.
Definition: TrackGraph.h:833
static void CleanUpCornuBody(CornuBody *trb)
Free up memory.
Definition: CornuBody.h:259
cget(path, option)
Procedure to get a configuation option.
double departure
The departure time, in scale time units.
Definition: TimeTableSystem.h:217
Derived class for printing on Postscript printers.
Definition: PostScriptPrinter.h:66
@ BAILOFF_M
Independent Brake bail off.
Definition: RaildriverIO.h:116
TypeWeight
Type weight.
Definition: Printer.h:317
virtual bool SetTypeSpacing(TypeSpacing spacing)
Set the the spacing.
bool IsNodeP(int nid) const
Tests if a node id exists in the graph.
A tree of page label dictionaries.
Definition: PDFPrinterSupport.h:882
ostream * errorstream
Stream for error reporting.
Definition: ParseFile.h:391
int stationindex
The station index.
Definition: Train.h:277
PathName carsFile
Full pathname of the cars file.
Definition: System.h:964
Occupied(string trainnum_="", double from_=0.0, double until_=0.0, string trainnum2_="")
Constructor: record a train occupying a storage track.
Definition: Station.h:107
graph_traits< Graph >::vertex_descriptor Node
Vertex type.
Definition: TrackGraph.h:707
bool scanToEND
Definition: ParserClassesGroup.h:191
const char * DivisionControlList() const
This indusry's division control list.
Definition: Industry.h:233
Rectangle * cropBox
This page's crop box.
Definition: PDFPrinterSupport.h:735
const Train * PickTrain() const
Return the pickup train for this switch list element.
Definition: SwitchList.h:156
void RunOnePassenger(Train *train, bool boxMove, const FCFSupport::TrainDisplayCallback *traindisplay, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
One one passenger train.
int CarsMovedThree() const
Return the number of cars moved three times.
Definition: System.h:491
PostScriptStandardType1FontDictionary(const string name, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:1138
float angle
Angle of the signal.
Definition: TrackGraph.h:640
#define YY_MRRXtrkCad_PARSE
Definition: MRRXtrkCad.tab.h:188
bool Sense_4_Live() const
Sense 4, return true if input line 4 is now activated.
Definition: sr4.h:265
double Y1() const
Return the first Y coordinate.
Definition: PDFPrinterSupport.h:618
char Type() const
Return the type of the industry.
Definition: Industry.h:198
virtual void LogMessage(MessageType Type, const string Message) const
Log message callback function.
Definition: CallBack.h:157
SwitchListElement(const Industry *pickloc, const Car *pickcar, const Train *picktrain, const Train *lasttrain, const Industry *istop)
Constructor, given a manifest freight's stop at an industry.
Definition: SwitchList.h:123
unsigned int allowExternalChanges
Allow External Changes.
Definition: mrd.h:259
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write this dictionary's elements.
Definition: PDFPrinterSupport.h:389
Cab(const Cab &other)
Copy constructor.
Definition: Cab.h:103
SwitchListElement(const SwitchListElement &other)
Copy constructor.
Definition: SwitchList.h:98
CarVector cars
Car vector.
Definition: System.h:997
bool GetZoopDown() const
Get Zoom Down.
Definition: RaildriverIO.h:538
char * lp
Input line buffer pointer.
Definition: ParseFile.h:376
PageLabelTreeKidVector kids
Kid nodes.
Definition: PDFPrinterSupport.h:936
unsigned int motor_1_direction
Motor 1 direction.
Definition: sl2.h:197
int fivebits
Definition: lcc.tcl:39
cget(path, option)
Configuration option accessor procedure: access one option directly.
Division * division
The station's division.
Definition: Station.h:153
int maxCarLen
The maximum car length.
Definition: Industry.h:308
void ClearMovementsThisSession()
Clear the number of movements this session.
Definition: Car.h:297
const Train * prevtrain
The previous train to handle this car.
Definition: Car.h:353
unsigned char Headlight
Headlight switch, 0-255.
Definition: RaildriverIO.h:737
float length
Track length from opposite edge.
Definition: TrackGraph.h:562
float radius
A radius value.
Definition: CornuBody.h:122
void Emit(ostream &outstream)
Function to Emit a track graph to an output stream.
IndirectObjectDictionary xObject
A Dictionary that maps resource names to external objects.
Definition: PDFPrinterSupport.h:571
Time Table Support Namespace.
Definition: TTSupportGroup.h:82
The Station class implements a station.
Definition: Station.h:540
void ReportLocAll(bool printBench, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL)
Print a location report for all locations.
static TurnoutBodyElt * MakeTurnoutStraightSegment(float x1, float y1, float x2, float y2)
Create a turnout straight segment (S lines).
Definition: TurnoutBody.h:201
void IncrementGenerationNumber()
Increment the generation number.
Definition: PDFPrinterSupport.h:256
void IncrementStatsLen(int i=1)
Increment the stats length.
Definition: Industry.h:255
void SetPeek(bool p=false)
Set or clear the peek flag.
Definition: Car.h:339
void ReportCarLocations(CarLocationType cltype, int index, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL)
Car location report.
static BezierBodyElt * MakeCurveSegment(float r, float x, float y, float a0, float a1)
Create a curve segment (C lines).
Definition: BezierBody.h:165
static bool IsThisTheAzatraxWeAreLookingFor(libusb_device *dev, const char *serialnumber, unsigned short int idProduct)
Is this the device we want?
PathName operator+(const PathName other)
Concatenate pathnames.
@ DIGITAL3
Blue Buttons 17-24.
Definition: RaildriverIO.h:240
static int segCount
Counter for S, C, and J segments.
Definition: TurnoutBody.h:109
friend ostream & operator<<(ostream &stream, const SwitchList &list)
Output stream operator for switch lists.
uint8_t endOfData
End of data.
Definition: Azatrax.h:445
void AddPageLabelDictionary(int number, PageLabelDictionary *pld)
Add a page label dictionary.
Definition: PDFPrinterSupport.h:1193
@ Wayfreight
A Way Freight train.
Definition: Train.h:140
Occupied(const Occupied &other)
Copy constructor – create an instance from another Occupied instance.
Definition: Station.h:131
string color
The color of the cab.
Definition: Cab.h:129
bool Q3_State() const
Q3 state, return true if Q3 is closed.
Definition: sr4.h:211
The Train class represents a train.
Definition: Train.h:114
string prefix
Prefix string.
Definition: PDFPrinterSupport.h:865
void AddColorSpace(const string name, IndirectObject *obj)
Add an Color Space resource.
Definition: PDFPrinterSupport.h:501
void DiscardSwitchList()
Clobber the switch list.
map< string, Train *, less< string > > TrainNameMap
A map of trains, indexed by string (Train name).
Definition: Train.h:391
Station(const Station &other)
Copy constructor.
Definition: Station.h:557
static BezierBodyElt * MakeTrackEnd(TrackBodyElt *tbe)
Create an endpoint (T or E lines).
Definition: BezierBody.h:137
Node none
Special node that is nowhere (where all unconnected trackage goes).
Definition: TrackGraph.h:726
void AddPattern(const string name, IndirectObject *obj)
Add an Pattern resource.
Definition: PDFPrinterSupport.h:509
unsigned int pickIndex
The pick index.
Definition: SwitchList.h:312
double CompressedNodePositionY(int cnid) const
X Coordinate of a Compressed Node position.
TrackGraph::NodeType TypeOfNode(int nid) const
Returns the type of the node.
Definition: ParseFile.h:482
Occupied & operator=(const Occupied &other)
Assignment operator.
Definition: Station.h:141
int carsAtWorkBench
The number of cars at the workbench.
Definition: System.h:1096
bool StringToInt(string str, int &result, const char *message, char **outmessage=NULL) const
Convert a string to an integer.
@ unknown
Currently unknown.
Definition: lcc.tcl:144
float x
$X$ coordinate of track endpoint.
Definition: TrackBody.h:83
@ REVERSER
Reverser lever.
Definition: RaildriverIO.h:184
IndirectObjectDictionary extGState
A dictionary that maps resource names to graphics state parameters dictionaries.
Definition: PDFPrinterSupport.h:556
IndustryMap industries
Industries map.
Definition: System.h:982
TextPrinterDevice(const string filename="", const string title="", PageSize pageSize=Letter, char **outmessage=NULL)
Constructor.
double smile
Scale Mile.
Definition: Station.h:696
IndirectObjectDictionary(unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:416
int FindStationIndex(const FCFSupport::Station *station) const
Find a station's index.
void GetCarStatus(const Car *car, string &status, string &carTypeDescr) const
Return car status information.
Uncompressed graph node values.
Definition: TrackGraph.h:586
int yydebug
Definition: ParserClassesGroup.h:181
void GetKidLimits(int &lower, int &upper) const
Get limits of the kids vector.
int NumberOfHeads(int nid) const
Return a Signal's number of heads.
Definition: ParseFile.h:514
MTI Header type, detailed version.
Definition: lcc.tcl:418
int Element() const
Element accessor.
Definition: IntegerList.h:139
unsigned int input_2_enabled
Input 2 enabled?
Definition: sr4.h:317
void ShowUnassignedCars(const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner) const
Show unassigned cars.
bool done
The done flag for this train.
Definition: Train.h:378
PathName(const PathName &other)
Copy constructor.
Definition: PathName.h:97
const char * CarTypes() const
Return the train's car type list (string of char type characters).
Definition: Train.h:234
ErrorCode SetQ3posQ4neg() const
Sets output terminal Q3 to positive, Q4 to negative.
Definition: sl2.h:91
Status byte 1 union type (Outputs)
Definition: sr4.h:273
int CarsMovedMore() const
Return the number of cars moved more then three times.
Definition: System.h:494
double StartSMile() const
Return the start Scale Mile.
Definition: Train.h:443
void PrintTrainOrders(const Train *train, FCFSupport::PrinterDevice *printer) const
Print the train orders for a selected train.
void CleanUpElement()
Free up memory.
Definition: BezierBody.h:203
bool GetBlueButton4() const
Get Blue Button 4.
Definition: RaildriverIO.h:356
const char * OffScript(int nid) const
Return the off action script.
Definition: ParseFile.h:537
int GetTurnoutJointSegment(float &x, float &y, float &a, float &l0, float &l1, float &r, float &l) const
Fetch turnout joint segment data.
Definition: TurnoutBody.h:261
int maxclear
The maximum clearance plate for this train.
Definition: Train.h:363
@ EOL
Definition: ParserClassesGroup.h:114
CarGroupConsts
Car group constants.
Definition: CarType.h:176
NodeType TypeOfNode(int nid) const
Returns the type of the node.
vector< int > notes
Notes about the train.
Definition: Train.h:469
bool Sense_4() const
Sense 4, return true if input line 4 was activated since last get status.
Definition: sl2.h:135
StorageTrack * FindStorageTrack(string name)
Find a storage track by name.
Definition: Station.h:614
Rectangle * mediaBox
Media box for this page tree.
Definition: PDFPrinterSupport.h:798
RotationUnit
Rotational units.
Definition: TrackGraph.h:926
Display a page heading type message on the screen.
Definition: CallBack.h:170
ofstream printerStream
Output stream.
Definition: PDFPrinter.h:160
SL2 I/O Class.
Definition: sl2.h:71
@ C
Curved (circular) segment.
Definition: TrackGraph.h:170
@ J
Definition: ParserClassesGroup.h:140
bool operator>=(const PathName other) const
Greater than or equal operator.
Definition: PathName.h:139
unsigned int sense_1
Sense 1.
Definition: mrd.h:233
double x1
First X coordinate.
Definition: PDFPrinterSupport.h:637
void SetStorageTrackName(string name)
Update storage track name.
Definition: Train.h:259
bool Input_2_Enabled() const
Input 2 enabled? Return true if I2 can affect outputs.
Definition: sl2.h:171
A standard Type1 PostScript font dictionary.
Definition: PDFPrinterSupport.h:1128
unsigned int sense_2
Sense 2.
Definition: mrd.h:235
uint8_t theByte
Status byte as a byte.
Definition: sl2.h:211
int ProcessFile(ostream &err)
open file and parse it.
PathName(string p)
Constructor, given a STL basic_string.
Definition: PathName.h:89
Stop & operator=(const Stop &other)
Assignment operator, assign one stop to another stop.
Definition: Train.h:177
module Tclwiringpi
Definition: tclwiringpi.i:55
bool Motor_2_Direction() const
Motor 2 direction, return true if Q3 is positive.
Definition: sl2.h:153
bind(path,...)
Procedure to set a binding on the ComboBox entry.
unsigned char Digital1
Blue Buttons 1-8.
Definition: RaildriverIO.h:740
void AddIndirectObject(const string name, IndirectObject *obj)
Add an indirect object.
Definition: PDFPrinterSupport.h:428
bool GetPanDown() const
Get Pan Down.
Definition: RaildriverIO.h:559
static void CleanUpIntegerList(IntegerList *list)
Free up used memory.
Definition: IntegerList.h:112
bool tmpStatus
Temp status flag.
Definition: Car.h:410
const TurnoutGraphic * NodeTurnoutGraphic(int nid) const
Returns the TurnoutGraphic of the node.
TrackGraph * trackGraph
Track graph, a graph of all of the trackwork in the layput file.
Definition: ParseFile.h:442
float LengthOfNode(int nid) const
Return the track length of a node.
Definition: ParseFile.h:493
std::map< int, CompressedNode > CompressedIdNodeMap
Type of Node Id map.
Definition: TrackGraph.h:811
RaildriverIO()
Default constructor.
Definition: RaildriverIO.h:666
virtual bool ClosePrinter(char **outmessage)
Close the printer.
IntegerList * next
The pointer to the next element.
Definition: IntegerList.h:82
unsigned int stopwatchTicking
Stopwatch Ticking.
Definition: mrd.h:255
Division * curDiv
Current division.
Definition: System.h:1054
uint8_t stopwatchHours
Stopwatch hours (MRD2 only)
Definition: Azatrax.h:439
yy_MRRXtrkCad_stype yylval
Definition: ParserClassesGroup.h:172
string description
The description of the train.
Definition: Train.h:354
bool PrintYards() const
Print yard lists flag.
Definition: System.h:509
TypedDictionary * fontDescriptor
Font Descriptor.
Definition: PDFPrinterSupport.h:1115
void SetPrevTrain(const Train *lt)
Set the previous train to move this car.
Definition: Car.h:291
bool SameDirectory(const PathName other) const
Are the two pathnames in the same directory?
Definition: PathName.h:149
BezierBodyEltType theType
Element type.
Definition: BezierBody.h:100
int NumberOfTrains() const
The number of trains loaded.
Definition: System.h:299
TypedDictionary(string t, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:371
A const pointer to a train's stop, which can be either a station or an industry, depending on what ki...
Definition: SwitchList.h:78
bool EmptyP() const
Is the car empty?
Definition: Car.h:246
setvalue(path,...)
Procedure to set the value of the SpinBox.
float y
$Y$ coordinate.
Definition: TurnoutBody.h:136
Station * station
Station, for other then Manifest freights.
Definition: Train.h:331
@ cmd_Identify_1_2
Identify both LEDs (MRD2 only)
Definition: Azatrax.h:189
float OrigY(int nid) const
Return the $y$ coordinate of the signal base.
Definition: ParseFile.h:525
CarTypeMap::const_iterator LastCarType() const
Iterator of one past the last car type in the car type map.
Definition: System.h:920
@ first
First frame datagram.
Definition: lcc.tcl:113
bool operator<=(const PathName other) const
Less than or equal operator.
Definition: PathName.h:133
const char * Name() const
Return the division's name.
Definition: Division.h:120
void IncrementAssignments()
Increment the number of assignments this car has had.
Definition: Car.h:333
int Shift() const
Return the train's shift.
Definition: Train.h:240
float CompressedEdgeLength(int cnid, int edgenum) const
Length of a compressed graph edge.
Definition: ParseFile.h:555
@ A
Definition: ParserClassesGroup.h:148
void SetObjectNumber(unsigned long int on, CrossReferenceTable *tab)
Set this object's object number.
Definition: PDFPrinterSupport.h:241
TrackGraph::CompressedEdgePairVector CompressedGraphKruskalMinimumSpanningTree()
Run the kruskal_minimum_spanning_tree algorithm and return a vector of edge pairs.
Definition: ParseFile.h:599
Cab * cab
The Cab object.
Definition: Train.h:280
Rectangle * cropBox
Crop box for this page tree.
Definition: PDFPrinterSupport.h:801
const Occupied * FindOccupied(double from, double to) const
Return occupication structure for a given time tange.
Definition: Station.h:343
The Division class implements a single division, which contains a number of contigious stations.
Definition: Division.h:72
SL2(const char *serialnumber, char **outmessage=NULL)
Base constructor.
Definition: sl2.h:78
int sixteenbits
Definition: lcc.tcl:69
Option hash map, used for Print options.
Definition: TimeTableSystem.h:105
static TrackBody * AppendTrackBodyElt(TrackBody *tb, TrackBodyElt *tbe)
Append a track endpoint.
Definition: TrackBody.h:159
void RunAllTrains(const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner, FCFSupport::PrinterDevice *printer, const FCFSupport::TrainDisplayCallback *traindisplay)
Run all trains procedure.
bool ReadOwners(char **outmessage=NULL)
Read in the owners file.
void LogCarPickup(Car *car, Train *train, bool boxMove)
Log a car pickup in the switch list structure.
verifyColorMethod()
Macro to add a verify color method to a snit type.
int carsAtDest_carsInTransit
The number of cars at their destinations and still in transit.
Definition: System.h:1099
@ Half
Half (actually 60%) wide characters.
Definition: Printer.h:310
ErrorCode OutputRelayInputControl(bool I1, bool I2, bool I3, bool I4)
Enable/Disable descrete input lines from affecting outputs.
Definition: sl2.h:106
double X1() const
Return the first X coordinate.
Definition: PDFPrinterSupport.h:615
bool operator<=(const TimeRange &other) const
Less than or equal operator.
Definition: Station.h:225
bool OkToMirrorP() const
Is it OK to mirror this car?
Definition: Car.h:255
bool Sense_1() const
Sense 1, return true if input line 1 was activated since last get status.
Definition: sl2.h:117
Industry & operator=(Industry &other)
Assignment operator.
Definition: Industry.h:130
int Priority() const
Return this industry's priority.
Definition: Industry.h:215
bind(path,...)
Procedure to set a binding on the SpinBox entry.
virtual bool Put(double number)
Print a double.
Definition: Printer.h:390
const Occupied * UpdateStoredTrain2(double from, double to, string train)
Replace a stored departure train.
ErrorCode SetChan1() const
Set channel 1 relays and status bits.
Definition: mrd.h:110
virtual void CloseTrainDisplay() const
Close the train display.
Definition: CallBack.h:226
bool IsCompressed() const
Is the graph compressed?
Definition: TrackGraph.h:1109
_path_command(path, cmd, larg)
Path command for this megawidget.
_path_command(path, cmd, larg)
Path command for this megawidget.
bool Sense_4_Latch() const
Sense 4, return true if input line 4 was activated since last get status.
Definition: sr4.h:193
unsigned int Q3_state
Q3 state.
Definition: sr4.h:283
float R
$R$ value.
Definition: TrackGraph.h:203
bool Motor_1_State() const
Motor 1 state, return true if Q1 and Q2 are on.
Definition: sl2.h:147
void SpeakerOff(char **outmessage=NULL)
Turn the speaker off.
@ MULTILINE
Definition: ParserClassesGroup.h:113
bool trainPrintOK
Train print flag.
Definition: System.h:1027
TrainMap::const_iterator LastTrain() const
Iterator of one past the last train in the train map.
Definition: System.h:908
virtual ~ParseFile()
Destructor.
Definition: ParseFile.h:417
BezierBodyElt * tbbe
Definition: MRRXtrkCad.tab.h:77
bool doneP
This car's done flag.
Definition: Car.h:404
int carsLen
The length of the cars.
Definition: Industry.h:314
PDF Indirect Object Dictionary, used for named resources in a Resource Dictionary.
Definition: PDFPrinterSupport.h:408
string initials
This owner's initials.
Definition: Owner.h:120
Status byte 1 union type (Output states)
Definition: sl2.h:191
@ N
Definition: ParserClassesGroup.h:124
Car()
Default constructor.
Definition: Car.h:76
int plate
The industry's clearance plate.
Definition: Industry.h:302
bool PutPageHeader()
Function to put the page header.
string name
Name of the storage track.
Definition: Station.h:422
IntegerList * c_roots
Compressed Graph Roots.
Definition: TrackGraph.h:821
const IntegerList * Heads()
Definition: ParseFile.h:572
int NumberOfHeads(int nid) const
Return a Signal's number of heads.
The Station class implements a single station.
Definition: Station.h:73
const char * ReverseActionScript(int nid) const
Return a block's or switchmotor's reverse action script.
Definition: ParseFile.h:511
virtual bool Tab(int column)
Tab over to the specified column.
Definition: Printer.h:399
bool peek
This car's peel flak.
Definition: Car.h:407
float Angle(int nid) const
Return the angle of the signal.
Stop::FlagType flag
The stop flag: Origin, Terminate, or Transit.
Definition: TimeTableSystem.h:220
Raw USB Data Packet.
Definition: Azatrax.h:415
#define YY_MRRXtrkCad_LEX_BODY
Definition: MRRXtrkCad.tab.h:337
void ReportTrains(const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL) const
Report on all trains.
@ TurnoutStraightSegment
S line.
Definition: TurnoutBody.h:98
void SetCarOwner(const Owner *o)
Set the car's owner.
Definition: Car.h:270
const Car * PickCar() const
Return the car picked up for this switch list element.
Definition: SwitchList.h:153
TypeSpacing currentSpacing
Current spacing.
Definition: LQ24Printer.h:154
Station times class, used by the LaTeX generator methods.
Definition: TimeTableSystem.h:169
@ SWITCHMOTOR
Definition: ParserClassesGroup.h:157
const Train * FindTrainByIndex(int i) const
Find a train by its index.
Definition: System.h:310
BezierBody * next
Next element.
Definition: BezierBody.h:201
string Dirname() const
Return only the directory name.
getvalue(path,...)
Procedure to get the value of the ComboBox.
PDFFileStructures::PageTree * pageTreeRoot
PDF Page Tree root.
Definition: PDFPrinter.h:154
bool GetWhistleDown() const
Get Whistle Down.
Definition: RaildriverIO.h:636
virtual ~ShowBannerCallback()
Destructor.
Definition: CallBack.h:181
int EdgeIndex(int nid, int edgenum) const
Returns the node id of the specificed edge of the node.
@ SI
Shift In This character starts condensed (half width) spacing.
Definition: LQ24Printer.h:176
void RunBoxMoves(const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner, FCFSupport::PrinterDevice *printer, const FCFSupport::TrainDisplayCallback *traindisplay)
Run all boxmove trains.
int StationIndex() const
Return the station index.
Definition: Train.h:206
@ LowerRoman
Lowercase roman numerals.
Definition: PDFPrinterSupport.h:827
ofstream printerStream
Output stream.
Definition: TextPrinter.h:133
A Font dictionary object.
Definition: PDFPrinterSupport.h:946
uint8_t reserved[6]
Reserved bytes.
Definition: Azatrax.h:443
TimeRange(double from_=0.0, double to_=0.0)
Construct a time range, from a start and end time.
Definition: Station.h:188
PauseCallback()
The constructor.
Definition: CallBack.h:270
char type
This car's type.
Definition: Car.h:413
string description
The description string.
Definition: CarType.h:220
PathName ordersFile
Full pathname of the train orders file.
Definition: System.h:955
float fval
Definition: MRRXtrkCad.tab.h:71
BezierBodyEltType TheType() const
Type accessor.
Definition: BezierBody.h:135
@ ALL
Report on all locations.
Definition: System.h:814
double Departure(double arrival) const
Return departure time.
Definition: Train.h:203
Page(ResourceDictionary *r=NULL, Rectangle *mBox=NULL, Rectangle *cBox=NULL, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:695
This package provides a BWidget style megawidget for selecting colors, in the same style as a LabelEn...
Definition: labelselectcolor.tcl:39
@ X
Definition: ParserClassesGroup.h:152
TypeSpacing
Horizontal type spacing.
Definition: Printer.h:304
int carsMovedMore
The number of cars moved more then three times.
Definition: System.h:1087
ErrorCode send2Bytes(uint8_t commandByte, uint8_t byte2) const
Send a command byte with 1 data byte.
adjacency_list< vecS, vecS, directedS, NodeValues, EdgeValues > Graph
Boost Graph type (adjacency_list).
Definition: TrackGraph.h:704
const char * MyProduct() const
My product name.
Definition: Azatrax.h:313
bool GetRangeDown() const
Get Range Down.
Definition: RaildriverIO.h:580
CarGroup * carGroups[CarGroup::MaxCarGroup]
Car group vector.
Definition: System.h:991
unsigned char Digital4
Blue Buttons 25-28, Zoom, Pan Buttons.
Definition: RaildriverIO.h:750
string systemName
The system name.
Definition: System.h:946
PathName statsFile
Full pathname of the stats file.
Definition: System.h:967
setvalue(path,...)
Pass through procedure for the ComboBox setvalue function.
CornuBodyElt * tcbe
Definition: MRRXtrkCad.tab.h:79
void ReportLocStation(StationMap::const_iterator Sx, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL)
Print a location report for one station.
double y
Y coordinate.
Definition: TrackGraph.h:760
string name
The name of the cab.
Definition: Cab.h:126
void AddPageLabelDictionary(int number, PageLabelDictionary *pld)
Add a page label dictionary.
Definition: PDFPrinterSupport.h:908
unsigned char GetProductCodeId() const
Get Product Code Id.
Definition: RaildriverIO.h:644
PDFFileStructures::PDFStream * currentStream
Current PDF Stream.
Definition: PDFPrinter.h:151
Main XPressNet interface class.
Definition: xpressnet.tcl:1124
vector< int > SearchForIndustryPattern(string industryNamePattern) const
Search for an industry by name given a glob pattern.
bool GetBlueButton11() const
Get Blue Button 11.
Definition: RaildriverIO.h:405
TrainType type
The type of this train.
Definition: Train.h:381
bool CompressedGraphKamadaKawaiSpring(double sidelength)
Run the BGL kamada_kawai_spring_layout for a given side length.
Low-level Raildriver I/O functions.
Definition: RaildriverIO.h:71
void TrainManifestDrops(Train *train, int Px, CarVector &consist, bool &didAction, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Drop cars from a manifest freight.
_destroy(path)
Destructor function.
const Train * PrevTrain() const
Return the previous train to move this car.
Definition: Car.h:288
PageTree(ResourceDictionary *r=NULL, Rectangle *mBox=NULL, Rectangle *cBox=NULL, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:756
bool CreateNewPage()
Create a new page.
~FontDictionary()
Destructor.
Definition: PDFPrinterSupport.h:963
The IntegerList class implements a linked list of integers, used for turnout route lists.
Definition: IntegerList.h:75
int NumberOfCars() const
Return the number of cars at this industry.
Definition: Industry.h:252
map< int, TrainStationTimes, less< int > > TrainTimesAtStation
Map of maps of station times, indexed by station index.
Definition: TimeTableSystem.h:246
int statsPeriod
The current stats period.
Definition: System.h:1066
int assignments
The number of assignments this car has had.
Definition: Car.h:392
bool PrintAtwice() const
Print second copy of the alphabetical listing flag.
Definition: System.h:523
friend ostream & operator<<(ostream &stream, IntegerList list)
Output operator.
Definition: IntegerList.h:131
Stop(int stationindex_=0, FlagType flag_=Origin)
Constructor: create a new stop.
Definition: Train.h:153
struct azatrax::SL2::status2_union::@4 theBits
Status byte as bit fields.
int MaxPlate() const
Maximum clearance plate this industry can handle.
Definition: Industry.h:227
create(path,...)
Procedure to create a LabelComboBox.
bool ReadTrains(char **outmessage=NULL)
Read in the trains file.
void CleanUpElement()
Free up memory.
Definition: CornuBody.h:203
virtual bool SetTypeWeight(TypeWeight weight)
Set the type weight.
bool isRoot
Root flag.
Definition: PDFPrinterSupport.h:933
bool operator>(const PathName other) const
Greater than operator.
Definition: PathName.h:127
~IndirectObjectDictionary()
Destructor.
Definition: PDFPrinterSupport.h:423
map< string, Train *, less< string > > TrainNumberMap
Train number map, indexed by train number (symbol).
Definition: Train.h:572
bool PickCarEq(int Gx, const Car *Cx) const
Is the selected element for the specificed car?
Stop::FlagType Flag() const
Accessor for the type of stop flag.
Definition: TimeTableSystem.h:208
void AddXObject(const string name, IndirectObject *obj)
Add an External Object resource.
Definition: PDFPrinterSupport.h:525
bool operator<(const PathName other) const
Less than operator.
Definition: PathName.h:125
CornuBodyElt()
Constructor.
Definition: CornuBody.h:131
PathName systemFile
Full pathname of the system file.
Definition: System.h:943
unsigned int latch_2
Latch 2.
Definition: mrd.h:239
int NumberOfStorageTracks() const
Number of storage tracks.
Definition: Station.h:637
bool Motor_1_Direction() const
Motor 1 direction, return true if Q1 is positive.
Definition: sl2.h:141
float EdgeY(int nid, int edgenum) const
Returns the $Y$ coordinate of the specificed edge of the node.
Definition: ParseFile.h:473
void SetMaxLength(int newmaxlength)
Set the train's maximum length.
Definition: Train.h:265
#define YY_MRRXtrkCad_CLASS
Definition: MRRXtrkCad.tab.h:48
const double HOScale
Definition: MRRXtrkCad.tab.h:40
struct azatrax::SR4::status2_union::@7 theBits
Status byte as bit fields.
A simple DOM element coded in Tcl using SNIT.
Definition: ParseXML.tcl:27
unsigned int reserved
Reserved bits.
Definition: sr4.h:323
vector< Industry * > IndustryVector
A vector of industry pointers.
Definition: Industry.h:342
int last_column
Definition: MRRXtrkCad.tab.h:171
#define angle
Definition: TurnoutBody.h:72
@ NONE_M
No bits set.
Definition: RaildriverIO.h:84
string Extension() const
Return only the extension.
int TotalCars() const
Return the total number of cars.
Definition: System.h:429
Car(Car &other)
Copy constructor.
Definition: Car.h:86
verifyDoubleMethod()
Macro to add a verify double method to a snit type.
vector< int > SearchForTrainPattern(string trainNamePattern) const
Search for a train by name given a glob pattern.
float length
Length of track.
Definition: TrackGraph.h:601
#define YY_MRRXtrkCad_ERROR
Definition: MRRXtrkCad.tab.h:216
PageTree * parent
The page's parent page tree.
Definition: PDFPrinterSupport.h:726
adjacency_list< vecS, vecS, undirectedS, CompressedNodeValues, CompressedEdgeValues > CompressedGraph
Boost Compressed Graph type (adjacency_list).
Definition: TrackGraph.h:805
@ Block
Block.
Definition: TrackGraph.h:523
bool printLtwice
Flag for printing a second copy of train switch lists.
Definition: System.h:1114
TimeRange(const TimeRange &other)
Copy constructor: create a clone of a TimeRange.
Definition: Station.h:237
const Division * FindDivisionByIndex(int i) const
Find a division by its index.
Definition: System.h:263
unsigned int sense_4
Sense 4.
Definition: sl2.h:221
int length
This car's length.
Definition: Car.h:371
#define YY_MRRXtrkCad_PARSE_PARAM
Definition: MRRXtrkCad.tab.h:231
@ idSR4Product
SR4 Product id.
Definition: Azatrax.h:283
bool PrintLtwice() const
Print a second copy of the switch list order flag.
Definition: System.h:537
int TurnoutRouteCount()
Count routes (P lines).
Definition: TurnoutBody.h:343
int OnDuty() const
Return the train's on duty time, in minutes since midnight.
Definition: Train.h:268
virtual bool Put(int number)
Print an integer.
Definition: Printer.h:382
@ DIGITAL6_M
Cab Buttons, whistle.
Definition: RaildriverIO.h:166
bool GetBlueButton17() const
Get Blue Button 17.
Definition: RaildriverIO.h:447
@ UNTERMSTRING
Definition: ParserClassesGroup.h:115
CarTypeMap carTypes
Car type map.
Definition: System.h:988
IntegerList * tracklist
Track segments in block.
Definition: TrackGraph.h:604
CornuBody * next
Next element.
Definition: CornuBody.h:201
Describes a single page.
Definition: PDFPrinterSupport.h:684
Station()
Default constructor.
Definition: Station.h:78
float maxX
Maximum $X$ coordinate.
Definition: TrackGraph.h:258
void ResetLastIndex()
Reset the last index.
Definition: SwitchList.h:285
void AddNoteToStop(int istop, int note)
Add a note to a stop.
A Grid Connect formatted CAN message.
Definition: lcc.tcl:758
string subType
The type of the font.
Definition: PDFPrinterSupport.h:985
FlagType
Type of stop.
Definition: Train.h:146
Industry * trainLastLocation
A trains last location.
Definition: System.h:1060
virtual bool PutLine(const string line)
Print out a string and follow it with a new line sequence.
virtual bool SetTypeWeight(TypeWeight weight)
Set the type weight.
Definition: Printer.h:342
@ NOTWORD
Definition: ParserClassesGroup.h:116
void ReportCarsNotMoved(const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL) const
Report on cars not moved.
FCFSupport::Industry * Home() const
Return the division's home yard.
Definition: Division.h:123
float y
$Y$ coordinate.
Definition: TrackGraph.h:137
bool CompressedGraphKamadaKawaiSpring(double sidelength)
Run the BGL kamada_kawai_spring_layout for a given side length.
Definition: ParseFile.h:593
void RunOneManifest(Train *train, bool boxMove, CarVector &consist, const FCFSupport::TrainDisplayCallback *traindisplay, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Run one manifest freight train.
yyltype yylloc
Definition: ParserClassesGroup.h:174
Azatrax C++ LibUSB 1.0 Interface.
Definition: Azatrax.h:87
const IntegerList * TrackList(int nid) const
Return a block's tracklist.
void SetLayover(double period)
Update layover period.
Definition: Train.h:196
bool GetBlueButton24() const
Get Blue Button 24.
Definition: RaildriverIO.h:496
float ang1
Another angle value.
Definition: TurnoutBody.h:152
bool operator>(const TimeRange &other) const
Greater than operator.
Definition: Station.h:213
int carsMovedOnce
The number of cars moved one time.
Definition: System.h:1078
const Train * lastTrain
The train that previously handled this car.
Definition: SwitchList.h:206
void SetName(string name_)
Set the storage track's name.
Definition: Station.h:310
IndirectObject(unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:161
vector< Stop > StopVector
A vector of stops.
Definition: Train.h:296
TurnoutBodyElt * trbe
Definition: MRRXtrkCad.tab.h:75
@ DRAW
Definition: ParserClassesGroup.h:129
bool StringListFromString(string strlinList, StringList &result)
Convert a flat string to a list of strings.
static IntegerList * IntAppend(IntegerList *head, int newTail)
Add an element to the {end} of the list.
Definition: IntegerList.h:102
const char * OnScript(int nid) const
Return the on action script.
Industry * Location() const
Return the location of this car.
Definition: Car.h:303
YY_MRRXtrkCad_ENUM_TOKEN
Definition: ParserClassesGroup.h:107
int CarsMovedTwice() const
Return the number of cars moved twice.
Definition: System.h:488
void PrintAllLists(const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner, FCFSupport::PrinterDevice *printer)
Print all of the various yard and switch lists.
double startSMile
Start scale mile.
Definition: Train.h:478
int usedLen
The used length.
Definition: Industry.h:320
void SetDivisions(string d)
Set the car's division list.
Definition: Car.h:209
const char * SourceFile() const
Return the name of the source file.
Definition: ParseFile.h:404
@ cmd_SetChan2
Set channel 2 (MRD2 only)
Definition: Azatrax.h:163
void SetDeparture(int depart)
Update departure time.
Definition: Train.h:344
int CompressedEdgeNode(int cnid, int edgenum) const
Next Edge node.
Definition: ParseFile.h:561
~Type1FontDictionary()
Destructor.
Definition: PDFPrinterSupport.h:1092
Train(Train &other)
Copy construtor.
Definition: Train.h:162
int lines
The line count.
Definition: PostScriptPrinter.h:152
The TimeRange class implements a range of times.
Definition: Station.h:182
PathName(const char *p)
Constructor, given a plain C string.
Definition: PathName.h:87
PageLabelDictionary(NumberStyle s=None, const string p="", int st=1, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:843
@ Reverse
Reverse.
Definition: xpressnet.tcl:531
bool GetBlueButton27() const
Get Blue Button 27.
Definition: RaildriverIO.h:517
double X2() const
Return the second X coordinate.
Definition: PDFPrinterSupport.h:621
char * positionName
Name of route.
Definition: TrackGraph.h:326
const string Today() const
Return today's date.
istream & Read(istream &stream)
Read Method.
@ Bold
Heavy (bold) weight.
Definition: Printer.h:323
void SetLastTrain(const Train *lt)
Set the last train to move this car.
Definition: Car.h:285
ErrorCode SetQ1Q2open() const
Outputs Q1 & Q2 both set to open circuit (disconnects switch machine #1)
Definition: sl2.h:89
unsigned char Reverser
Reverser lever, 0-255.
Definition: RaildriverIO.h:719
void AddPage(Page *thepage)
Add a page.
Definition: PDFPrinterSupport.h:1171
~IndirectFloatVector()
Destructor.
NamedIndirectObjectMap elements
The elements in this dictionary.
Definition: PDFPrinterSupport.h:458
int GetCurveSegment(float &r, float &x, float &y, float &a0, float &a1) const
Fetch curve segment data.
Definition: BezierBody.h:179
int ival
Definition: MRRXtrkCad.tab.h:69
SegPos gPos1
First graphic position.
Definition: TrackGraph.h:182
map< string, Owner *, less< string > > OwnerMap
Map of owners, indexed by their initials.
Definition: Owner.h:133
IntegerList * posList
List of segments used by the route.
Definition: TrackGraph.h:329
TrackBodyElt * theEnd
Pointer to T or E line data.
Definition: BezierBody.h:103
int shiftNumber
Current shift number.
Definition: System.h:1006
int CarMovements() const
Return the total number of car movements.
Definition: System.h:497
struct azatrax::MRD::status2_union::@2 theBits
Status byte as bit fields.
PageTree * parent
This page tree's parent.
Definition: PDFPrinterSupport.h:792
Rectangle(double x_1, double y_1, double x_2, double y_2, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
Constructor.
Definition: PDFPrinterSupport.h:602
void SpeakerOn(char **outmessage=NULL)
Turn the speaker on.
ErrorCode Identify_1() const
Identify 1.
Definition: Azatrax.h:295
unsigned int PickIndex() const
Return the pick index.
Definition: SwitchList.h:279
A callback to log a message.
Definition: CallBack.h:124
float L
$L$ value.
Definition: TrackGraph.h:206
virtual ~PrinterDevice()
Destructor.
Definition: Printer.h:403
int GetTurnoutStraightSegment(float &x1, float &y1, float &x2, float &y2) const
Fetch turnout straight segment data.
Definition: TurnoutBody.h:214
uint8_t theByte
Status byte as a byte.
Definition: sr4.h:275
void Cleanup()
Cleanup member function.
Definition: TrackGraph.h:671
uint8_t status1
Status byte 1 (All Devices)
Definition: Azatrax.h:423
float LengthOfNode(int nid) const
Return the track length of a node.
int NextSwitchListForCarAndIndustry(const Car *car, const Industry *industry)
Return the next switch list list element for a selected car and industry.
~BezierBodyElt()
Destructor.
Definition: BezierBody.h:133
void Randomize(int seed)
Set the random seed.
Definition: System.h:572
ErrorCode SetQ3Q4open() const
Outputs Q3 & Q4 both set to open circuit (disconnects switch machine #2)
Definition: sl2.h:95
int turnoutnumber
Number of the turnout.
Definition: TrackGraph.h:607
int segmentId
Segment index (S or C lines).
Definition: CornuBody.h:106
bool FixedRouteMirrorCheck(Car *Cx, Industry *Ix)
Check to see if a certain car can be mirrored on a fixed route at a certain industry.
YY_MRRXtrkCad_ENUM_TOKEN
Definition: MRRXtrkCad.tab.h:437
const double GScale
Definition: MRRXtrkCad.tab.h:44
configure(path,...)
Procedure to configure a LabelSpinBox.
static int TrackBodyLength(const TrackBody *tb)
Compute the count of track endpoints.
Definition: TrackBody.h:182
istream & Read(istream &stream, const CabNameMap cabs)
Read an object from a stream.
void FreeObject(unsigned long int objNum)
Free up a object slot in the cross reference table.
#define YY_MRRXtrkCad_STYPE
Definition: MRRXtrkCad.tab.h:83
@ One
Single wide characters.
Definition: Printer.h:307
const Industry * PickLocation() const
Return the pickup location for this switch list element.
Definition: SwitchList.h:150
int Note(int i) const
Return the ith note.
Definition: Train.h:220
int statsLen
The stats length.
Definition: Industry.h:317
@ STATION
Report by station.
Definition: System.h:808
@ RESTOFLINE
Definition: ParserClassesGroup.h:112
Resource dictionary.
Definition: PDFPrinterSupport.h:468
string name
Name of the train.
Definition: Train.h:457
PDFFileStructures::CrossReferenceTable crossReferenceTable
PDF Cross reference table.
Definition: PDFPrinter.h:142
Pos pos1
First position.
Definition: BezierBody.h:118
@ FLOAT
Definition: ParserClassesGroup.h:110
int currentColumn
Current column.
Definition: LQ24Printer.h:148
const char * Comment() const
Return the station's comment.
Definition: Station.h:121
A CAN Message, containing a 29-bit header and upto 8 bytes of data.
Definition: lcc.tcl:605
@ Summary
Report summary.
Definition: System.h:782
string pathname
The pathname string.
Definition: PathName.h:185
void PrintIndustryHeader(FCFSupport::PrinterDevice *printer) const
Print the industry header.
@ DIGITAL5_M
Pan, Cab Buttons.
Definition: RaildriverIO.h:160
bool ReadTrainOrders(char **outmessage=NULL)
Read in the train orders file.
Node ID regexp pattern or the empty string.
Definition: lcc.tcl:1033
float ang0
First angle.
Definition: TrackGraph.h:197
bool StopwatchTicking() const
Stopwatch Ticking?
Definition: mrd.h:185
struct azatrax::SR4::status1_union::@6 theBits
Status byte as bit fields.
int horizontalScaling
Current horizontal scaling.
Definition: PDFPrinter.h:172
void SetMaxWeight(int newmaxweight)
Set the train's maximum weight class.
Definition: Train.h:258
IndirectObjectDictionary font
A Dictionary that maps resource names to font dictionaries.
Definition: PDFPrinterSupport.h:575
float EdgeLength(int nid, int edgenum) const
Returns the length of an edge.
@ MaxCarTypes
The maximum number of car types (based on 7-bit ASCII).
Definition: CarType.h:88
bool Latch_2() const
Latch two.
Definition: mrd.h:167
int trainTons
The number of tons on a train.
Definition: System.h:1042
_(...)
Get a localized from the message catalog and deal with formating possible arguments,...
void SetLEDS(const char *ledstring, char **outmessage=NULL)
Set the Speedometer LEDs.
istream & Read(istream &stream)
Read an object from a stream.
bool GetBlueButton1() const
Get Blue Button 1.
Definition: RaildriverIO.h:335
bool compressedP
Is graph compressed?
Definition: TrackGraph.h:824
OwnerMap owners
Car owner map.
Definition: System.h:994
unsigned char GetIndependBrake() const
Get Indepenent Brake value (0-255).
Definition: RaildriverIO.h:313
@ S
Straight segment.
Definition: TrackGraph.h:167
double currentColumnFraction
Current column fraction.
Definition: PDFPrinter.h:193
StationTimes & operator=(const StationTimes &other)
Assignment operator: copy the fields from another StationTimes object.
Definition: TimeTableSystem.h:194
virtual bool OpenPrinter(const string filename, PageSize pageSize=Letter, char **outmessage=NULL)
Open the printer file.
float ang0
An angle value.
Definition: CornuBody.h:124
This class records a train sitting on a storage track during a specified time frame.
Definition: Station.h:94
double x
X coordinate.
Definition: TrackGraph.h:757
const char * CarTypesFile() const
Return the Car Types file's full path name.
Definition: System.h:249
int pages
The page count.
Definition: PostScriptPrinter.h:149
unsigned int reserved
Reserved bits.
Definition: mrd.h:243
int MaxWeightClass() const
Maximum weight class this industry can handle.
Definition: Industry.h:230
PathName & operator+=(const PathName other)
Append a pathname.
Division(Division &other)
Copy constructor.
Definition: Division.h:83
Stop(const Stop &other)
Copy constructor, create a stop from another stop.
Definition: Train.h:165
int TrainIndex(const FCFSupport::Train *train) const
Return a train's index.
int fieldflag
Definition: ParserClassesGroup.h:191
Status byte 2 union type.
Definition: mrd.h:247
bool DropStopEQ(int Px) const
Is the drop stop at the stop number specified?
Definition: SwitchList.h:183
bool needPage
Need page flag.
Definition: PDFPrinter.h:181
virtual bool Put(const string text)
Print a string of text.
virtual ~PDFPrinterDevice()
Destructor.
~PDFStream()
Destructor.
Definition: PDFPrinterSupport.h:669
char * onscript
On action script.
Definition: TrackGraph.h:634
TrainMap::const_iterator FirstTrain() const
Iterator of the first train in the train map.
Definition: System.h:905
const Industry * industry
An industry stop, for Manifest Freights.
Definition: SwitchList.h:84
int TotalShifts() const
Return the total number of shifts.
Definition: System.h:415
@ SCALE
Definition: ParserClassesGroup.h:122
vector< string > stringVector
A Vector of strings.
Definition: PathName.h:66
bool Input_1_Enabled() const
Input 1 enabled? Return true if I1 can affect outputs.
Definition: sr4.h:223
@ THROTTLE
Throttle lever.
Definition: RaildriverIO.h:191
A Class that portably represents a pathname.
Definition: PathName.h:75
int ltwt
This car's empty weight.
Definition: Car.h:380
ErrorCode SetChan2() const
Set channel 2 relays and status bits.
Definition: mrd.h:117
int Length() const
Return the car's length.
Definition: Car.h:213
float len0
First length parameter.
Definition: TrackGraph.h:212
bool Sense_1() const
Sensor one active.
Definition: mrd.h:149
Page label dictionary.
Definition: PDFPrinterSupport.h:811
bool GetBell() const
Get Bell.
Definition: RaildriverIO.h:622
unsigned int input_1_enabled
Input 1 enabled?
Definition: sr4.h:315
int firstChar
First character in widths array;.
Definition: PDFPrinterSupport.h:1106
float len1
Second length parameter.
Definition: TrackGraph.h:215
@ Turntable
Turntable.
Definition: TrackGraph.h:520
void PrintAnalysisHeader(FCFSupport::PrinterDevice *printer) const
Print an analysis header.
Logical transport of CAN Messages.
Definition: lcc.tcl:1125
void RemoveNote(int note)
Remove note.
Definition: Train.h:237
bool RemovedStoredTrain(double from, double to)
Remove stored train.
StationOrIndustry dropStop
The station or industry where this car will be dropped off at.
Definition: SwitchList.h:209
virtual bool ClosePrinter(char **outmessage)
Close the printer.
Definition: Printer.h:295
@ Normal
Normal weight.
Definition: Printer.h:320
float length
Track length from opposite edge.
Definition: TrackGraph.h:743
@ TRK
Definition: ParserClassesGroup.h:156
static const int LEDCommand
LED Command code.
Definition: RaildriverIO.h:690
virtual ~LQ24PrinterDevice()
Destructor.
unsigned char BailOff
Bail Off (Independent Brake lever), 0-255.
Definition: RaildriverIO.h:731
ostream & Write(ostream &stream) const
Write method.
Compressed graph node values.
Definition: TrackGraph.h:767
float ang0
An angle value.
Definition: BezierBody.h:124
int MaxLength() const
Return the train's maximum length.
Definition: Train.h:261
int LdLmt() const
Return the car's load limit.
Definition: Car.h:237
WriteConfiguration(filename, configurationArrayName)
This procedure writes the configuration contianed in configurationArrayName to the file named by the ...
CompressedGraph c_nodes
Compressed Graph adjacency_list.
Definition: TrackGraph.h:815
@ Infomational
Random informational messages.
Definition: CallBack.h:132
string name
The station's name.
Definition: Station.h:147
TypeSlant currentSlant
Current slant.
Definition: LQ24Printer.h:160
float ang1
Another angle value.
Definition: BezierBody.h:126
post(path,...)
Pass through procedure for the ComboBox post function.
double From() const
Return the low end of the range.
Definition: Station.h:194
Segment position, endpoint or other coordinate.
Definition: TrackGraph.h:131
list tcl_socketpair()
Tcl interface to socketpair.
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write an object directly.
~ResourceDictionary()
Destructor.
Definition: PDFPrinterSupport.h:482
Industry(Industry &other)
Copy constructor.
Definition: Industry.h:104
Status byte 1 union type.
Definition: mrd.h:227
bool IsCompressed() const
Definition: ParseFile.h:571
TurnoutGraphic * tgr
Turnout graphic (if type is turnout).
Definition: TrackGraph.h:595
@ INDEPENDBRK
Independent Brake lever.
Definition: RaildriverIO.h:203
int YY_MRRXtrkCad_CHAR
Definition: MRRXtrkCad.tab.h:528
unsigned int Q2_state
Q2 state.
Definition: sr4.h:281
@ Y
Definition: ParserClassesGroup.h:153
@ Turnout
Turnout or crossing.
Definition: TrackGraph.h:517
IntegerList * CompressedNodeSegments(int cnid) const
Raw nodes in a compressed graph node.
PDFFileStructures::InformationDirectory * info
Information dictionary.
Definition: PDFPrinter.h:157
DeviceConnectionList
Device connection list constants.
Definition: Azatrax.h:265
@ Type
Report on one type.
Definition: System.h:780
void SetPrintYards(bool flag)
Set the print yard lists flag.
Definition: System.h:513
virtual ~PostScriptPrinterDevice()
Destructor.
float R
$R$ value (for J lines).
Definition: TurnoutBody.h:155
void PrintOneAnalysis(const Industry *Ix, int &carsToDiv, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer) const
Print one analysis report.
bool GetBlueButton10() const
Get Blue Button 10.
Definition: RaildriverIO.h:398
OperatingMode_Type
Operating Mode codes.
Definition: mrd.h:91
@ S
Definition: ParserClassesGroup.h:150
int NumberOfIndustries() const
Return the number of industries at this station.
Definition: Station.h:124
Namespace that holds the XPressNet interface code.
Definition: xpressnet.tcl:37
void ReportCars(const FCFSupport::WorkInProgressCallback *WIP, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer, char **outmessage=NULL) const
Report on all cars.
static CornuBodyElt * MakeTrackEnd(TrackBodyElt *tbe)
Create an endpoint (T or E lines).
Definition: CornuBody.h:137
unsigned int Q1_state
Q1 state.
Definition: sr4.h:279
@ BezierEnd
T or E line.
Definition: BezierBody.h:86
unsigned char Digital3
Blue Buttons 17-24.
Definition: RaildriverIO.h:746
string name
This owner's name.
Definition: Owner.h:123
configure(path,...)
Configuration procedure: configure one or more options for this widget.
map< char, Division *, less< char > > DivisionSymbolMap
A map of divisions, by division symbol (a character).
Definition: Division.h:178
bool PrintDispatch() const
Print dispatcher report sheet.
Definition: System.h:544
MRRXtrkCad * parser
Parser.
Definition: ParseFile.h:433
@ in
Input Pin.
Definition: LinuxGpio.tcl:43
int sessionNumber
Current session number.
Definition: System.h:1003
Station(string name_="Unknown", double smile_=0)
Construct a station object, given a name and a scale mile location.
Definition: Station.h:549
int trips
The number of trips this car has made.
Definition: Car.h:386
int ShiftNumber() const
Return the shift number.
Definition: System.h:412
bool Peek() const
Return the peek flag.
Definition: Car.h:336
int yynerrs
Definition: ParserClassesGroup.h:176
int CompressedEdgeNode(int cnid, int edgenum) const
Next Edge node.
const char * StatsFile() const
Return the Statistics file's full path name.
Definition: System.h:255
Car & operator=(Car &other)
Assignment operator.
Definition: Car.h:114
IntegerList * routeList
Segment list (P Lines).
Definition: TurnoutBody.h:121
const char * Description() const
Return the train's description.
Definition: Train.h:237
string comment
Commentary about this owner.
Definition: Owner.h:126
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write the elements of a dictionary.
Definition: PDFPrinterSupport.h:439
int carsAtDest
The number of cars at their destinations.
Definition: System.h:1072
bool Q4_State() const
Q4 state, return true if Q4 is closed.
Definition: sr4.h:217
static const unsigned short int RailDriverModernDesktop
Rail Driver product code.
Definition: RaildriverIO.h:678
const double OScale
Definition: MRRXtrkCad.tab.h:42
int TrackLen() const
Return the amount of track at this industry.
Definition: Industry.h:209
void TrainDropOneCar(Car *car, Train *train, CarVector::iterator Lx, CarVector &consist, bool &didAction, int Px, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Drop a single car.
const char * NameOfNode(int nid) const
Return a block's or switchmotor's name.
double from
The start time of the occupation.
Definition: Station.h:168
Industry * Destination() const
Return the destination of this car.
Definition: Car.h:309
void AddPageTree(PageTree *thepagetree)
Add a tree of pages.
Definition: PDFPrinterSupport.h:778
StationVector stations
The vector of stations in the division.
Definition: Division.h:156
@ LowerLetters
Lowercase letters.
Definition: PDFPrinterSupport.h:833
PDFNameArray procSets
An array of predefined preseture set names.
Definition: PDFPrinterSupport.h:582
@ cmd_OutputRelayBlink
3 bytes - Sets output relay contacts to blinking state.
Definition: Azatrax.h:208
unsigned short int GenerationNumber() const
Return this object's generation number.
Definition: PDFPrinterSupport.h:221
virtual bool ClosePrinter(char **outmessage)
Close the printer.
const IntegerList * TrackList(int nid) const
Return a block's tracklist.
Definition: ParseFile.h:496
bool SameDirectory(const PathName other) const
Are the two pathnames in the same directory?
Definition: PathName.h:145
cget(path, option)
Procedure to get a configuation option.
This is the main Freight Car Forwarder class.
Definition: System.h:198
unsigned long int objectNumber
The object number.
Definition: PDFPrinterSupport.h:259
int limitCars
The limit index.
Definition: SwitchList.h:315
void ShowCarMovements(bool showAll, const FCFSupport::Industry *Ix, const FCFSupport::Train *Tx, const FCFSupport::LogMessageCallback *Log, const FCFSupport::ShowBannerCallback *banner) const
Show all car movements.
float y
$Y$ coordinate.
Definition: CornuBody.h:115
bool WriteOneCarToDisk(Car *car, ostream &stream)
Function to write one car to disk.
ErrorCode GetStateData()
Get State Data.
string FullPath() const
Return the full pathname.
Definition: PathName.h:159
IntegerList * Next()
Next pointer accessor (non-Const version).
Definition: IntegerList.h:145
streampos FileOffset() const
Return this object's file offset.
Definition: PDFPrinterSupport.h:226
const Train * pickTrain
The train picking this car up.
Definition: SwitchList.h:203
trackworkmethods()
Macro to include trackwork drawing methods.
void TrainLocalOriginate(Train *train, bool boxMove, int Px, CarVector &consist, bool &didAction, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Make up a local train.
bool Input_2_Enabled() const
Input 2 enabled? Return true if I2 can affect outputs.
Definition: sr4.h:229
void TrainLocalPickups(Train *train, bool boxMove, int Px, CarVector &consist, bool &didAction, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Pick up cars for a local train (box move or way freight).
void AddNote(int note)
Add a note.
Definition: Train.h:227
int numSegments
Number of segments.
Definition: TrackGraph.h:264
const char * StringListToString(const StringList &list)
Convert a list of strings to a flat string.
virtual ~TrainDisplayCallback()
Destructor.
Definition: CallBack.h:210
map< int, Station *, less< int > > StationMap
A station map by integer index.
Definition: Station.h:167
Namespace to hold all of the FCF Support code.
Definition: System.h:92
unsigned int sense_2
Sense 2.
Definition: sr4.h:299
struct libusb_device_handle * handle
USB Device Handle.
Definition: Azatrax.h:402
virtual bool OpenPrinter(const string filename, PageSize pageSize=Letter, char **outmessage=NULL)
Member function to open the printer.
const char * Name() const
Return this owner's name.
Definition: Owner.h:112
StringPairList * aspectlist
Aspect list (name, script pairs).
Definition: TrackGraph.h:625
@ cmd_Q3negQ4pos
(SL2 only) Sets output terminal Q3 to negative, Q4 to positive.
Definition: Azatrax.h:179
char group
The group code.
Definition: CarType.h:148
bool Sense_2_Live() const
Sense 2, return true if input line 2 is now activated.
Definition: sr4.h:253
PDFNameArray()
Constructor.
Definition: PDFPrinterSupport.h:350
string loadTypes
The vector of loaded car type charactes.
Definition: Industry.h:284
@ DC2
Device control 2.
Definition: LQ24Printer.h:180
bool Latch_1() const
Latch one.
Definition: mrd.h:161
ostream & Write(ostream &stream) const
Write object to a stream.
@ BoxMove
A Box Move train.
Definition: Train.h:143
bool Q1_State() const
Q1 state, return true if Q1 is closed.
Definition: sr4.h:199
int NumberOfOrders() const
Return the number of train orders for this train.
Definition: Train.h:284
int NumEdges(int nid) const
Returns the number of edges for the specificed node id.
PageTree * pages
Pages.
Definition: PDFPrinterSupport.h:1208
A modified version of the BWidget PanedWindow.
Definition: panedw.tcl:20
Point position
Node's graphical position.
Definition: TrackGraph.h:776
double Y2() const
Return the second Y coordinate.
Definition: PDFPrinterSupport.h:624
@ cmd_DisableExternal
Disable External Changes (MRD2 only)
Definition: Azatrax.h:167
The cross reference table object.
Definition: PDFPrinterSupport.h:103
@ REVERSER_M
Reverser lever.
Definition: RaildriverIO.h:90
float ang1
Another angle value.
Definition: CornuBody.h:126
virtual ~PauseCallback()
The destructor.
Definition: CallBack.h:275
std::vector< graph_traits< CompressedGraph >::vertex_descriptor > CompressedNodeVector
Definition: TrackGraph.h:837
static BezierBody * ConsBezierBody(BezierBodyElt *trbe, BezierBody *trb)
Alternitive constructor function.
Definition: BezierBody.h:218
map< string, StorageTrack, less< string > > StorageTrackMap
Storage track map.
Definition: Station.h:529
@ SUSIC
Super Classic Universal Serial Interface Card.
Definition: cmri.tcl:82
int lookup_word(const char *word) const
const Occupied * UpdateStoredTrainArrival(double from, double to, double newArrival)
Update a train's arrival time.
Industry(char t, Station *st, const char *n, int tl, int al, int p, bool r, char h, Industry *m, int pl, int c, const char *dcl, int mcl, const char *lt, const char *et)
Full constructor.
Definition: Industry.h:172
bool printAtwice
Flag for printing a second copy of alphabetical lists.
Definition: System.h:1108
SR4(const char *serialnumber, char **outmessage=NULL)
Base constructor.
Definition: sr4.h:79
CornuBodyElt * element
Current element.
Definition: CornuBody.h:199
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write the elements of a dictionary.
Definition: PDFPrinterSupport.h:337
int CarsMovedOnce() const
Return the number of cars moved once.
Definition: System.h:485
const Station * DropStopStation() const
Return the station this switch list element is dropping off at.
Definition: SwitchList.h:172
const FCFSupport::Industry * FindIndustryByIndex(int i) const
Find an industry by its index.
Definition: System.h:343
PathName ownersFile
Full pathname of the car owners file.
Definition: System.h:958
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write an object directly.
~Station()
Destructor.
Definition: Station.h:112
int weightclass
This car's weight class.
Definition: Car.h:377
float EdgeA(int nid, int edgenum) const
Returns the angle of the specificed edge of the node.
Definition: ParseFile.h:476
ReadConfiguration(filename, configurationArrayName)
This procedure reads in the configuration file named by the filename into the array named by configur...
const char * SenseScript(int nid) const
Return a block's or switchmotor's sense script.
Definition: ParseFile.h:505
int maxlength
The maximum length for this train.
Definition: Train.h:369
virtual bool ClosePrinter(char **outmessage)
Close the printer.
float y
$Y$ coordinate.
Definition: BezierBody.h:115
bool GlobStringMatch(const string thestring, const string pattern) const
Glob style string match function.
NodeType type
Type of node.
Definition: TrackGraph.h:592
Track Graph class, which encapsulates the track graphs.
Definition: TrackGraph.h:504
const FCFSupport::Industry * IndScrapYard() const
Return a pointer to the scrap yard.
Definition: System.h:462
PathName(const char *p)
Constructor, given a plain C string.
Definition: PathName.h:83
float angle
An angle.
Definition: TrackGraph.h:209
virtual bool NewPage(const string heading="")
Generate a new page.
string divList
The list of division symbols for this train.
Definition: Train.h:348
bool Input_4_Enabled() const
Input 4 enabled? Return true if I4 can affect outputs.
Definition: sl2.h:183
virtual ~LayoutFile()
Destructor.
FCFSupport::Station * TheStation(int i)
Station indexing function.
Definition: System.h:287
@ TURNTABLE
Definition: ParserClassesGroup.h:132
void AddPageLabelTree(PageLabelTree *node)
Add a page label tree node.
Definition: PDFPrinterSupport.h:1184
const char * EmptiesAccepted() const
The types of empties this industry can handle.
Definition: Industry.h:242
#define ErrorCode
Definition: Azatrax.h:95
void TrainDropAllCars(Train *train, int Px, CarVector &consist, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Drop all cars from a train at the current stop (usually the last stop).
SWIGEXPORT int Tclsocketcan_SafeInit(Tcl_Interp *)
DivisionMap divisions
Division map.
Definition: System.h:970
void AddCar(FCFSupport::Car *newcar)
Add a new car to the array of cars.
Definition: System.h:406
PrinterDevice(const string filename="", const string title="", PageSize pageSize_=Letter, char **outmessage=NULL)
Constructor.
Definition: Printer.h:259
int Note(int i) const
Return the ith note.
Definition: Train.h:359
IndirectFloatVector * widths
Widths array.
Definition: PDFPrinterSupport.h:1112
string currentFontName
Current font name.
Definition: PDFPrinter.h:166
void SetLtWt(int lw)
Set the car's empty weight.
Definition: Car.h:234
int numberCars
The number of cars on a train.
Definition: System.h:1039
Owner()
The default constructor initializes all fields to the empty string.
Definition: Owner.h:72
virtual bool SetTypeSpacing(TypeSpacing spacing)
Set the type spacing.
char carTypesOrder[CarType::MaxCarTypes]
Car type order vector.
Definition: System.h:985
void SetDestinationStorageTrack(string trackname)
Set the destination storage track.
FCFSupport::Division * TheDivision(int i)
Division indexing function.
Definition: System.h:278
static TurnoutBodyElt * MakeTurnoutRoute(char *pName, IntegerList *cList)
Create a turnout route (P lines).
Definition: TurnoutBody.h:184
bool operator<(const TimeRange &other) const
Less than operator.
Definition: Station.h:207
int trainLoads
The number of loads on a train.
Definition: System.h:1045
void TrainPrintConsistSummary(Train *train, CarVector &consist, FCFSupport::PrinterDevice *printer)
Print a train's consist summary.
Station & operator=(const Station &other)
Assignment operator.
Definition: Station.h:569
const char * Name() const
Return the train's name.
Definition: Train.h:228
@ DIGITAL5
Pan, Cab Buttons.
Definition: RaildriverIO.h:254
string number
This car's number.
Definition: Car.h:365
virtual void Pause(string message) const
Display a message and wait for a user response.
Definition: CallBack.h:282
ErrorCode EnableExternal() const
Enable external changes of turnout state.
Definition: mrd.h:132
bool PrintList() const
Print the switch list order flag.
Definition: System.h:530
ErrorCode RestoreLEDFunction() const
Restore LED function.
Definition: Azatrax.h:290
virtual bool PutLine(const string line="")
Print out a string and follow it with a new line sequence.
Definition: Printer.h:367
const char * Color() const
Return the color of the cab.
Definition: Cab.h:98
uint8_t theByte
Status byte as a byte.
Definition: sl2.h:193
uint8_t status2
Status byte 2 (All Devices)
Definition: Azatrax.h:427
@ cmd_ResetStopwatch
Reset Stopwatch (MRD2 only)
Definition: Azatrax.h:191
CarGroup(char g, const char *d)
Full constructor.
Definition: CarType.h:206
bool PickLocationEq(int Gx, const Industry *Ix) const
Is the selected element for the specificed industry?
float x
$X$ coordinate.
Definition: TrackGraph.h:134
int CarsAtWorkBench() const
Return the number of cars on the RIP track (the workbench).
Definition: System.h:503
const char * OwnersFile() const
Return the Owners file's full path name.
Definition: System.h:246
PDFPrinterDevice(const string filename="", const string title_="", PageSize pageSize=Letter, char **outmessage=NULL)
Constructor.
~Train()
Descructor.
Definition: Train.h:225
bool GetBlueButton20() const
Get Blue Button 20.
Definition: RaildriverIO.h:468
ostream & WriteIndirectReference(ostream &stream) const
Write an object indirectly.
Definition: PDFPrinterSupport.h:202
ErrorCode RelaysOff(bool Q1, bool Q2, bool Q3, bool Q4)
Set output relay contacts off.
Definition: sr4.h:112
float radius
A radius value.
Definition: TurnoutBody.h:146
bool operator==(const PathName other) const
Equality operator.
Definition: PathName.h:115
char Hazard() const
What sorts of hazardious material classes can this industry handle?
Definition: Industry.h:221
string number
Number or symbol of the train;.
Definition: Train.h:460
IndustryMap::const_iterator FirstIndustry() const
Iterator of the first industry in the industry map.
Definition: System.h:911
uint8_t theByte
Status byte as a byte.
Definition: sr4.h:311
CompressedNodeValues(int _id=-1)
Default constructor.
Definition: TrackGraph.h:796
ostream & operator<<(ostream &stream, const SwitchListElement &element)
Output stream operator for SwitchListElements.
bool GetBlueButton6() const
Get Blue Button 6.
Definition: RaildriverIO.h:370
float y
Y value of edge.
Definition: TrackGraph.h:556
@ stream
Stream frame.
Definition: lcc.tcl:125
void SetWeightClass(int wc)
Set the car's weight class.
Definition: Car.h:228
TypeSlant
Type slant.
Definition: Printer.h:327
const TurnoutRoutelist * NodeTurnoutRoutelist(int nid) const
Returns the TurnoutRoutelist of the node.
Definition: ParseFile.h:489
std::pair< int, int > CompressedEdgePair
Definition: TrackGraph.h:538
~CornuBodyElt()
Destructor.
Definition: CornuBody.h:133
void Load()
Load the car.
Definition: Car.h:249
virtual bool SetTypeWeight(TypeWeight weight)
Set the type weight.
void TrainPickupOneCar(Car *car, Train *train, bool boxMove, CarVector &consist, bool &didAction, int Px, CarVector::iterator Lx, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Pick up one car.
@ HEADLIGHT_M
Headlight switch.
Definition: RaildriverIO.h:128
@ DIVISION
Report by division.
Definition: System.h:811
IndirectObjectDictionary colorSpace
A dictionary that maps each resource name to either the name of a device-dependent color space or to ...
Definition: PDFPrinterSupport.h:561
int totalRevenueTons
The total number of revenue tons.
Definition: System.h:1024
int weightclass
The industry's weight class.
Definition: Industry.h:305
list< string > StringList
List of strings.
Definition: TimeTableSystem.h:255
void RunOneTrain(Train *train, bool boxMove, const FCFSupport::TrainDisplayCallback *traindisplay, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Run one single train.
void PrintFormFeed(FCFSupport::PrinterDevice *printer) const
Print a form feed.
const char * OffScript(int nid) const
Return the off action script.
void AddPage(Page *thepage)
Add a page.
Definition: PDFPrinterSupport.h:771
~System()
The destructor frees all memory and generally cleans things up.
Status byte 2 union type (Input sense)
Definition: sl2.h:209
PathName trainsFile
Full pathname of the trains file.
Definition: System.h:952
void PrintSystemBanner(FCFSupport::PrinterDevice *printer) const
Print a system banner.
bool reload
The reload flag.
Definition: Industry.h:326
Pos pos2
Second position.
Definition: CornuBody.h:120
vector< string > split(string s, char delimiter) const
Helper utility to split a string into words.
#define YY_MRRXtrkCad_LTYPE
Definition: MRRXtrkCad.tab.h:177
string carTypes
The list of car type charactes.
Definition: Train.h:351
LayoutFile(const char *filename, MRRXtrkCad *p)
Constructor.
@ cmd_Q1negQ2pos
(SL2 only) Sets output terminal Q1 to negative, Q2 to positive.
Definition: Azatrax.h:173
const Train * LastTrain() const
Return the last train to move this car.
Definition: Car.h:282
float maxY
Maximum $Y$ coordinate.
Definition: TrackGraph.h:261
CarType * TheCarType(char c)
Get a car type class instance pointer given a car type.
Definition: System.h:374
@ BAILOFF
Independent Brake bail off.
Definition: RaildriverIO.h:210
YY_MRRXtrkCad_LTYPE YY_MRRXtrkCad_LLOC
Definition: MRRXtrkCad.tab.h:525
int YY_MRRXtrkCad_DEBUG_FLAG
Definition: MRRXtrkCad.tab.h:532
vector< Station > StationVector
Station Vector.
Definition: Station.h:777
void PrintTrainLoc(Train *train, int Px, const FCFSupport::LogMessageCallback *Log, const FCFSupport::TrainDisplayCallback *traindisplay)
Print a train's current location.
bool Sense_1_Live() const
Sense 1, return true if input line 1 is now activated.
Definition: sr4.h:247
virtual ostream & WriteDictionaryElements(ostream &stream) const
Write an object directly.
const string PSQuote(const string s) const
Function to PostScript quote a string.
virtual ostream & WriteDirect(ostream &stream) const
Write an object directly.
Definition: PDFPrinterSupport.h:1010
void CompressedGraphCircleLayout(double radius)
Run the BGL circle_graph_layout for a given radius.
bool ReadInputs(Eventmask_bits &mask, int &status)
Poll the interface.
vector< PDFStream * > PDFStreamVector
A vector of PDF Streams.
Definition: PDFPrinterSupport.h:681
getvalue(path,...)
Procedure to get the value of the SpinBox.
void InternalRunOneTrain(Train *train, bool boxMove, const FCFSupport::TrainDisplayCallback *traindisplay, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer)
Internal function to run a single train.
const Owner * owner
The owner of this car.
Definition: Car.h:347
virtual void ShowBanner() const
Display the application supplied banner text.
Definition: CallBack.h:185
const char * Name() const
Return the name of the storage track.
Definition: Station.h:303
PathName(const PathName &other)
Copy constructor.
Definition: PathName.h:93
@ A4
European A4 page size.
Definition: Printer.h:226
@ last
Last frame datagram.
Definition: lcc.tcl:121
float EdgeX(int nid, int edgenum) const
Returns the $X$ coordinate of the specificed edge of the node.
Definition: ParseFile.h:470
A tree of pages.
Definition: PDFPrinterSupport.h:746
vector< char > CarTypeOrderVector
A vector of ordered car types.
Definition: CarType.h:155
map< int, Industry *, less< int > > IndustryMap
A map of industry pointers indexed by an integer.
Definition: Industry.h:339
vector< Station * > StationVector
A station vector.
Definition: Station.h:164
@ NumberOfCarTypes
The number of usable car type characters.
Definition: CarType.h:85
unsigned int motor_2_state
Motor 2 state.
Definition: sl2.h:203
static int deviceOpenCount
Device open count.
Definition: Azatrax.h:396
StorageTrack * AddStorageTrack(string name_)
Add a storage track.
FCFSupport::Industry * IndustryStop(int index) const
Return the Ith industry stop this train makes.
Definition: Train.h:298
string trainnum
The train that arrived.
Definition: Station.h:162
struct azatrax::SL2::status3_union::@5 theBits
Status byte as bit fields.
bool Sense_3() const
Sense 3, return true if input line 3 was activated since last get status.
Definition: sl2.h:129
double y1
First Y coordinate.
Definition: PDFPrinterSupport.h:640
A Class that portably represents a pathname.
Definition: PathName.h:79
unsigned char GetReverser() const
Get Reverser value (0-255).
Definition: RaildriverIO.h:298
@ NonTurnoutSeparate
Non Turnout, separate (-U always reports this).
Definition: mrd.h:93
bool GetPanUp() const
Get Pan Up.
Definition: RaildriverIO.h:545
Owner(Owner &other)
The copy constructor copies the contents of another Owner to this one.
Definition: Owner.h:77
StorageTrack & operator=(const StorageTrack &other)
Assign a StorageTrack to another StorageTrack.
Definition: Station.h:397
unsigned int reservered
Reserved bits.
Definition: sl2.h:205
const char * DivisionList() const
Return the train's division list (string of symbols).
Definition: Train.h:231
datagramcontent
Definition: lcc.tcl:101
double layover
The layover time.
Definition: Train.h:274
bool Input_1_Enabled() const
Input 1 enabled? Return true if I1 can affect outputs.
Definition: sl2.h:165
SwitchListElement(const Industry *pickloc, const Car *pickcar, const Train *picktrain, const Train *lasttrain, const Station *sstop)
Constructor, given a local freight's stop at a station.
Definition: SwitchList.h:139
NumberStyle style
Page numbering style.
Definition: PDFPrinterSupport.h:862
@ Terminate
Definition: Train.h:146
void PrintOneIndustry(const Industry *ix, int &lenInDiv, int &carsInDiv, int &carsToDiv, const FCFSupport::LogMessageCallback *Log, FCFSupport::PrinterDevice *printer) const
Print one industry.
create(path,...)
Creation procedure.
StationMap stations
Station map.
Definition: System.h:973
int CompressedEdgeCount(int cnid) const
Number of compressed graph edges.
Definition: ParseFile.h:549