Enfusion Script API
|
Implementation of single measurement result file (dont forget to delete it after you are done or use strong ref) More...
Public Member Functions | |
void | MeasurementFile (AutotestRegister parent, string path, FileMode mode, MeasurementType type) |
Constructor which checks in case of appending if file exists already and if so it checks if physical file. | |
void | ~MeasurementFile () |
Destructor - in case that there is a file opened, closes it. Also appends prepared graph header if it makes sense. | |
bool | IsValid () |
Was file open valid, can we write inside? | |
string | GetFilePath () |
Returns full path to this measurement file. | |
void | SetGraphHeader (string header) |
If data type is graph we should set its data header. | |
void | AddData (string line) |
Adds single line into this measurement FileMode. | |
bool | IsChart () |
Returns true when type of this file is some type of graph (not heatmap) | |
void | AddHeader (string measurementTitle) |
This function would normally be private and callable only from inside AutotestRegister. | |
Implementation of single measurement result file (dont forget to delete it after you are done or use strong ref)
void MeasurementFile.MeasurementFile | ( | AutotestRegister | parent, |
string | path, | ||
FileMode | mode, | ||
MeasurementType | type | ||
) |
Constructor which checks in case of appending if file exists already and if so it checks if physical file.
void MeasurementFile.~MeasurementFile | ( | ) |
Destructor - in case that there is a file opened, closes it. Also appends prepared graph header if it makes sense.
void MeasurementFile.AddData | ( | string | line | ) |
Adds single line into this measurement FileMode.
void MeasurementFile.AddHeader | ( | string | measurementTitle | ) |
This function would normally be private and callable only from inside AutotestRegister.
string MeasurementFile.GetFilePath | ( | ) |
Returns full path to this measurement file.
bool MeasurementFile.IsChart | ( | ) |
Returns true when type of this file is some type of graph (not heatmap)
bool MeasurementFile.IsValid | ( | ) |
Was file open valid, can we write inside?
void MeasurementFile.SetGraphHeader | ( | string | header | ) |
If data type is graph we should set its data header.