Code Packages  1
Add-on code processing modules
Static Public Member Functions | List of all members
ChannelData.Utility Class Reference

More...

Static Public Member Functions

static string [,] ChannelsToGrid (List< Channel > channels)
 Converts Channel's data into 2 dimension array More...
 
static List< ChannelConvert (DataSet dataset)
 Converts a formated set of data to a list of Channels More...
 
static List< string > ExcludeComment (List< string > lines, string comment)
 Exclude comment More...
 
static DataSet Format (List< string > lines, char delimiter, int header, string group, double fs)
 Creates a formated data set More...
 
static object Load (string path)
 Loads an object from a binary file More...
 
static List< string > ReadFile (string path)
 Reads all lines of a file More...
 
static void Save (object obj, string path)
 Saves an object to a binary file More...
 
static void SaveData (List< Channel > channels, char delimeter, string path)
 Saves a list of Channels into a Text file More...
 

Detailed Description

Member Function Documentation

◆ ChannelsToGrid()

static string [,] ChannelData.Utility.ChannelsToGrid ( List< Channel channels)
static

Converts Channel's data into 2 dimension array

◆ Convert()

static List<Channel> ChannelData.Utility.Convert ( DataSet  dataset)
static

Converts a formated set of data to a list of Channels

◆ ExcludeComment()

static List<string> ChannelData.Utility.ExcludeComment ( List< string >  lines,
string  comment 
)
static

Exclude comment

Use this function to remove lines beginning with the specified comment string

◆ Format()

static DataSet ChannelData.Utility.Format ( List< string >  lines,
char  delimiter,
int  header,
string  group,
double  fs 
)
static

Creates a formated data set

The formated data set is ready for conversion

◆ Load()

static object ChannelData.Utility.Load ( string  path)
static

Loads an object from a binary file

◆ ReadFile()

static List<string> ChannelData.Utility.ReadFile ( string  path)
static

Reads all lines of a file

null or empty lines are excluded

◆ Save()

static void ChannelData.Utility.Save ( object  obj,
string  path 
)
static

Saves an object to a binary file

◆ SaveData()

static void ChannelData.Utility.SaveData ( List< Channel channels,
char  delimeter,
string  path 
)
static

Saves a list of Channels into a Text file