Model Railroad System
2.2.2
|
The Division class implements a single division, which contains a number of contigious stations. More...
#include <Division.h>
Public Member Functions | |
Division () | |
Default constructor. More... | |
Division (Division &other) | |
Copy constructor. More... | |
Division & | operator= (Division &other) |
Assignment operator. More... | |
Division (char s, FCFSupport::Industry *h, char a, const char *n) | |
Constructor given a set of field values. More... | |
~Division () | |
Destructor. More... | |
const char * | Name () const |
Return the division's name. More... | |
FCFSupport::Industry * | Home () const |
Return the division's home yard. More... | |
char | Symbol () const |
Return the division's Symbol. More... | |
char | Area () const |
Return the division's area. More... | |
int | NumberOfStations () const |
Return the number of stations in this division. More... | |
const FCFSupport::Station * | TheStation (int i) const |
Return a selected station in the division. More... | |
void | AppendStation (FCFSupport::Station *station) |
Append an additional station to this division. More... | |
Private Attributes | |
string | name |
The name of the division. More... | |
StationVector | stations |
The vector of stations in the division. More... | |
Industry * | home |
The division's home yard. More... | |
char | symbol |
The division's symbol. More... | |
char | area |
The division's area. More... | |
Friends | |
class | System |
The System class is a friend. More... | |
The Division class implements a single division, which contains a number of contigious stations.
A division has a name, a symbol, an area, a home yard,and a list of stations.
@author Robert Heller \<heller\@deepsoft.com\>
|
inline |
|
inline |
|
inline |
|
inline |
Destructor.
|
inline |
Append an additional station to this division.
station | The station to append. |
References stations.
|
inline |
Return the division's area.
References area.
|
inline |
Return the division's home yard.
References home.
|
inline |
Return the division's name.
References name.
|
inline |
Return the number of stations in this division.
References stations.
|
inline |
Return the division's Symbol.
References symbol.
|
inline |
|
private |
The division's area.
Referenced by Area(), Division(), and operator=().
|
private |
The division's home yard.
Referenced by Division(), Home(), and operator=().
|
private |
The name of the division.
Referenced by Division(), Name(), and operator=().
|
private |
The vector of stations in the division.
Referenced by AppendStation(), Division(), NumberOfStations(), operator=(), and TheStation().
|
private |
The division's symbol.
Referenced by Division(), operator=(), and Symbol().