Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MeasurementFile Interface Reference

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.
 

Detailed Description

Implementation of single measurement result file (dont forget to delete it after you are done or use strong ref)

Constructor & Destructor Documentation

◆ MeasurementFile()

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.

◆ ~MeasurementFile()

void MeasurementFile.~MeasurementFile ( )

Destructor - in case that there is a file opened, closes it. Also appends prepared graph header if it makes sense.

Member Function Documentation

◆ AddData()

void MeasurementFile.AddData ( string  line)

Adds single line into this measurement FileMode.

◆ AddHeader()

void MeasurementFile.AddHeader ( string  measurementTitle)

This function would normally be private and callable only from inside AutotestRegister.

◆ GetFilePath()

string MeasurementFile.GetFilePath ( )

Returns full path to this measurement file.

◆ IsChart()

bool MeasurementFile.IsChart ( )

Returns true when type of this file is some type of graph (not heatmap)

◆ IsValid()

bool MeasurementFile.IsValid ( )

Was file open valid, can we write inside?

◆ SetGraphHeader()

void MeasurementFile.SetGraphHeader ( string  header)

If data type is graph we should set its data header.


The documentation for this interface was generated from the following file: