35 #ifndef EMANEMODELSCOMMEFFECTFILTERREADER_HEADER_ 36 #define EMANEMODELSCOMMEFFECTFILTERREADER_HEADER_ 43 #include <libxml/parser.h> 47 #define XMLCHAR (const xmlChar*) 66 static void getFilters(xmlNode * cur,
Filters & filters);
68 static std::string getAttribute(xmlNodePtr cur,
const xmlChar *
id);
70 static std::string getContent(xmlNodePtr cur);
76 static float getProbability(xmlNode * cur,
const char *);
78 static std::uint64_t getBitRate(xmlNode * cur,
const char *);
80 static Microseconds getDuration(xmlNode * cur,
const char *);
82 static std::pair<Events::CommEffect,bool> getEffect(xmlNode * cur);
84 static Target * getTarget(xmlNode * cur);
90 #endif // EMANEMODELSCOMMEFFECTFILTERREADER_HEADER_
std::list< IPProtocolRule * > IPProtocolRules
std::list< Filter > Filters
static Filters load(const char *pzFileName)
std::list< EthernetProtocolRule * > EthernetProtocolRules
std::chrono::microseconds Microseconds