Model Railroad System  2.2.1
Public Types | Public Member Functions | Private Attributes | List of all members
FCFSupport::CarGroup Class Reference

Car group class. More...

#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...
 
CarGroupoperator= (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...
 

Detailed Description

Car group class.

Not presently used.

Author
Robert Heller <heller@deepsoft.com>

Member Enumeration Documentation

◆ CarGroupConsts

Car group constants.

Enumerator
MaxCarGroup 

The maximum number of car groups.

Constructor & Destructor Documentation

◆ CarGroup() [1/3]

FCFSupport::CarGroup::CarGroup ( )
inline

Default constructor.

Initialize all slots to me empty.

References FCFSupport::CarType::group.

◆ CarGroup() [2/3]

FCFSupport::CarGroup::CarGroup ( CarGroup other)
inline

Copy constructor.

Create a car group that is a clone of another.

Parameters
otherThe other car group instance.

References description, FCFSupport::CarType::group, and group.

◆ CarGroup() [3/3]

FCFSupport::CarGroup::CarGroup ( char  g,
const char *  d 
)
inline

Full constructor.

Parameters
gCar group character code.
dDescription of this car group.

References FCFSupport::CarType::group.

Member Function Documentation

◆ Description()

const char* FCFSupport::CarGroup::Description ( ) const
inline

Return the descrition string.

◆ Group()

char FCFSupport::CarGroup::Group ( ) const
inline

Return the group code.

References FCFSupport::CarType::group.

◆ operator=()

CarGroup& FCFSupport::CarGroup::operator= ( CarGroup other)
inline

Assignment operator.

Create a car group that is a clone of another.

Parameters
otherThe other car group instance.

References description, FCFSupport::CarType::group, and group.

Member Data Documentation

◆ description

string FCFSupport::CarGroup::description
private

The description string.

Referenced by CarGroup(), and operator=().

◆ group

char FCFSupport::CarGroup::group
private

The car group code.

Referenced by CarGroup(), and operator=().