Table of Contents

Class FileDateTimeSection

Namespace
Hi.Mappings
Assembly
HiGeom.dll

(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

c FileTimecodeDateTimeSection

FileDateTimeSection(string, DateTime, DateTime)

Initializes from a file and begin/end instants.

public FileDateTimeSection(string file, DateTime beginDateTime, DateTime endDateTime)

Parameters

file string
beginDateTime DateTime
endDateTime DateTime

FileDateTimeSection(XElement)

Initializes from XML.

public FileDateTimeSection(XElement src)

Parameters

src XElement

Properties

BeginDateTime

Window start as an absolute controller instant.

public DateTime BeginDateTime { get; set; }

Property Value

DateTime

EndDateTime

Window end as an absolute controller instant.

public DateTime EndDateTime { get; set; }

Property Value

DateTime

File

Relative path of the referenced (sensor) file.

public string File { get; set; }

Property Value

string

XName

XML element name for XFactory registration.

public static string XName { get; }

Property Value

string

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

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

exhibitionOnly bool

if 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

factory XFactory

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.