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

The Owner class describes a car owner. More...

#include <Owner.h>

Public Member Functions

 Owner ()
 The default constructor initializes all fields to the empty string. More...
 
 Owner (Owner &other)
 The copy constructor copies the contents of another Owner to this one. More...
 
Owneroperator= (Owner &other)
 The Assignment operator copies the contents of another Owner to this one. More...
 
 Owner (const char *i, const char *n, const char *c)
 The full constructor initalizes the class instance from user supplied parameters. More...
 
 ~Owner ()
 The destructor does nothing special. More...
 
const char * Initials () const
 Return this owner's initials. More...
 
const char * Name () const
 Return this owner's name. More...
 
const char * Comment () const
 Return commentary about this owner. More...
 

Private Attributes

string initials
 This owner's initials. More...
 
string name
 This owner's name. More...
 
string comment
 Commentary about this owner. More...
 

Detailed Description

The Owner class describes a car owner.

A car owned has a set of (three letter) initials, a full name, and an (optional) comment. This information is just used for informational purposes.

Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ Owner() [1/3]

FCFSupport::Owner::Owner ( )
inline

The default constructor initializes all fields to the empty string.

References comment, initials, and name.

◆ Owner() [2/3]

FCFSupport::Owner::Owner ( Owner other)
inline

The copy constructor copies the contents of another Owner to this one.

Parameters
otherThe other Owner object.

References comment, initials, and name.

◆ Owner() [3/3]

FCFSupport::Owner::Owner ( const char *  i,
const char *  n,
const char *  c 
)
inline

The full constructor initalizes the class instance from user supplied parameters.

Parameters
iThe owner's initials.
nThe owner's name.
cCommentary about this owner.

References comment, i, initials, and name.

◆ ~Owner()

FCFSupport::Owner::~Owner ( )
inline

The destructor does nothing special.

Member Function Documentation

◆ Comment()

const char* FCFSupport::Owner::Comment ( ) const
inline

Return commentary about this owner.

References comment.

◆ Initials()

const char* FCFSupport::Owner::Initials ( ) const
inline

Return this owner's initials.

References initials.

◆ Name()

const char* FCFSupport::Owner::Name ( ) const
inline

Return this owner's name.

References name.

◆ operator=()

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

The Assignment operator copies the contents of another Owner to this one.

Parameters
otherThe other Owner object.

References comment, initials, and name.

Member Data Documentation

◆ comment

string FCFSupport::Owner::comment
private

Commentary about this owner.

Referenced by Comment(), operator=(), and Owner().

◆ initials

string FCFSupport::Owner::initials
private

This owner's initials.

Referenced by Initials(), operator=(), and Owner().

◆ name

string FCFSupport::Owner::name
private

This owner's name.

Referenced by Name(), operator=(), and Owner().