コード例 #1
0
ファイル: Program.cs プロジェクト: nicofr83/solarSW
 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;
 }
コード例 #2
0
ファイル: loadData.cs プロジェクト: nicofr83/loadSolarData
 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;
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: nicofr83/solarSW
 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());
     }
 }