bool ChainNode::getValue (const String& strMemberName, String& strValue) { bool bValueSet = false; Chain* pObject = dynamic_cast<Chain*>(m_pObject); if (strMemberName == L"value") { ValueObject* pValueObj = dynamic_cast<ValueObject*>(m_pObject); if (pValueObj) { if (!pValueObj->isNothing()) { strValue = pValueObj->toString(); bValueSet = true; } } } else if (strMemberName == L"Name") { if (pObject->hasValue_Name()) { strValue = (StringObjectImpl(pObject->getName())).toString(); bValueSet = true; } } else if (strMemberName == L"Desc") { if (pObject->hasValue_Desc()) { strValue = (StringObjectImpl(pObject->getDesc())).toString(); bValueSet = true; } } else if (strMemberName == L"Code") { if (pObject->hasValue_Code()) { strValue = (StringObjectImpl(pObject->getCode())).toString(); bValueSet = true; } } else if (strMemberName == L"State") { if (pObject->hasValue_State()) { strValue = (EnumStateTypeImpl(pObject->getState())).toString(); bValueSet = true; } } else if (strMemberName == L"PointGeometry") { if (pObject->hasValue_PointGeometry()) { strValue = (EnumPointGeometryTypeImpl(pObject->getPointGeometry())).toString(); bValueSet = true; } } else if (strMemberName == L"DTMAttribute") { if (pObject->hasValue_DTMAttribute()) { strValue = (EnumDTMAttributeTypeImpl(pObject->getDTMAttribute())).toString(); bValueSet = true; } } else if (strMemberName == L"TimeStamp") { if (pObject->hasValue_TimeStamp()) { strValue = (StringObjectImpl(pObject->getTimeStamp())).toString(); bValueSet = true; } } else if (strMemberName == L"Role") { if (pObject->hasValue_Role()) { strValue = (EnumSurveyRoleTypeImpl(pObject->getRole())).toString(); bValueSet = true; } } else if (strMemberName == L"Station") { if (pObject->hasValue_Station()) { strValue = (DoubleObjectImpl(pObject->getStation())).toString(); bValueSet = true; } } else if (strMemberName == L"Zone") { if (pObject->hasValue_Zone()) { strValue = (StringObjectImpl(pObject->getZone())).toString(); bValueSet = true; } } else if (strMemberName == L"Status") { if (pObject->hasValue_Status()) { strValue = (EnumObservationStatusTypeImpl(pObject->getStatus())).toString(); bValueSet = true; } } return bValueSet; }