Class FileDateTimeSection
(B) Time window expressed in absolute DateTime only.
public sealed class FileDateTimeSection : IFileTimeSection, IMakeXmlSource
- Inheritance
-
FileDateTimeSection
- Implements
- Inherited Members
- Extension Methods
Constructors
FileDateTimeSection()
Initializes an empty instance.
public FileDateTimeSection()
FileDateTimeSection(FileTimecodeDateTimeSection)
Projects a both-form (C) section onto its absolute form (independent copy).
public FileDateTimeSection(FileTimecodeDateTimeSection c)
Parameters
FileDateTimeSection(string, DateTime, DateTime)
Initializes from a file and begin/end instants.
public FileDateTimeSection(string file, DateTime beginDateTime, DateTime endDateTime)
Parameters
FileDateTimeSection(XElement)
Initializes from XML.
public FileDateTimeSection(XElement src)
Parameters
srcXElement
Properties
BeginDateTime
Window start as an absolute controller instant.
public DateTime BeginDateTime { get; set; }
Property Value
EndDateTime
Window end as an absolute controller instant.
public DateTime EndDateTime { get; set; }
Property Value
File
Relative path of the referenced (sensor) file.
public string File { get; set; }
Property Value
XName
XML element name for XFactory registration.
public static string XName { get; }
Property Value
Methods
MakeXmlSource(string, string, bool)
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, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif true, the extended file creation is suppressed.
Returns
- XElement
An XML element representing the object's state
Remarks
For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The baseDirectory is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.
Reg(XFactory)
Registers this type with the factory. Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.