Exemple #1
0
 static void encode(Encoder& e, kaa_configuration::_configuration_avsc_Union__0__ v) {
     e.encodeUnionIndex(v.idx());
     switch (v.idx()) {
     case 0:
         e.encodeNull();
         break;
     case 1:
         avro::encode(e, v.get_uuidT());
         break;
     }
 }
Exemple #2
0
 static void encode(Encoder& e, _configuration_schema_Union__4__ v) {
     e.encodeUnionIndex(v.idx());
     switch (v.idx()) {
     case 0:
         avro::encode(e, v.get_strategyT());
         break;
     case 1:
         avro::encode(e, v.get_unchangedT());
         break;
     case 2:
         e.encodeNull();
         break;
     }
 }