Table of Contents

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

streamReader StreamReader

The stream reader referencing the *.pssession file.

Returns

List<SimpleMeasurement>

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

filepath string

The filepath of the *.pssession file.

Returns

List<SimpleMeasurement>

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

filepath string

The 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

simpleMeasurement SimpleMeasurement

The simple measurement.

filepath string

The 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

simpleMeasurements SimpleMeasurement[]

Array of simplemeasurements.

filepath string

The 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

simpleMeasurements List<SimpleMeasurement>

Array of simplemeasurements.

filepath string

The 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

method Method

The method .

filepath string

The 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