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. |
filePath | path of the file with extension. |
Exceptions
Type | Condition |
---|---|
System. |
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. |
number | lap number. |
System. |
time | lap timestamp. |
Lap |
type | type of the lap. |
Overrides
CloseSession(String)
Close the session.
Declaration
public override void CloseSession(string extension = "ssn")
Parameters
Type | Name | Description |
---|---|---|
System. |
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. |
channelNumber | chanel id. |
System. |
timestamp | first sample timestamp. |
System. |
count | sample count. |
System. |
data | byte data array. |
Overrides
Implements
System.IDisposable