34 std::ostringstream description;
35 description <<
Director.size() <<
" entries";
36 this->getDisplayString().setTagArg(
"t", 0, description.str().c_str());
37 this->getDisplayString().setTagArg(
"t", 1,
"t");
64 std::ostringstream os;
65 os <<
"id=" << this->getId() << endl;
83 cXMLElement* mainTag = NULL;
84 if (config != NULL && config->hasChildren() && config->getFirstChildWithTag(
ELEM_DIRDATA))
87 EV <<
"configData parameter not initialized!" << endl;
91 cXMLElementList apnlist = mainTag->getChildrenByTagName(
ELEM_APN);
92 for (cXMLElementList::const_iterator it = apnlist.begin(); it != apnlist.end(); ++it) {
96 EV <<
"\nError when parsing Directory record" << endl;
104 cXMLElementList diflist = m->getChildrenByTagName(
ELEM_DIF);
105 for (cXMLElementList::const_iterator jt = diflist.begin(); jt != diflist.end(); ++jt) {
106 cXMLElement* n = *jt;
109 EV <<
"\nError when parsing DIF record" << endl;
const char * ATTR_IPCADDR
Application Process Name class.
void addDif(const Address &member)
virtual void initialize()
DirectoryEntry * findDirEntryByApn(const APN &apn)
const char * PAR_CONFIGDATA
TDirectory::iterator TDirIter
void addDirEntry(const APN &apn)
void addNewDif(const APN &apn, const Address &member)
const char * ELEM_DIRDATA
const APN & getApn() const
const char * ATTR_DIFNAME
virtual void handleMessage(cMessage *msg)
void removeDirEntry(const APN &apn)
Address class holds IPC Process identification.
void updateDisplayString()
void parseConfig(cXMLElement *config)