Constant.cs 957 Bytes
Newer Older
Anders Nilsson's avatar
Anders Nilsson committed
1
2
namespace se.lth.control.labcomm {

Anders Blomdell's avatar
Anders Blomdell committed
3
  public class Constant {
Anders Nilsson's avatar
Anders Nilsson committed
4

5
    public const string CURRENT_VERSION = "LabComm2014";
6

7
8
    /*
     * Allowed packet tags
Anders Nilsson's avatar
Anders Nilsson committed
9
     */
10
    public const int VERSION          = 0x01;
Anders Nilsson's avatar
Anders Nilsson committed
11
    public const int SAMPLE           = 0x02;
12
13
14
15
16
17
    public const int PRAGMA           = 0x3f;
    public const int FIRST_USER_INDEX = 0x40; /* ..0xffffffff */

    /*
     * Predefined aggregate type indices
     */
Anders Nilsson's avatar
Anders Nilsson committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    public const int ARRAY            = 0x10;
    public const int STRUCT           = 0x11;
    
    /*
     * Predeclared primitive type indices
     */
    public const int BOOLEAN          = 0x20;
    public const int BYTE             = 0x21;
    public const int SHORT            = 0x22;
    public const int INT              = 0x23;
    public const int LONG             = 0x24;
    public const int FLOAT            = 0x25;
    public const int DOUBLE           = 0x26;
    public const int STRING           = 0x27;
    
  }

}