| | |
| | | m_attributes.clear(); |
| | | } |
| | | |
| | | void CAttributeVector::addAttribute(CAttribute* pAttribute, BOOL bReplace/* = FALSE*/) |
| | | BOOL CAttributeVector::addAttribute(CAttribute* pAttribute, BOOL bReplace/* = FALSE*/) |
| | | { |
| | | if (!pAttribute) { |
| | | return; |
| | | return FALSE; |
| | | } |
| | | |
| | | const std::string& name = pAttribute->getName(); |
| | | if (name.empty()) { |
| | | return; |
| | | return FALSE; |
| | | } |
| | | |
| | | if (bReplace) { |
| | |
| | | } |
| | | |
| | | m_attributes.push_back(pAttribute); |
| | | return TRUE; |
| | | } |
| | | |
| | | void CAttributeVector::addAttributeVector(CAttributeVector& av) |
| | |
| | | ASSERT(index < m_attributes.size()); |
| | | return m_attributes[index]; |
| | | } |
| | | |
| | | std::vector<CAttribute*>& CAttributeVector::getAttributes() |
| | | { |
| | | return m_attributes; |
| | | } |
| | | } |