Esempio n. 1
0
 public void ReadAtts(int index, CommunicationBuffer buf) {
   switch (index) {
     case 0:
       SetTypeNames(buf.ReadStringVector());
       break;
     case 1:
       SetTypeIDs(buf.ReadStringVector());
       break;
     case 2:
       {
         int len = buf.ReadInt();
         openOptions.clear();
         for (int j = 0; j < len; ++j) {
           DBOptionsAttributes tmp = new DBOptionsAttributes();
           tmp.Read(buf);
           openOptions.addElement(tmp);
         }
       }
       Select(2);
       break;
     case 3:
       SetEnabled(buf.ReadIntVector());
       break;
     case 4:
       SetPreferredIDs(buf.ReadStringVector());
       break;
   }
 }
 public void ReadAtts(int index, CommunicationBuffer buf) {
   switch (index) {
     case 0:
       SetName(buf.ReadString());
       break;
     case 1:
       SetVarnames(buf.ReadStringVector());
       break;
     case 2:
       SetBinType(buf.ReadByteVector());
       break;
     case 3:
       SetBinBoundaries(buf.ReadDoubleVector());
       break;
     case 4:
       SetReductionOperator(buf.ReadInt());
       break;
     case 5:
       SetVarForReductionOperator(buf.ReadString());
       break;
     case 6:
       SetUndefinedValue(buf.ReadDouble());
       break;
     case 7:
       SetBinningScheme(buf.ReadInt());
       break;
     case 8:
       SetNumBins(buf.ReadIntVector());
       break;
     case 9:
       SetOverTime(buf.ReadBool());
       break;
     case 10:
       SetTimeStart(buf.ReadInt());
       break;
     case 11:
       SetTimeEnd(buf.ReadInt());
       break;
     case 12:
       SetTimeStride(buf.ReadInt());
       break;
     case 13:
       SetOutOfBoundsBehavior(buf.ReadInt());
       break;
   }
 }