OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000359OMNeT++simulation kernelpublic2011-06-17 15:592011-06-17 15:59
zbojthe 
 
lowfeaturealways
newopen 
4.2b2 
 
0000359: suggestion: add a getRequiredAttribute(attrName) function to cXMLElement class
The "generate error when attribute is not exists" found more times in modules
.h:
virtual const char *getRequiredAttribute(const char *attr) const;

.cc:
const char *cXMLElement::getRequiredAttribute(const char *attr) const
{
    const char *s = getAttribute(attr);
    if (s == NULL)
        error("required attribute %s of <%s> missing at %s",
              attr, getTagName(), getSourceLocation());
    return s;
}
No tags attached.
Issue History
2011-06-17 15:59zbojtheNew Issue

There are no notes attached to this issue.