Class FileSessionWriter
Write the parameters, channels, laps and conversions into session.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: MAT.AtlasSessionApi
Assembly: MAT.AtlasSessionApi.dll
Syntax
public class FileSessionWriter : BaseSessionWriter, ISessionWriter, ISessionBuilder, IDisposable
Constructors
FileSessionWriter(String)
Creates the session for give file path.
Declaration
public FileSessionWriter(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | path of the file with extension. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
Methods
AddLap(Int32, Int64, LapType)
Add a new lap into session.
Declaration
public override void AddLap(int number, long time, LapType type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | lap number. |
System.Int64 | time | lap timestamp. |
LapType | type | type of the lap. |
Overrides
CloseSession(String)
Close the session.
Declaration
public override void CloseSession(string extension = "ssn")
Parameters
Type | Name | Description |
---|---|---|
System.String | extension |
Overrides
CommitParameters()
Commits the parameters and it's related information into the session.
Declaration
public override void CommitParameters()
Overrides
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
Overrides
DoWritePeriodicData(UInt32, Int64, Int32, Byte[])
Add the samples into the channel.
Declaration
protected override void DoWritePeriodicData(uint channelNumber, long timestamp, int count, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | channelNumber | chanel id. |
System.Int64 | timestamp | first sample timestamp. |
System.Int32 | count | sample count. |
System.Byte[] | data | byte data array. |
Overrides
Implements
System.IDisposable