Show / Hide Table of Contents

Class ConversionBase

Base class for the different conversion types available to associate with data for a parameter or event.

Inheritance
System.Object
ConversionBase
FormulaConversion
RationalConversion
TableConversion
TextConversion
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public abstract class ConversionBase : Object
Remarks

Conversions are used to convert raw data (typically from a sensor) into an engineering value (e.g. kph or degrees). Available conversion types are FormulaConversion, RationalConversion, TableConversion and TextConversion.

Constructors

ConversionBase()

Initialises a new instance of the ConversionBase class.

Declaration
protected ConversionBase()

ConversionBase(String, String, String)

Initialises a new instance of the ConversionBase class.

Declaration
protected ConversionBase(string name, string units, string formatString)
Parameters
Type Name Description
System.String name

The name of the conversion.

System.String units

The units the conversion uses.

System.String formatString

The format string.

Properties

FormatString

Gets or sets a 'C' style formatting string describing how to display the converted value.

Declaration
public string FormatString { get; set; }
Property Value
Type Description
System.String

Name

Gets or sets the conversion formula name.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

Units

Gets or sets a string value indicating the “units” of the mapped string. This value is appended to the result of the mapping.

Declaration
public string Units { get; set; }
Property Value
Type Description
System.String

Methods

ToString()

Returns a System.String that represents the current System.Object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current System.Object.

Extension Methods

ConversionExtensions.Name<T>(T, String)
ConversionExtensions.Units<T>(T, String)
ConversionExtensions.FormatString<T>(T, String)
Back to top Generated by DocFX