Show / Hide Table of Contents

Class FileSessionWriter

Write the parameters, channels, laps and conversions into session.

Inheritance
System.Object
BaseSessionWriter
FileSessionWriter
Implements
ISessionWriter
ISessionBuilder
System.IDisposable
Inherited Members
BaseSessionWriter.NextChannelNumber
BaseSessionWriter.Committed
BaseSessionWriter.Laps
BaseSessionWriter.Channels
BaseSessionWriter.Conversions
BaseSessionWriter.Groups
BaseSessionWriter.Parameters
BaseSessionWriter.ParametersByIdentifier
BaseSessionWriter.SessionItems
BaseSessionWriter.AddSessionDetails(String, String)
BaseSessionWriter.AddGroup(Group)
BaseSessionWriter.AddChannel(Channel)
BaseSessionWriter.AddParameter(Parameter)
BaseSessionWriter.BuildTextParameter(String, String)
BaseSessionWriter.BuildRationalParameter(String, String, Range)
BaseSessionWriter.WritePeriodicData(Channel, Int64, Int32, Byte[])
BaseSessionWriter.WritePeriodicValues(Channel, Int64, SByte[], Int32, ByteOrder)
BaseSessionWriter.WritePeriodicValues(Channel, Int64, Byte[], Int32, ByteOrder)
BaseSessionWriter.WritePeriodicValues(Channel, Int64, Int16[], Int32, ByteOrder)
BaseSessionWriter.WritePeriodicValues(Channel, Int64, UInt16[], Int32, ByteOrder)
BaseSessionWriter.WritePeriodicValues(Channel, Int64, Int32[], Int32, ByteOrder)
BaseSessionWriter.WritePeriodicValues(Channel, Int64, UInt32[], Int32, ByteOrder)
BaseSessionWriter.WritePeriodicValues(Channel, Int64, Single[], Int32, ByteOrder)
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
BaseSessionWriter.AddLap(Int32, Int64, LapType)

CloseSession(String)

Close the session.

Declaration
public override void CloseSession(string extension = "ssn")
Parameters
Type Name Description
System.String extension
Overrides
BaseSessionWriter.CloseSession(String)

CommitParameters()

Commits the parameters and it's related information into the session.

Declaration
public override void CommitParameters()
Overrides
BaseSessionWriter.CommitParameters()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public override void Dispose()
Overrides
BaseSessionWriter.Dispose()

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
BaseSessionWriter.DoWritePeriodicData(UInt32, Int64, Int32, Byte[])

Implements

ISessionWriter
ISessionBuilder
System.IDisposable
In This Article
  • Constructors
    • FileSessionWriter(String)
  • Methods
    • AddLap(Int32, Int64, LapType)
    • CloseSession(String)
    • CommitParameters()
    • Dispose()
    • DoWritePeriodicData(UInt32, Int64, Int32, Byte[])
  • Implements
Back to top Generated by DocFX