35 #ifndef RFPIPEMAC_PCRMANAGER_HEADER_ 36 #define RFPIPEMAC_PCRMANAGER_HEADER_ 42 #include <libxml/parser.h> 79 PCREntry (
float fSinr,
float fPor) :
85 typedef std::vector<PCREntry> PCREntryVector;
86 typedef PCREntryVector::iterator PCREntryVectorIter;
88 typedef std::vector<float> PORVector;
89 typedef PORVector::iterator PORVectorIter;
104 void load(
const std::string &uri);
114 float getPCR(
float fSinr,
size_t size);
117 void Open(
const std::string & uri, xmlParserCtxtPtr * ppContext, xmlDoc ** ppDocument, xmlNode ** ppRoot);
119 void Close(xmlParserCtxtPtr * ppContext, xmlDoc ** ppDocument);
121 std::string getAttribute (xmlNodePtr cur,
const xmlChar *
id);
123 std::string getContent (xmlNodePtr cur);
125 void getTable (xmlNodePtr cur);
127 void getRows (xmlNodePtr cur);
135 PCREntryVector pcrEntryVector_;
137 PORVector porVector_;
139 size_t tablePacketSize_;
146 #endif //RFPIPEMAC_PCRMANAGER_HEADER_ PCRManager(EMANE::NEMId id, EMANE::PlatformServiceProvider *pPlatformService)
float getPCR(float fSinr, size_t size)
void load(const std::string &uri)