IOLink C# 1.11.0
Loading...
Searching...
No Matches
IOLink.ColumnUnitExtension Class Reference

Extension to handle units of columns in a dataframe. More...

Inheritance diagram for IOLink.ColumnUnitExtension:
IOLink.Extension

Public Member Functions

 ColumnUnitExtension (global::System.IntPtr cPtr, bool cMemoryOwn)
 
virtual string Unit (uint columnIndex)
 
virtual void SetUnit (uint columnIndex, string unit)
 

Static Public Member Functions

static global::System.Runtime.InteropServices.HandleRef getCPtr (ColumnUnitExtension obj)
 
static ColumnUnitExtension Cast (Extension extension)
 

Static Public Attributes

static readonly uint EXTENSION_ID = IOLinkPINVOKE.ColumnUnitExtension_EXTENSION_ID_get()
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Extension to handle units of columns in a dataframe.

This extension allows to get and set the unit of a column in a dataframe.

The unit is an UTF-8 encoded string that describes the unit of the column, in a format described as follows:

  • A scalar unit is an string of alphabetical characters, describing the base unit. For example, "m" for meters, "s" for seconds, or "Å" for angstroms.
  • Such scalar can have a dimensional suffix, starting with the ^ character, followed by an integer number. this number may be prefixed by a sign, + or -.
  • Unsuffixed units of unsuffixed units may be combined using the / or . character, to form a compound unit. For example, "m/s" for meters per second.
  • An empty unit, or "" is a valid unit, and is equivalent to a dimensionless unit.

Examples of such units:

  • "m/s" or "m.s^-1" for meters per second.
  • "µm^2" for square micrometers.
  • "Ω.s^-1" for ohms per seconds, or more simply as siemens "S".

Member Function Documentation

◆ Cast()

static ColumnUnitExtension IOLink.ColumnUnitExtension.Cast ( Extension  extension)
inlinestatic

Upcast a generic extension to this specific type.

Parameters
extensionThe extension to cast.
Returns
The upcasted extension. This will be null if no upcasting is possible.

◆ Dispose()

override void IOLink.ColumnUnitExtension.Dispose ( bool  disposing)
inlineprotectedvirtual

Reimplemented from IOLink.Extension.

◆ SetUnit()

virtual void IOLink.ColumnUnitExtension.SetUnit ( uint  columnIndex,
string  unit 
)
inlinevirtual

Set the unit of the column.

Parameters
columnIndexThe index of the column.
unitThe unit of the column.
Exceptions
Errorif the column index is out of range.
Errorif DataFrameView does not have the WRITE capability.

◆ Unit()

virtual string IOLink.ColumnUnitExtension.Unit ( uint  columnIndex)
inlinevirtual

Return the unit of the column.

Parameters
columnIndexThe index of the column.
Returns
The unit of the column.
Exceptions
Errorif the column index is out of range.

The documentation for this class was generated from the following file: