tsc_DateAttribute

This class holds an attribute that is a date, stored as a local date in a double. tsc_DateAttribute is a subclass of tsc_Attribute.

Public constructors

tsc_DateAttribute ();

Constructs an empty date attribute.

tsc_DateAttribute (const char* name, double value);

Constructs a date attribute with the given name and value.

tsc_DateAttribute (const tsc_Attribute& attributeBase);

Constructs a date attribute which is a reference to the supplied base instance.  The base instance must be a date attribute.

Public methods

double Value () const;

Gets the current value as a local date.  The date may be formatted as a string using tsc_Format::Date(), or by calling the ToString() method in the base class.

void Value (double value);

Sets the current value.  The current date 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.