Esempio n. 1
0
 protected void finish(TypeNativeDataJSON result)
 {
     if (fieldGeneratorAlarms.have_value)
     {
         result.initAlarms();
         int count = fieldGeneratorAlarms.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendAlarms(fieldGeneratorAlarms.value[num]);
         }
         fieldGeneratorAlarms.value.Clear();
         fieldGeneratorAlarms.have_value = false;
     }
     else if ((!(result.hasAlarms())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Alarms\" field was missing.");
     }
 }