tsc_TimeAttribute
This class holds an attribute that is a time, stored as a local time in a double. tsc_TimeAttribute is a subclass of tsc_Attribute.
Public constructors
tsc_TimeAttribute ();
Constructs an empty time attribute.
tsc_TimeAttribute (const char* name, double value);
Constructs a time attribute with the given name and value.
tsc_TimeAttribute (const tsc_Attribute& attributeBase);
Constructs a time attribute which is a reference to the supplied base instance. The base instance must be a time attribute.
Public methods
double Value () const;
Gets the current value as a local time. The time may be formatted as a string using tsc_Format::Time(), or by calling the ToString() method in the base class.
void Value (double value);
Sets the current value. The current time may be obtained from tsc_SurveyCore::LocalTime().
Inherited methods
tsc_String Name () const;
Returns the name of the attribute.
tsc_AttributeType Type () const;
Returns the type of the attribute value.
bool IsNull () const;
Returns true if the attribute is null, probably as a result of a failed operation.
virtual tsc_String ToString () const;
Returns a string representation of the attribute's value.