86 cXMLElement* mainTag = NULL;
87 if (config != NULL && config->hasChildren() && config->getFirstChildWithTag(
ELEM_ENSTATETAB))
90 EV <<
"configData parameter not initialized!" << endl;
94 cXMLElementList enrll = mainTag->getChildrenByTagName(
ELEM_ENSTATE);
95 for (cXMLElementList::const_iterator it = enrll.begin(); it != enrll.end(); ++it) {
101 EV <<
"\nError when parsing EnrollmentState record" << endl;
112 std::string statstr(m->getAttribute(
ATTR_CACE));
113 if (!statstr.compare(
"CON_ERROR"))
115 else if (!statstr.compare(
"CON_NIL"))
117 else if (!statstr.compare(
"CON_FLOWPENDING"))
119 else if (!statstr.compare(
"CON_CONNECTPENDING"))
121 else if (!statstr.compare(
"CON_AUTHENTICATING"))
123 else if (!statstr.compare(
"CON_ESTABLISHED"))
125 else if (!statstr.compare(
"CON_RELEASING"))
132 if (!enrlstr.compare(
"ENROLL_ERROR"))
134 else if (!enrlstr.compare(
"ENROLL_NIL"))
136 else if (!enrlstr.compare(
"ENROLL_WAIT_START_ENROLLMENT"))
138 else if (!enrlstr.compare(
"ENROLL_WAIT_START_RESPONSE_ENROLLMENT"))
140 else if (!enrlstr.compare(
"ENROLL_WAIT_STOP_ENROLLMENT"))
142 else if (!enrlstr.compare(
"ENROLL_WAIT_STOP_RESPONSE_ENROLLMENT"))
144 else if (!enrlstr.compare(
"ENROLL_WAIT_READ_RESPONSE"))
146 else if (!enrlstr.compare(
"ENROLL_WAIT_START_OPERATION"))
148 else if (!enrlstr.compare(
"ENROLL_CREATING_OBJ"))
150 else if (!enrlstr.compare(
"ENROLL_ENROLLED"))
Application Process Name class.
const char * ELEM_ENSTATE
virtual void handleMessage(cMessage *msg)
void insert(EnrollmentStateTableEntry entry)
const char * PAR_CONFIGDATA
const APNamingInfo & getLocal() const
EnrollmentStateTableEntry * findEntryByDstAPN(const APN &apn)
const APN & getApn() const
Getter of APN.
EnrollStateTable StateTable
const char * ELEM_ENSTATETAB
APNamingInfo holds complete naming info for particular application process.
bool isEnrolled(const APN &myApn)
const APNamingInfo & getRemote() const
Define_Module(EnrollmentStateTable)
void parseConfig(cXMLElement *config)
virtual void initialize()
EnrollmentStateTableEntry::EnrollmentStatus getEnrollmentStatus() const