Class FileTimeSection
Represents a section of a file defined by a time range.
public class FileTimeSection : IMakeXmlSource
- Inheritance
-
FileTimeSection
- Implements
- Inherited Members
- Extension Methods
Constructors
FileTimeSection()
Initializes a new instance of the FileTimeSection class.
public FileTimeSection()
FileTimeSection(string, Range<TimeSpan>)
Initializes a new instance of the FileTimeSection class with a file and time range.
public FileTimeSection(string file, Range<TimeSpan> range)
Parameters
FileTimeSection(string, TimeSpan, TimeSpan)
Initializes a new instance of the FileTimeSection class with a file and begin/end times.
public FileTimeSection(string file, TimeSpan beginTime, TimeSpan endTime)
Parameters
FileTimeSection(XElement)
Initializes a new instance of the FileTimeSection class from XML.
public FileTimeSection(XElement src)
Parameters
src
XElementThe XML element containing the file time section data.
Properties
BeginTime
Gets or sets the begin time as a TimeSpan.
public TimeSpan BeginTime { get; set; }
Property Value
BeginTime_s
Gets or sets the begin time in seconds.
public double BeginTime_s { get; set; }
Property Value
Duration_s
Gets the duration in seconds.
public double Duration_s { get; }
Property Value
EndTime
Gets or sets the end time as a TimeSpan.
public TimeSpan EndTime { get; set; }
Property Value
EndTime_s
Gets or sets the end time in seconds.
public double EndTime_s { get; set; }
Property Value
File
Gets or sets the file path.
public string File { get; set; }
Property Value
PrimaryTimeOption
Gets or sets the primary time option for XML serialization.
public FileTimeSection.TimeOption PrimaryTimeOption { get; set; }
Property Value
TimeRange
Gets or sets the time range.
public Range<TimeSpan> TimeRange { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
MakeXmlSource(string, string)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.