public bool HasColumn(string name) { Debug.Assert(daisy != (IntPtr)0); uint size = DLL.daisy_daisy_count_columns(daisy); for (int i = 0; i < size; i++) { IntPtr daisy_col = DLL.daisy_daisy_get_column(daisy, i); if (name == DLL.daisy_column_get_name(daisy_col)) { return(true); } } return(false); }
public Column GetColumn(string name) { Debug.Assert(daisy != (IntPtr)0); Debug.Assert(HasColumn(name)); uint size = DLL.daisy_daisy_count_columns(daisy); for (int i = 0; i < size; i++) { IntPtr daisy_col = DLL.daisy_daisy_get_column(daisy, i); if (name == DLL.daisy_column_get_name(daisy_col)) { return(new Column(daisy_col)); } } throw new ApplicationException(); }
public DateTime GetTime() { Debug.Assert(daisy != (IntPtr)0); IntPtr daisy_time = DLL.daisy_daisy_get_time(daisy); int microsecond = DLL.daisy_time_get_microsecond(daisy_time); int second = DLL.daisy_time_get_second(daisy_time); int minute = DLL.daisy_time_get_minute(daisy_time); int hour = DLL.daisy_time_get_hour(daisy_time); int year = DLL.daisy_time_get_year(daisy_time); int month = DLL.daisy_time_get_month(daisy_time); int mday = DLL.daisy_time_get_mday(daisy_time); DateTime dt = new DateTime(year, month, mday, hour, minute, second); double millisecond = microsecond / 1000.0; dt.AddMilliseconds(millisecond); return(dt); }
public int GetInteger(string name) { Debug.Assert(Check(name)); return(DLL.daisy_frame_get_integer(frame, name)); }
public void Initialize() { DLL.daisy_daisy_initialize(daisy); ExitOnFailure(); }
public bool Writeable() { Debug.Assert(scope != (IntPtr)0); return(DLL.daisy_scope_writable(scope)); }
public string GetString(string name) { Debug.Assert(Check(name)); return(DLL.daisy_frame_get_string(frame, name)); }
public double Number(string name) { Debug.Assert(scope != (IntPtr)0); return(DLL.daisy_scope_number(scope, name)); }
public string String(string name) { Debug.Assert(scope != (IntPtr)0); return(DLL.daisy_scope_string(scope, name)); }
public void TickTime() { Debug.Assert(daisy != (IntPtr)0); DLL.daisy_daisy_tick(daisy); ExitOnFailure(); }
public string NumberName(uint index) { Debug.Assert(scope != (IntPtr)0); return(DLL.daisy_scope_number_name(scope, index)); }
public void ParseFile(string filename) { DLL.daisy_daisy_parse_file(daisy, filename); ExitOnFailure(); }
public void Start() { Debug.Assert(daisy != (IntPtr)0); DLL.daisy_daisy_start(daisy); ExitOnFailure(); }
static public string Version() { return(DLL.daisy_version()); }
public double LocationY(uint index) { Debug.Assert(daisy_column != (IntPtr)0); Debug.Assert(index < LocationSize()); return(DLL.daisy_column_location_y(daisy_column, index)); }
public int LocationSize() { Debug.Assert(daisy_column != (IntPtr)0); return(DLL.daisy_column_location_size(daisy_column)); }
public string GetColumnDescription() { Debug.Assert(daisy_column != (IntPtr)0); return(DLL.daisy_column_get_description(daisy_column)); }
public string GetColumnName() { Debug.Assert(daisy_column != (IntPtr)0); return(DLL.daisy_column_get_name(daisy_column)); }
public bool IsRunning() { Debug.Assert(daisy != (IntPtr)0); return(DLL.daisy_daisy_is_running(daisy)); }
public bool OK() { return(DLL.daisy_daisy_ok(daisy)); }
public uint NumberSize() { Debug.Assert(scope != (IntPtr)0); return(DLL.daisy_scope_number_size(scope)); }
public Frame ProgramFrame() { return(new Frame(DLL.daisy_daisy_get_program_frame(daisy))); }
public bool HasNumber(string name) { Debug.Assert(scope != (IntPtr)0); return(DLL.daisy_scope_has_number(scope, name)); }
public uint ScopeSize() { return(DLL.daisy_daisy_scope_extern_size(daisy)); }
public string Dimension(string name) { Debug.Assert(scope != (IntPtr)0); return(DLL.daisy_scope_dimension(scope, name)); }
public Scope GetScope(int index) { Debug.Assert(index < ScopeSize()); return(new Scope(DLL.daisy_daisy_scope_extern_get(daisy, index))); }
public string Description(string name) { Debug.Assert(scope != (IntPtr)0); return(DLL.daisy_scope_description(scope, name)); }
public uint CountColumns() { Debug.Assert(daisy != (IntPtr)0); return(DLL.daisy_daisy_count_columns(daisy)); }
public void SetNumber(string name, double value) { Debug.Assert(scope != (IntPtr)0); DLL.daisy_scope_set_number(scope, name, value); }
public Frame GetFrame(string name) { Debug.Assert(Check(name)); return(new Frame(DLL.daisy_frame_get_frame(frame, name))); /* Get frame NAME from FRAME. */ }