Model Railroad System 2.2.2
|
#include <CarType.h>
Public Types | |
enum | CarGroupConsts { MaxCarGroup = 16 } |
Car group constants. More... | |
Public Member Functions | |
CarGroup () | |
Default constructor. More... | |
CarGroup (CarGroup &other) | |
Copy constructor. More... | |
CarGroup & | operator= (CarGroup &other) |
Assignment operator. More... | |
CarGroup (char g, const char *d) | |
Full constructor. More... | |
char | Group () const |
Return the group code. More... | |
const char * | Description () const |
Return the descrition string. More... | |
Private Attributes | |
string | description |
The description string. More... | |
char | group |
The car group code. More... | |
Car group constants.
Enumerator | |
---|---|
MaxCarGroup | The maximum number of car groups. |
|
inline |
|
inline |
Copy constructor.
Create a car group that is a clone of another.
other | The other car group instance. |
References description, and group.
|
inline |
Full constructor.
g | Car group character code. |
d | Description of this car group. |
References description, and group.
|
inline |
Return the descrition string.
References description.
|
inline |
Return the group code.
References group.
Assignment operator.
Create a car group that is a clone of another.
other | The other car group instance. |
References description, and group.
|
private |
The description string.
Referenced by CarGroup(), Description(), and operator=().
|
private |
The car group code.
Referenced by CarGroup(), Group(), and operator=().