Exemplo n.º 1
0
 public measureDef(string name, string root, string suffix1, string suffix2, int id, string unit, bool bFlushDBRow, valueDTP valueDataType)
 {
     this.name = name;
     this.nameDecoded = new string[3];
     this.nameDecoded[0] = root;
     this.nameDecoded[1]=suffix1;
     this.nameDecoded[2] = suffix2;
     this.internalName = root +"-" + ((suffix1 == null)? "": suffix1) + "-" + ((suffix2 == null)? "":suffix2);
     this.id = id;
     this.unit = unit;
     this.bFlushDBRow = bFlushDBRow;
     this.valueDataType = valueDataType;
 }
Exemplo n.º 2
0
 public measureDef(string name, string root, string suffix1, string suffix2, int id, string unit, bool bFlushDBRow, valueDTP valueDataType, int tableMask)
 {
     this.name = name;
         this.nameDecoded = new string[3];
         this.nameDecoded[0] = root;
         this.nameDecoded[1] = suffix1;
         this.nameDecoded[2] = suffix2;
         this.internalName = glob.buildInternalName(this.nameDecoded);
         this.id = id;
         this.unit = unit;
         this.bFlushDBRow = bFlushDBRow;
         this.valueDataType = valueDataType;
         this.tableMask = tableMask;
 }
Exemplo n.º 3
0
 void checkDataTP(int no, valueDTP valDTP)
 {
     if (dType[no] != valDTP){
         throw new Exception("dataType do not correspond ! " + no.ToString() + ": " + valDTP.ToString() + ", dType: " + dType[no].ToString());
     }
 }