Exemple #1
0
 /*
  * Insert a new CT_Col at position 0 into cols, Setting min=min, max=max and
  * copying all the colsWithAttributes array cols attributes into newCol
  */
 private CT_Col insertCol(CT_Cols cols, long min, long max,
                          CT_Col[] colsWithAttributes)
 {
     if (!columnExists(cols, min, max))
     {
         CT_Col newCol = cols.InsertNewCol(0);
         newCol.min = (uint)(min);
         newCol.max = (uint)(max);
         foreach (CT_Col col in colsWithAttributes)
         {
             SetColumnAttributes(col, newCol);
         }
         return(newCol);
     }
     return(null);
 }
Exemple #2
0
        private CT_Col insertCol(CT_Cols cols, long min, long max, CT_Col[] colsWithAttributes)
        {
            if (this.columnExists(cols, min, max))
            {
                return((CT_Col)null);
            }
            CT_Col toCol = cols.InsertNewCol(0);

            toCol.min = (uint)min;
            toCol.max = (uint)max;
            foreach (CT_Col colsWithAttribute in colsWithAttributes)
            {
                this.SetColumnAttributes(colsWithAttribute, toCol);
            }
            return(toCol);
        }
Exemple #3
0
 private CT_Col insertCol(CT_Cols cols, long min, long max,
 CT_Col[] colsWithAttributes, bool ignoreExistsCheck, CT_Col overrideColumn)
 {
     if (ignoreExistsCheck || !columnExists(cols, min, max))
     {
         CT_Col newCol = cols.InsertNewCol(0);
         newCol.min = (uint)(min);
         newCol.max = (uint)(max);
         foreach (CT_Col col in colsWithAttributes)
         {
             SetColumnAttributes(col, newCol);
         }
         if (overrideColumn != null) SetColumnAttributes(overrideColumn, newCol);
         return newCol;
     }
     return null;
 }