tsc_PhotoAttribute

This class holds an attribute whose value is the path to a photograph file, typically of type JPG. tsc_PhotoAttribute is a subclass of tsc_Attribute.

If the standard SC attribute entry form (either tsc_EntityFeatures_AttributeForm or using one of the built-in measure systems) is used to enter this attribute, the field will be pre-populated with any recently stored image.

Public constructors

tsc_PhotoAttribute ();

Constructs an empty photo attribute.

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

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

tsc_PhotoAttribute (const tsc_Attribute& attributeBase);

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

Public methods

tsc_String Value () const;

Gets the current photo file path.

void Value (const char* value);

Sets the current photo file path.

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.