This version is only needed at the top of the tree (e.g. the input link)
| 167 | |
| 168 | // This version is only needed at the top of the tree (e.g. the input link) |
| 169 | Identifier::Identifier(Agent* pAgent, char const* pAttributeName, char const* pIdentifier, long long timeTag) |
| 170 | : WMElement(pAgent, NULL, pIdentifier, pAttributeName, timeTag) |
| 171 | { |
| 172 | //m_pSymbol = GetAgent()->GetWM()->FindIdentifierSymbol(pIdentifier); |
| 173 | //if (m_pSymbol) |
| 174 | //{ |
| 175 | // m_pSymbol->UsedBy(this); |
| 176 | //} |
| 177 | //else |
| 178 | //{ |
| 179 | m_pSymbol = new IdentifierSymbol(this) ; |
| 180 | m_pSymbol->SetIdentifierSymbol(pIdentifier) ; |
| 181 | RecordSymbolInMap(); |
| 182 | //} |
| 183 | //std::cout << "created (" << this->GetIdentifierName() << " ^" << this->GetAttribute() |
| 184 | // << " " << this->GetValueAsString() << ": " << this->GetTimeTag() << ")" << std::endl; |
| 185 | } |
| 186 | |
| 187 | // The normal case (where there is a parent id) |
| 188 | Identifier::Identifier(Agent* pAgent, Identifier* pParent, char const* pID, char const* pAttributeName, char const* pIdentifier, long long timeTag) |
nothing calls this directly
no test coverage detected