Class: TSQLTime

Declaration: SQLClock.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TTime

Inherited By:

None.

Purpose:

This concrete class is based on a reference time of midnight. Time is measured in seconds from the reference time. Instances of TSQLTime are intended for general use in alarms, or any other client context that demands a time based on the reference time.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TSQLTime::TSQLTime

  1. TSQLTime ()
  2. TSQLTime (const TSQLTime & time)
  3. TSQLTime (const TSQLDate & time)
  4. TSQLTime (const TSQLTimestamp & time)
  5. TSQLTime (double secs)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Constructs a time object from a date.
  4. Constructs a time object from a time stamp.
  5. Constructs a time object based on the elapsed seconds specified by the argument.

Calling Context:

  1. Called by the stream-in operators and any other function that needs to construct an uninitialized object.
  2. Called to copy an object.
  3. Called to construct an initialized object.
  4. Called to construct an initialized object.
  5. Called to construct an initialized object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLTime::~TSQLTime

virtual ~ TSQLTime ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

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: TSQLTime::operator=

TSQLTime & operator =(const TSQLTime &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

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.

Member Function: TSQLTime::GetSeconds

virtual double GetSeconds () const

Interface Category:

API.

Purpose:

Returns the number of seconds elapsed since midnight.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The number of seconds elapsed since midnight.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSQLTime::SetSeconds

virtual void SetSeconds (double)

Interface Category:

API.

Purpose:

Sets the number of seconds elapsed since midnight.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

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.