#include <Aggregate.h>
Inheritance diagram for Trace:
Public Types | |
typedef TraceIterator & | const_iterator |
Public Member Functions | |
Trace (uint32_t maxLen) | |
Trace (const Trace &toCopy) | |
Trace (const StreamKey &key) | |
virtual Trace * | clone (void) const |
const TraceIterator & | begin (void) const |
const TraceIterator & | end (void) const |
void | setMaxLength (uint32_t maxLength) |
virtual const TraceIterator & | addPacket (Packet *pkt) |
virtual int | getPacketCount (void) const |
uint32_t | getMaxLength (void) |
Packet & | getPacket (int index) throw ( IndexOutOfBoundsException ) |
Trace * | subset (const PacketFilter &filter) |
const Attribute & | getAttrib (const std::string &ident) const throw ( UnknownAttributeException ) |
Return a reference to the requested attribute, or throw an exception if the attribute doesn't exist for this aggregate. | |
const StreamKey & | getStreamKey (void) const |
virtual void | addAttrib (const std::string &ident, const Attribute &attrib, uint32_t tier=0) |
Add an attribute to the aggregate. | |
void | addListener (PacketListener &listener) |
void | setParent (Aggregate &p) |
void | setStreamKey (const StreamKey &stream) |
virtual void | handlePacket (TraceIterator &newPkt) |
void | copyFrom (const Aggregate &toCopy) |
void | clear (void) |
Protected Member Functions | |
virtual Trace & | operator= (const Trace &rhs) |
void | callListeners (TraceIterator &newPkt) |
Protected Attributes | |
std::vector< Packet * > | trace |
uint32_t | maxLength |
TraceIterator | beginning |
TraceIterator | ending |
std::map< std::string, Attribute * > | attributes |
std::vector< std::vector< Attribute * > > | tiers |
std::map< std::string, Aggregate * > | aggregates |
std::vector< PacketListener * > | listeners |
StreamKey * | streamKey |
Aggregate * | parent |
Static Protected Attributes | |
static const PacketCountAttribute | countAttrib |
|
Add an attribute to the aggregate.
|
|
Add a PacketListener for the aggregate
|
|
add a packet to the underlying trace
|
|
Notify any listeners that a packet has been added to the Aggregate.
|
|
Return a reference to the requested attribute, or throw an exception if the attribute doesn't exist for this aggregate.
|
|
return the size of the sliding window, or UINT32_T_MAX if unlimited |
|
get the number of packets in the underlying trace - including any that have been dropped off the end of the rolling window, if applicable Reimplemented from Aggregate. |
|
handler for a new packet Implements PacketListener. |
|
not implemented; provided to avoid implicit definitions and for later implementation |
|
Specify that the trace is only to hold a certain number of packets
|
|
get a subset of the Aggregate matching the given filter
|
|
sub-aggregates |
|
attributes |
|
prototype packet count attribute - a clone will be added by individual aggregates |
|
ProtocolParsers listening for new packets |
|
Aggregate containing this one, if any |
|
Key indicating to which stream this Trace belongs, if applicable |
|
tiers for prioritizing attributes
|