//------------------------------------------------------------------------------
//-------------------------------------------------------- Command::addAvpRule()
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//-------------------------------------------------------- Command::addAvpRule()
//------------------------------------------------------------------------------
if(avpRule.isFixed()) {
if(!a_allowFixedRule) {
std::string s_ex = anna::functions::asString("Incorrect position for fixed avp rule '<%s>' within command '%s'", avpRule.getAvpName().c_str(), getName().c_str());
if(avpRule.isFixed()) {
if(!a_allowFixedRule) {
std::string s_ex = anna::functions::asString("Incorrect position for fixed avp rule '<%s>' within command '%s'", avpRule.getAvpName().c_str(), getName().c_str());
//------------------------------------------------------------------------------
//----------------------------------------------------------- Command::isChild()
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//----------------------------------------------------------- Command::isChild()
//------------------------------------------------------------------------------
for(const_avprule_iterator it = avprule_begin(); it != avprule_end(); it++)
if(avpId == ((*it).second.getId()))
return true;
for(const_avprule_iterator it = avprule_begin(); it != avprule_end(); it++)
if(avpId == ((*it).second.getId()))
return true;
//------------------------------------------------------------------------------
//---------------------------------------------------------- Command::asString()
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//---------------------------------------------------------- Command::asString()
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//------------------------------------------------------------- Command::asXML()
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//------------------------------------------------------------- Command::asXML()
//------------------------------------------------------------------------------
// <!ELEMENT command (avprule*)>
// <!ATTLIST command name CDATA #REQUIRED code CDATA #REQUIRED type (Request | Answer) #REQUIRED>
anna::xml::Node* result = parent->createChild("command");
// <!ELEMENT command (avprule*)>
// <!ATTLIST command name CDATA #REQUIRED code CDATA #REQUIRED type (Request | Answer) #REQUIRED>
anna::xml::Node* result = parent->createChild("command");