예제 #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. */
 }