#include <PacketAttribute.h>
Public Member Functions | |
PacketAttribute (const PacketAttribute &toCopy) | |
PacketAttribute (const std::string &dom, const std::string &ident) | |
PacketAttribute (const std::string &attrib) | |
virtual PacketAttribute * | clone (void) const |
const std::string & | getDomain (void) const |
const std::string & | getIdent (void) const |
virtual std::string | toString (void) const |
Static Public Attributes | |
static const std::string | GLOBAL |
Protected Attributes | |
std::string | domain |
std::string | identifier |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PacketAttribute &attrib) |
Some attributes are universal (e.g. "frame.time"), whereas others are specific to packets of a particular protocol or application (e.g. "ip.src"). Packet attribute names are drawn from Ethereal notation, though there are some notable differences (e.g. only those attributes which refer to a single attribute are supported, so some e.g. "ip.addr" are not).
|
Given a domain and identifier, construct the appropriate PacketAttribute object |
|
Given an attribute string, parse it and construct the appropriate PacketAttribute object |
|
string indicating the domain of the attribute, e.g. "frame", "ip", "tcp", etc. |
|
string identifying the attribute itself; an empty string means that the attribute merely specifies that the domain applies; e.g. IPv4Packet should return a value of PacketAttributeValue::TRUE when queried for an attribute of domain "ip" and identifier "" |