Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TFormattable
Inherited By:
None.
Purpose:
Derived from TFormattable, this class encapsulates an instance of TTime, allowing it to be formatted by TFormatter classes.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
TFormattableTime is a concrete class designed to be used directly.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
- TFormattableTime ()
- TFormattableTime (const TTime & time)
- TFormattableTime (const TFormattableTime & copy)
Interface Category:
API.
Purpose:
- Default constructor.
- Constructs a formattable containing the specified TTime.
- Copy constructor.
Calling Context:
- Called by the stream-in operators.
- Call directly to construct a formattable with a specific value.
- Called to copy an object.
Parameters:
- Takes no parameters.
- const TTime & time -The time encapsulated by this formattable.
- const TFormattableTime & copy -The object to copy.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TFormattableTime ()
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: TFormattableTime::GetChoiceValue
virtual double GetChoiceValue () const
Interface Category:
API.
Purpose:
Returns a number, based on the value of the encapsulated data, indicating the correct TParameterFormatter to use for formatting.
Calling Context:
Called by TChoiceFormatter during formatting.
Parameters:
Return Value:
The number of the TParameterFormatter to use.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TFormattableTime::SetChoiceValue
virtual void SetChoiceValue (double value)
Interface Category:
API.
Purpose:
Sets the data in this formattable, based on the TParameterFormatter object that provided the best text match during scanning.
Calling Context:
Called by TChoiceFormatter during scanning.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
void GetTime (TTime & time) const
Interface Category:
API.
Purpose:
Returns the time encapsulated by this formattable.
Calling Context:
Called to retrieve the time encapsulated by this formattable.
Parameters:
- TTime & time -The time encapsulated by this formattable.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void SetTime (const TTime & time)
Interface Category:
API.
Purpose:
Sets the time encapsulated by this formattable.
Calling Context:
Called to reset the time encapsulated by this formattable after construction.
Parameters:
- const TTime & time -The time this formattable should encapsulate.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual long Hash () const
Interface Category:
API.
Purpose:
Generates a hash value.
Calling Context:
Called to generate a hash value.
Parameters:
Return Value:
The numeric value of the hash.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TFormattableTime::operatordouble
virtual operator double ()
Interface Category:
API.
Purpose:
Converts the encapsulated data into a double value.
Calling Context:
Called to convert the encapsulated data into a double value.
Parameters:
Return Value:
Implicitly int.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
- virtual TFormattable & operator =(double value)
- virtual TFormattable & operator =(const TFormattable & toCopy)
- virtual TFormattableTime & operator =(const TFormattableTime & toCopy)
Interface Category:
API.
Purpose:
- Assignment operator.
- Assignment operator.
- Assignment operator.
Calling Context:
- Called when an object is assigned to another compatible object.
- Called when an object is assigned to another compatible object.
- Called when an object is assigned to another compatible object.
Parameters:
- double value -The source value for the assignment.
- const TFormattable & toCopy -The source object for the assignment.
- const TFormattableTime & toCopy -The source object for the assignment.
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.
virtual TStream & operator <<= (TStream & fromWhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & fromWhere -The stream the object streams itself in from.
Return Value:
Returns a reference to the stream the object streams itself in from.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator >>=(TStream & toWhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & toWhere -The stream the object streams itself out to.
Return Value:
Returns a reference to the stream the object streams itself out to.
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.