Class: TDays

Declaration: TimeClasses.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TTime

Inherited By:

None.

Purpose:

A TTime derived class for days.

Instantiation

Allocate on the heap or the stack.

Deriving Classes:

Derived classes must preserve the TTime and TDays interfaces.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TDays::TDays

  1. TDays ()
  2. TDays (double numberOfDays)
  3. TDays (const TTime & theTime)
  4. TDays (const TDays & theDays)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Initializes with the number of days to be represented.
  3. Copy constructor for TTime and derived classes.
  4. Copy constructor.

Calling Context:

Call this function directly.
  1. Called by the stream-in operators and uninitialized objects.
  2. Called to initialize with the number of days to be represented.
  3. Called to copy a TTime or derived class.
  4. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Can be safely type cast between TTime derived classes because no extra storage is added.

Member Function: TDays::~TDays

virtual ~ TDays ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Call this function directly. Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TDays::GetDays

double GetDays () const

Interface Category:

API.

Purpose:

Gets the days represented.

Calling Context:

Call this function directly. Called to get a double of the days represented.

Parameters:

Return Value:

The days.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Returns a double that could be a NaN, or positive or negative infinity, depending on the time.

Member Function: TDays::operator=

TDays & operator =(const TDays & theDays)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function directly. Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.