Beispiel #1
0
        public void pushCounter(Counter counter)
        {
            IPluginWriter pluginWriter;

            switch (counter.Name())
            {
                default:
                    pluginWriter = new DefaultPluginWriter();
                    break;
            }

            pluginWriter.pushChunk(counter);
        }
        public void pushChunk(Counter counter)
        {
            packeteer.pushString(2, counter.Name());
            packeteer.pushString(3, counter.Object().InstanceName);
            packeteer.pushString(4, counter.Name());
            packeteer.pushString(5, counter.Object().CounterName);

            List<ValuePacket> values = new List<ValuePacket>();
            ValuePacket data;

            data.datatype = 0;
            data.value = (ulong)counter.Object().NextValue(); // DANGER:  need to handle this (float->int truncate)

            values.Add(data);

            packeteer.pushValue(values);
        }
Beispiel #3
0
 public void addCounter(Counter counter)
 {
     _counters.Add(counter);
 }
 public void pushChunk(Counter counter)
 {
 }