Пример #1
0
        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);
        }
Пример #2
0
        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();
        }
Пример #3
0
        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);
        }
Пример #4
0
 public int GetInteger(string name)
 {
     Debug.Assert(Check(name));
     return(DLL.daisy_frame_get_integer(frame, name));
 }
Пример #5
0
 public void Initialize()
 {
     DLL.daisy_daisy_initialize(daisy);
     ExitOnFailure();
 }
Пример #6
0
 public bool Writeable()
 {
     Debug.Assert(scope != (IntPtr)0);
     return(DLL.daisy_scope_writable(scope));
 }
Пример #7
0
 public string GetString(string name)
 {
     Debug.Assert(Check(name));
     return(DLL.daisy_frame_get_string(frame, name));
 }
Пример #8
0
 public double Number(string name)
 {
     Debug.Assert(scope != (IntPtr)0);
     return(DLL.daisy_scope_number(scope, name));
 }
Пример #9
0
 public string String(string name)
 {
     Debug.Assert(scope != (IntPtr)0);
     return(DLL.daisy_scope_string(scope, name));
 }
Пример #10
0
 public void TickTime()
 {
     Debug.Assert(daisy != (IntPtr)0);
     DLL.daisy_daisy_tick(daisy);
     ExitOnFailure();
 }
Пример #11
0
 public string NumberName(uint index)
 {
     Debug.Assert(scope != (IntPtr)0);
     return(DLL.daisy_scope_number_name(scope, index));
 }
Пример #12
0
 public void ParseFile(string filename)
 {
     DLL.daisy_daisy_parse_file(daisy, filename);
     ExitOnFailure();
 }
Пример #13
0
 public void Start()
 {
     Debug.Assert(daisy != (IntPtr)0);
     DLL.daisy_daisy_start(daisy);
     ExitOnFailure();
 }
Пример #14
0
 static public string Version()
 {
     return(DLL.daisy_version());
 }
Пример #15
0
 public double LocationY(uint index)
 {
     Debug.Assert(daisy_column != (IntPtr)0);
     Debug.Assert(index < LocationSize());
     return(DLL.daisy_column_location_y(daisy_column, index));
 }
Пример #16
0
 public int LocationSize()
 {
     Debug.Assert(daisy_column != (IntPtr)0);
     return(DLL.daisy_column_location_size(daisy_column));
 }
Пример #17
0
 public string GetColumnDescription()
 {
     Debug.Assert(daisy_column != (IntPtr)0);
     return(DLL.daisy_column_get_description(daisy_column));
 }
Пример #18
0
 public string GetColumnName()
 {
     Debug.Assert(daisy_column != (IntPtr)0);
     return(DLL.daisy_column_get_name(daisy_column));
 }
Пример #19
0
 public bool IsRunning()
 {
     Debug.Assert(daisy != (IntPtr)0);
     return(DLL.daisy_daisy_is_running(daisy));
 }
Пример #20
0
 public bool OK()
 {
     return(DLL.daisy_daisy_ok(daisy));
 }
Пример #21
0
 public uint NumberSize()
 {
     Debug.Assert(scope != (IntPtr)0);
     return(DLL.daisy_scope_number_size(scope));
 }
Пример #22
0
 public Frame ProgramFrame()
 {
     return(new Frame(DLL.daisy_daisy_get_program_frame(daisy)));
 }
Пример #23
0
 public bool HasNumber(string name)
 {
     Debug.Assert(scope != (IntPtr)0);
     return(DLL.daisy_scope_has_number(scope, name));
 }
Пример #24
0
 public uint ScopeSize()
 {
     return(DLL.daisy_daisy_scope_extern_size(daisy));
 }
Пример #25
0
 public string Dimension(string name)
 {
     Debug.Assert(scope != (IntPtr)0);
     return(DLL.daisy_scope_dimension(scope, name));
 }
Пример #26
0
 public Scope GetScope(int index)
 {
     Debug.Assert(index < ScopeSize());
     return(new Scope(DLL.daisy_daisy_scope_extern_get(daisy, index)));
 }
Пример #27
0
 public string Description(string name)
 {
     Debug.Assert(scope != (IntPtr)0);
     return(DLL.daisy_scope_description(scope, name));
 }
Пример #28
0
 public uint CountColumns()
 {
     Debug.Assert(daisy != (IntPtr)0);
     return(DLL.daisy_daisy_count_columns(daisy));
 }
Пример #29
0
 public void SetNumber(string name, double value)
 {
     Debug.Assert(scope != (IntPtr)0);
     DLL.daisy_scope_set_number(scope, name, value);
 }
Пример #30
0
 public Frame GetFrame(string name)
 {
     Debug.Assert(Check(name));
     return(new Frame(DLL.daisy_frame_get_frame(frame, name)));  /* Get frame NAME from FRAME. */
 }