Class SimpleLoadSaveFunctions
- Namespace
- PalmSens.Core.Simplified
- Assembly
- PalmSens.Core.Simplified.dll
public class SimpleLoadSaveFunctions
- Inheritance
-
SimpleLoadSaveFunctions
- Inherited Members
Methods
LoadMeasurements(StreamReader)
Loads a collection of simplemeasurements from a *.pssession file from your assets folder.
public static List<SimpleMeasurement> LoadMeasurements(StreamReader streamReader)
Parameters
streamReaderStreamReaderThe stream reader referencing the *.pssession file.
Returns
Exceptions
- ArgumentException
Stream reader cannot be null
- Exception
An error occured while loading, please make sure the file in the stream reader is valid
LoadMeasurements(string)
Loads a collection of simplemeasurements from a *.pssession file.
public static List<SimpleMeasurement> LoadMeasurements(string filepath)
Parameters
filepathstringThe filepath of the *.pssession file.
Returns
Exceptions
- ArgumentException
File path must be specified
- Exception
An error occured while loading, please make sure the file path is correct and the file is valid
LoadMethod(string)
Loads a method from a *.psmethod file.
public static Method LoadMethod(string filepath)
Parameters
filepathstringThe filepath of the *.psmethod file.
Returns
- Method
Method
Exceptions
- ArgumentException
File path must be specified
- Exception
An error occured while loading, please make sure the file path is correct and the file is valid
SaveMeasurement(SimpleMeasurement, string)
Saves a simplemeasurement to a *.pssession file.
public static void SaveMeasurement(SimpleMeasurement simpleMeasurement, string filepath)
Parameters
simpleMeasurementSimpleMeasurementThe simple measurement.
filepathstringThe filepath of the *.pssession file.
Exceptions
- ArgumentException
File path must be specified
- ArgumentNullException
SimpleMeasurement cannot be null
- Exception
An error occured while saving, please make sure the file path is correct
SaveMeasurements(SimpleMeasurement[], string)
Saves a collection of simplemeasurements to a *.pssession file.
public static void SaveMeasurements(SimpleMeasurement[] simpleMeasurements, string filepath)
Parameters
simpleMeasurementsSimpleMeasurement[]Array of simplemeasurements.
filepathstringThe filepath of the *.pssession file.
Exceptions
- ArgumentException
File path must be specified
- ArgumentNullException
SimpleMeasurements cannot be null
- Exception
An error occured while saving, please make sure the file path is correct
SaveMeasurements(List<SimpleMeasurement>, string)
Saves a collection of simplemeasurements to a *.pssession file.
public static void SaveMeasurements(List<SimpleMeasurement> simpleMeasurements, string filepath)
Parameters
simpleMeasurementsList<SimpleMeasurement>Array of simplemeasurements.
filepathstringThe filepath of the *.pssession file.
Exceptions
- ArgumentException
File path must be specified
- ArgumentNullException
SimpleMeasurements cannot be null
SaveMethod(Method, string)
Saves a method to a *.psmethod file.
public static void SaveMethod(Method method, string filepath)
Parameters
methodMethodThe method .
filepathstringThe filepath of the *.psmethod file.
Exceptions
- ArgumentException
File path must be specified
- ArgumentNullException
Method cannot be null
- Exception
An error occured while saving, please make sure the file path is correct