tsc_Line

A database line is represented by the tsc_Line class and is subclassed off tsc_Entity.  This class is lightweight and may be freely copied, although copies will always refer to the same object.  The line     object may change as the database is updated.  Changes only happen outside of the plugin, so a contiguous block of plugin code which doesn't perform any sort of wait or database update may safely access a line without concern over it changing or disappearing.  In general, a tsc_Line object should be defined and passed around as an instance, rather than a pointer or reference.

A line is typically obtained from a tsc_LineList or from the tsc_JobLines object on a job.  It contains a tsc_LineDefinition which describes the line in detail.

Database lines always reference at least one point by name, which is stored within the same database.

While there may be multiple points with the same name, lines require unique naming and there will be no concept of 'best' line (though the referenced point will reflect the 'best' point for that name).  The name of a deleted line can be re-used.

tsc_Line public methods

For members of tsc_Entity go here.

bool IsDeleted() const;
To determine if the line was deleted use this method.

tsc_LineDefinition Line() const;
Retrieves the arc description for this entity