Post

MetaDictionary.FindMeta

Looks up a Thermo trailer label.


Remarks

A static method. The label must match one of the known spellings exactly, including case. Several spellings map to the same MetaClass, because labels vary between instruments and file versions.


Syntax

SyntaxDescription
static FindMeta(string label)Looks up a trailer label.

Parameters

NameTypeDescription
labelstringThe label as it appears in the file.

Returns

TypeDescription
MetaClassThe matching MetaClass, or MetaClass.None if the label is not recognized.

Example

1
2
3
4
5
using Nova.Io.Meta;

MetaClass a = MetaDictionary.FindMeta("Charge State");       // MetaClass.ChargeState
MetaClass b = MetaDictionary.FindMeta("Z");                  // MetaClass.ChargeState
MetaClass c = MetaDictionary.FindMeta("Not A Real Label");   // MetaClass.None
This post is licensed under CC BY 4.0 by the author.

Trending Tags