Alphabetic Class Index   |   Class Inheritance Tree Index   |   Tool Index

Class: PacketCounter

Parent class: PacketPipe

Description:
This object counts the packets flowing throw it by APID.

Data Fields
privatemap<int,int>count
privateinttotal

Constructors / Destructor
public PacketCounter()
Constructor.
public ~PacketCounter()

Methods
public virtual int getCount(int apid)
Return the current packet count in a given APID.
public virtual int getCount()
Return the current packet count summed over APIDS.
public virtual void reset()
Reset the packet count to zero.
public virtual CCSDSPacket* operateOnPacket(CCSDSPacket* p)
Count a single packet moving through the pipe.
public virtual void report(ostream* out)
Print a report of all APIDS and counts to a given ostream.

Operators


Alphabetic Class Index   |   Class Inheritance Tree Index   |   Tool Index