tsc_FileAttribute

This class holds an attribute whose value is the path to a file. tsc_FileAttribute is a subclass of tsc_Attribute.

The path is the absolute directory and name of the file.

Public constructors

tsc_FileAttribute ();

Constructs an empty file attribute.

tsc_FileAttribute (const char* name, const char* value);

Constructs a file attribute with the given attribute name and file path.

tsc_FileAttribute (const tsc_Attribute& attributeBase);

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

Public methods

tsc_String Value () const;

Gets the current file path value.

void Value (const char* value);

Sets the current file path value.

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.