32 std::ostringstream description;
33 description <<
SrchTable.size() <<
" entries";
34 this->getDisplayString().setTagArg(
"t", 0, description.str().c_str());
35 this->getDisplayString().setTagArg(
"t", 1,
"t");
50 if (it->getApn() == apn)
67 return entry ? &(entry->
getPeers()) : NULL;
Define_Module(SearchTable)
virtual void handleMessage(cMessage *msg)
void addPeer(const APN &peer)
Application Process Name class.
void updateDisplayString()
std::list< APN > APNList
APNList represents the list of APNs.
const char * PAR_CONFIGDATA
SearchTableEntry * findSearchEntryByApn(const APN &apn)
void removeSearchEntry(const APN &apn)
const char * ELEM_SEARCHTAB
const APNList * findPeersByApn(const APN &apn)
void addSearchEntry(const APN &apn)
void parseConfig(cXMLElement *config)
void addNewPeerDa(const APN &apn, const APN &peer)
SearchEntries::iterator SearchItem
virtual void initialize()
const APNList & getPeers() const