47 if (it->getApn() == apn)
63 if (it->hasSynonym(synonym))
72 return entry ? &(entry->
getApn()) : NULL;
86 if (entry1 == NULL && entry2 == NULL) {
87 EV <<
"No NamingInfo thus considering " << apn <<
" as unique!" << endl;
88 result.push_back(apn);
91 else if (entry1 != NULL && entry2 == NULL) {
92 result.push_back(apn);
95 else if (entry1 == NULL && entry2 != NULL) {
97 result.push_back(apn);
101 EV <<
"NamingInfo contains inconsistency" << endl
109 cXMLElement* mainTag = NULL;
110 if (config != NULL && config->hasChildren() && config->getFirstChildWithTag(
ELEM_NAMINGTABLE))
113 EV <<
"configData parameter not initialized!" << endl;
118 cXMLElementList apnlist = mainTag->getChildrenByTagName(
ELEM_APN);
119 for (cXMLElementList::const_iterator it = apnlist.begin(); it != apnlist.end(); ++it) {
120 cXMLElement* m = *it;
123 EV <<
"\nError when parsing NaimingInfo record" << endl;
131 cXMLElementList synonymlist = m->getChildrenByTagName(
ELEM_SYNONYM);
132 for (cXMLElementList::const_iterator jt = synonymlist.begin(); jt != synonymlist.end(); ++jt) {
133 cXMLElement* n = *jt;
136 EV <<
"\nError when parsing Synonym record" << endl;
147 std::ostringstream description;
149 this->getDisplayString().setTagArg(
"t", 0, description.str().c_str());
150 this->getDisplayString().setTagArg(
"t", 1,
"t");
const APN & getApn() const
Application Process Name class.
void addSynonym(const APN &synonym)
const std::list< APN > & getSynonyms() const
std::list< APN > APNList
APNList represents the list of APNs.
const char * PAR_CONFIGDATA