| 74 | } |
| 75 | |
| 76 | void IdentifierSymbol::AddChild(WMElement* pWME) |
| 77 | { |
| 78 | // Record that we're changing the list of children in case the |
| 79 | // client would like to know that this identifier was changed in some fashion. |
| 80 | SetAreChildrenModified(true) ; |
| 81 | |
| 82 | Identifier::ChildrenIter iter = FindChildByTimeTag(pWME->GetTimeTag()); |
| 83 | if (iter == m_Children.end()) |
| 84 | { |
| 85 | //std::cout << "AddChild: " << pWME->GetIdentifierName() << ", " << pWME->GetAttribute() << ", " << pWME->GetValueAsString() << " (" << pWME->GetTimeTag() << ")" << " (" << pWME << ")" << std::endl; |
| 86 | m_Children.push_back(pWME) ; |
| 87 | } |
| 88 | else |
| 89 | { |
| 90 | //std::cout << "Did not AddChild: " << pWME->GetIdentifierName() << ", " << pWME->GetAttribute() << ", " << pWME->GetValueAsString() << " (" << pWME->GetTimeTag() << ")" << " (" << pWME << ")" << std::endl; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | WMElement* IdentifierSymbol::GetChildByTimeTag(long long timeTag) |
| 95 | { |
no test coverage detected