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; }
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; }
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()); } }