Ejemplo n.º 1
0
 public void interpret(QuickFAST.DotNet.DNFieldSet fieldSet)
 {
     if (!silent_)
     {
         formatFieldSet(fieldSet);
     }
 }
Ejemplo n.º 2
0
 public void formatFieldSet(QuickFAST.DotNet.DNFieldSet fieldSet)
 {
     int size = fieldSet.Count;
     // There are two equivalent ways to iterate through the fields; by index or by foreach (enumerator)
     //   for (int nField = 0; nField < size; ++nField)
     //   {
     //      DNField field = fieldSet.getField(nField);
     // is equivalent to:
     //    foreach (DNField field in fieldSet)
     //    {
     // You can also find fields by name
     // This uses the unqualified local name.  It does not use field namespace
     //   DNField field = fieldSet.findFieldByName("hello");
     // And this one uses the namespace
     //   DNField field = fieldSet.findFieldByQualifiedName("hello", "namespace");
     foreach (DNField field in fieldSet)
     {
         FieldType type = field.Type;
         if (type == FieldType.SEQUENCE)
         {
             formatSequence(field);
         }
         else if (type == FieldType.GROUP)
         {
             Console.WriteLine("{0}Group {1}:", indent_, field.LocalName);
             formatGroup(field);
         }
         else
         {
             Console.Write(" {0}[{1}]={2}",
                 field.LocalName,
                 field.Id,
                 field.DisplayString
                 );
         }
     }
 }
Ejemplo n.º 3
0
 bool DecoderErrorHandler(
     QuickFAST.DotNet.DNMessageDeliverer builder,
     String message)
 {
     Console.WriteLine("Decoder error: {0}", message);
     return true;
 }
Ejemplo n.º 4
0
 bool CommunicationErrorHandler(
     QuickFAST.DotNet.DNMessageDeliverer builder,
     String message)
 {
     Console.WriteLine("Communication error: {0}", message);
     return true;
 }
Ejemplo n.º 5
0
 public bool Logger(
     QuickFAST.DotNet.DNMessageDeliverer builder,
     ushort logLevel,
     String message)
 {
     Console.WriteLine("{0}", message);
     return true;
 }
Ejemplo n.º 6
0
 public bool MessageInterpreter(
     QuickFAST.DotNet.DNMessageDeliverer builder,
     QuickFAST.DotNet.DNFieldSet message)
 {
     ++recordCount_;
     return true;
 }
Ejemplo n.º 7
0
 public bool MessageInterpreter(
     QuickFAST.DotNet.DNMessageDeliverer builder,
     QuickFAST.DotNet.DNFieldSet message)
 {
     ++recordCount_;
     Console.Write("Record #{0} ", recordCount_);
     interpreter_.interpret(message);
     Console.WriteLine();
     return true;
 }