|
Model Railroad System 2.2.2
|
The CarType class represents a type of railroad car (rolling stock). More...
#include <CarType.h>
Public Types | |
| enum | CarTypeConsts { NumberOfCarTypes = 91 , MaxCarTypes = 128 } |
| Some specific constants relating to car types. More... | |
Public Member Functions | |
| CarType () | |
| Default constructor. More... | |
| CarType (CarType &other) | |
| Copy constructor. More... | |
| CarType & | operator= (CarType &other) |
| Assignment operaror. More... | |
| CarType (const char *c, const char *t, char g) | |
| Full constructor. More... | |
| ~CarType () | |
| Destructor. More... | |
| const char * | Comment () const |
| Return the car type's commentary. More... | |
| const char * | Type () const |
| Return the car type name. More... | |
| char | Group () const |
| Return the car type's group code. More... | |
Private Attributes | |
| string | comment |
| The commentary string. More... | |
| string | type |
| The type name. More... | |
| char | group |
| The group code. More... | |
Friends | |
| class | System |
| The System class is a friend. More... | |
The CarType class represents a type of railroad car (rolling stock).
Car types are represented as a single printable character and have associated with that printable character is a type name and possibly a short commentary.
Car types are also collected into groups as well.
@author Robert Heller \<heller\@deepsoft.com\>
|
inline |
|
inline |
|
inline |
|
inline |
Destructor.
|
inline |
Return the car type's commentary.
References comment.
|
inline |
Return the car type's group code.
References group.
|
inline |
Return the car type name.
References type.
|
private |
The commentary string.
Referenced by CarType(), Comment(), and operator=().
|
private |
The group code.
Referenced by CarType(), Group(), and operator=().
|
private |
The type name.
Referenced by CarType(), operator=(), and Type().