tsc_SurveyStyle

A class which represents a survey style file (.sty) residing in the Shared Directory.

You can construct one in a variety of ways and then interrogate the style for attributes, the main benefit being JXl record access.

Constructors

tsc_SurveyStyle ();
Default constructor, of limited value.

tsc_SurveyStyle(const char* fromFilePath);
Construct a survey style reference from a known path, typically with a .sty file extension.

tsc_SurveyStyle(const tsc_UITask& uiTask);
Construct a survey style reference from a UI Task, primarily used to retrieve the style for a running survey that the task is associated with.

Note: the style of the running survey may be different to the source .sty file, because the user may make changes which are not stored permanently.

tsc_SurveyStyle(tsc_StyleTechnology technology);
References the style currently in use in the current job.  For this constructor to be useful there must be a current running (or starting) survey and, of course, a current job.


Member functions

bool Exists() const;
Returns true if the style is valid.

tsc_String Name () const;
The style name, this is an internal field from within the file and typically matches the filename.

tsc_String Path () const;
The full path to the style file.

tsc_StyleTechnology Technology() const;
What technology the style supports.  Returns tstt_None if the style is invalid for any reason.

tsc_SurveyStyle GetGnssStyle () const;
Returns the GNSS style if the style technology matches, or the GNSS part of an integrated survey style.

tsc_SurveyStyle GetTsStyle () const;
Returns the conventional style if the style technology matches, or the conventional part of an integrated survey style.

tsc_XmlElement RetrieveJxl() const;
Generates a JXL representation of the style.  Note: In the case of Integrated Survey styles you will need to extract the separate GNSS and Total Station style names and load those styles as well to query technology-specific fields.  An integrated style contains only the names of the two styles that it is comprised of.