Exemplo n.º 1
0
bool ComplexNameNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    ComplexName* pObject = dynamic_cast<ComplexName*>(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"Desc")
    {
        if (pObject->hasValue_Desc())
        {
            strValue = (StringObjectImpl(pObject->getDesc())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Priority")
    {
        if (pObject->hasValue_Priority())
        {
            strValue = (IntegerObjectImpl(pObject->getPriority())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 2
0
bool ContourNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Contour* pObject = dynamic_cast<Contour*>(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"Elev")
    {
        if (pObject->hasValue_Elev())
        {
            strValue = (DoubleObjectImpl(pObject->getElev())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 3
0
bool HeadOfPowerNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    HeadOfPower* pObject = dynamic_cast<HeadOfPower*>(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;
        }
    }
    return bValueSet;
}
Exemplo n.º 4
0
bool AdministrativeDateNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    AdministrativeDate* pObject = dynamic_cast<AdministrativeDate*>(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"AdminDateType")
    {
        if (pObject->hasValue_AdminDateType())
        {
            strValue = (StringObjectImpl(pObject->getAdminDateType())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"AdminDate")
    {
        if (pObject->hasValue_AdminDate())
        {
            strValue = (StringObjectImpl(pObject->getAdminDate())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 5
0
bool StaEquationNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    StaEquation* pObject = dynamic_cast<StaEquation*>(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"StaAhead")
    {
        if (pObject->hasValue_StaAhead())
        {
            strValue = (DoubleObjectImpl(pObject->getStaAhead())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaBack")
    {
        if (pObject->hasValue_StaBack())
        {
            strValue = (DoubleObjectImpl(pObject->getStaBack())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaInternal")
    {
        if (pObject->hasValue_StaInternal())
        {
            strValue = (DoubleObjectImpl(pObject->getStaInternal())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaIncrement")
    {
        if (pObject->hasValue_StaIncrement())
        {
            strValue = (EnumStationIncrementDirectionTypeImpl(pObject->getStaIncrement())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Desc")
    {
        if (pObject->hasValue_Desc())
        {
            strValue = (StringObjectImpl(pObject->getDesc())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 6
0
bool DefinitionNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Definition* pObject = dynamic_cast<Definition*>(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"SurfType")
    {
        if (pObject->hasValue_SurfType())
        {
            strValue = (EnumSurfTypeEnumImpl(pObject->getSurfType())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Area2DSurf")
    {
        if (pObject->hasValue_Area2DSurf())
        {
            strValue = (DoubleObjectImpl(pObject->getArea2DSurf())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Area3DSurf")
    {
        if (pObject->hasValue_Area3DSurf())
        {
            strValue = (DoubleObjectImpl(pObject->getArea3DSurf())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"ElevMax")
    {
        if (pObject->hasValue_ElevMax())
        {
            strValue = (DoubleObjectImpl(pObject->getElevMax())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"ElevMin")
    {
        if (pObject->hasValue_ElevMin())
        {
            strValue = (DoubleObjectImpl(pObject->getElevMin())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 7
0
bool AuthorNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Author* pObject = dynamic_cast<Author*>(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"CreatedBy")
    {
        if (pObject->hasValue_CreatedBy())
        {
            strValue = (StringObjectImpl(pObject->getCreatedBy())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"CreatedByEmail")
    {
        if (pObject->hasValue_CreatedByEmail())
        {
            strValue = (StringObjectImpl(pObject->getCreatedByEmail())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Company")
    {
        if (pObject->hasValue_Company())
        {
            strValue = (StringObjectImpl(pObject->getCompany())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"CompanyURL")
    {
        if (pObject->hasValue_CompanyURL())
        {
            strValue = (StringObjectImpl(pObject->getCompanyURL())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"TimeStamp")
    {
        if (pObject->hasValue_TimeStamp())
        {
            strValue = (StringObjectImpl(pObject->getTimeStamp())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 8
0
bool ProfileNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Profile* pObject = dynamic_cast<Profile*>(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"Desc")
    {
        if (pObject->hasValue_Desc())
        {
            strValue = (StringObjectImpl(pObject->getDesc())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Name")
    {
        if (pObject->hasValue_Name())
        {
            strValue = (StringObjectImpl(pObject->getName())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaStart")
    {
        if (pObject->hasValue_StaStart())
        {
            strValue = (DoubleObjectImpl(pObject->getStaStart())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"State")
    {
        if (pObject->hasValue_State())
        {
            strValue = (EnumStateTypeImpl(pObject->getState())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 9
0
bool SurveyorCertificateNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    SurveyorCertificate* pObject = dynamic_cast<SurveyorCertificate*>(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"CertificateType")
    {
        if (pObject->hasValue_CertificateType())
        {
            strValue = (StringObjectImpl(pObject->getCertificateType())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"TextCertificate")
    {
        if (pObject->hasValue_TextCertificate())
        {
            strValue = (StringObjectImpl(pObject->getTextCertificate())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SurveyDate")
    {
        if (pObject->hasValue_SurveyDate())
        {
            strValue = (StringObjectImpl(pObject->getSurveyDate())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 10
0
bool PeakHourNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    PeakHour* pObject = dynamic_cast<PeakHour*>(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"StaStart")
    {
        if (pObject->hasValue_StaStart())
        {
            strValue = (DoubleObjectImpl(pObject->getStaStart())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaEnd")
    {
        if (pObject->hasValue_StaEnd())
        {
            strValue = (DoubleObjectImpl(pObject->getStaEnd())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SideofRoad")
    {
        if (pObject->hasValue_SideofRoad())
        {
            strValue = (EnumSideofRoadTypeImpl(pObject->getSideofRoad())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Volume")
    {
        if (pObject->hasValue_Volume())
        {
            strValue = (DoubleObjectImpl(pObject->getVolume())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 11
0
bool BridgeElementNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    BridgeElement* pObject = dynamic_cast<BridgeElement*>(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"StaStart")
    {
        if (pObject->hasValue_StaStart())
        {
            strValue = (DoubleObjectImpl(pObject->getStaStart())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaEnd")
    {
        if (pObject->hasValue_StaEnd())
        {
            strValue = (DoubleObjectImpl(pObject->getStaEnd())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Width")
    {
        if (pObject->hasValue_Width())
        {
            strValue = (DoubleObjectImpl(pObject->getWidth())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"ProjectType")
    {
        if (pObject->hasValue_ProjectType())
        {
            strValue = (EnumBridgeProjectTypeImpl(pObject->getProjectType())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 12
0
bool AnnotationNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Annotation* pObject = dynamic_cast<Annotation*>(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"Type")
    {
        if (pObject->hasValue_Type())
        {
            strValue = (StringObjectImpl(pObject->getType())).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"PclRef")
    {
        if (pObject->getPclRef())
        {
            strValue = pObject->getPclRef()->toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 13
0
bool InSpiralNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    InSpiral* pObject = dynamic_cast<InSpiral*>(m_pObject);
    if (strMemberName == L"value")
    {
        ValueObject* pValueObj = dynamic_cast<ValueObject*>(m_pObject);
        if (pValueObj)
        {
            if (!pValueObj->isNothing())
            {
                strValue = pValueObj->toString();
                bValueSet = true;
            }
        }
    }
    return bValueSet;
}
Exemplo n.º 14
0
bool TurnSpeedNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    TurnSpeed* pObject = dynamic_cast<TurnSpeed*>(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"Station")
    {
        if (pObject->hasValue_Station())
        {
            strValue = (DoubleObjectImpl(pObject->getStation())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"LegNumber")
    {
        if (pObject->hasValue_LegNumber())
        {
            strValue = (IntegerObjectImpl(pObject->getLegNumber())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Speed")
    {
        if (pObject->hasValue_Speed())
        {
            strValue = (DoubleObjectImpl(pObject->getSpeed())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 15
0
bool CornerNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Corner* pObject = dynamic_cast<Corner*>(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"StaStart")
    {
        if (pObject->hasValue_StaStart())
        {
            strValue = (DoubleObjectImpl(pObject->getStaStart())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaEnd")
    {
        if (pObject->hasValue_StaEnd())
        {
            strValue = (DoubleObjectImpl(pObject->getStaEnd())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Type")
    {
        if (pObject->hasValue_Type())
        {
            strValue = (EnumCornerTypeImpl(pObject->getType())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 16
0
bool OffsetValsNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    OffsetVals* pObject = dynamic_cast<OffsetVals*>(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"OffsetInOut")
    {
        if (pObject->hasValue_OffsetInOut())
        {
            strValue = (DoubleObjectImpl(pObject->getOffsetInOut())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"OffsetLeftRight")
    {
        if (pObject->hasValue_OffsetLeftRight())
        {
            strValue = (DoubleObjectImpl(pObject->getOffsetLeftRight())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"OffsetUpDown")
    {
        if (pObject->hasValue_OffsetUpDown())
        {
            strValue = (DoubleObjectImpl(pObject->getOffsetUpDown())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 17
0
bool FNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    F* pObject = dynamic_cast<F*>(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"I")
    {
        if (pObject->hasValue_I())
        {
            strValue = (IntegerObjectImpl(pObject->getI())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"N")
    {
        if (pObject->getN())
        {
            strValue = pObject->getN()->toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"B")
    {
        if (pObject->hasValue_B())
        {
            strValue = (UIntegerObjectImpl(pObject->getB())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 18
0
bool CurveNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Curve* pObject = dynamic_cast<Curve*>(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"Rot")
    {
        if (pObject->hasValue_Rot())
        {
            strValue = (EnumClockwiseImpl(pObject->getRot())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Chord")
    {
        if (pObject->hasValue_Chord())
        {
            strValue = (DoubleObjectImpl(pObject->getChord())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"CrvType")
    {
        if (pObject->hasValue_CrvType())
        {
            strValue = (EnumCurveTypeImpl(pObject->getCrvType())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Delta")
    {
        if (pObject->hasValue_Delta())
        {
            strValue = (DoubleObjectImpl(pObject->getDelta())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Desc")
    {
        if (pObject->hasValue_Desc())
        {
            strValue = (StringObjectImpl(pObject->getDesc())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"DirEnd")
    {
        if (pObject->hasValue_DirEnd())
        {
            strValue = (DoubleObjectImpl(pObject->getDirEnd())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"DirStart")
    {
        if (pObject->hasValue_DirStart())
        {
            strValue = (DoubleObjectImpl(pObject->getDirStart())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"External")
    {
        if (pObject->hasValue_External())
        {
            strValue = (DoubleObjectImpl(pObject->getExternal())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Length")
    {
        if (pObject->hasValue_Length())
        {
            strValue = (DoubleObjectImpl(pObject->getLength())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"MidOrd")
    {
        if (pObject->hasValue_MidOrd())
        {
            strValue = (DoubleObjectImpl(pObject->getMidOrd())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Name")
    {
        if (pObject->hasValue_Name())
        {
            strValue = (StringObjectImpl(pObject->getName())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Radius")
    {
        if (pObject->hasValue_Radius())
        {
            strValue = (DoubleObjectImpl(pObject->getRadius())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaStart")
    {
        if (pObject->hasValue_StaStart())
        {
            strValue = (DoubleObjectImpl(pObject->getStaStart())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"State")
    {
        if (pObject->hasValue_State())
        {
            strValue = (EnumStateTypeImpl(pObject->getState())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Tangent")
    {
        if (pObject->hasValue_Tangent())
        {
            strValue = (DoubleObjectImpl(pObject->getTangent())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"OID")
    {
        if (pObject->hasValue_OID())
        {
            strValue = (StringObjectImpl(pObject->getOID())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Note")
    {
        if (pObject->hasValue_Note())
        {
            strValue = (StringObjectImpl(pObject->getNote())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 19
0
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;
}
Exemplo n.º 20
0
bool SurveyMonumentNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    SurveyMonument* pObject = dynamic_cast<SurveyMonument*>(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"MntRef")
    {
        if (pObject->hasValue_MntRef())
        {
            strValue = (StringObjectImpl(pObject->getMntRef())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Purpose")
    {
        if (pObject->hasValue_Purpose())
        {
            strValue = (StringObjectImpl(pObject->getPurpose())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"State")
    {
        if (pObject->hasValue_State())
        {
            strValue = (StringObjectImpl(pObject->getState())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"AdoptedSurvey")
    {
        if (pObject->hasValue_AdoptedSurvey())
        {
            strValue = (StringObjectImpl(pObject->getAdoptedSurvey())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"DisturbedMonument")
    {
        if (pObject->hasValue_DisturbedMonument())
        {
            strValue = (StringObjectImpl(pObject->getDisturbedMonument())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"DisturbedDate")
    {
        if (pObject->hasValue_DisturbedDate())
        {
            strValue = (StringObjectImpl(pObject->getDisturbedDate())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"DisturbedAnnotation")
    {
        if (pObject->hasValue_DisturbedAnnotation())
        {
            strValue = (StringObjectImpl(pObject->getDisturbedAnnotation())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"ReplacedMonument")
    {
        if (pObject->hasValue_ReplacedMonument())
        {
            strValue = (StringObjectImpl(pObject->getReplacedMonument())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"ReplacedDate")
    {
        if (pObject->hasValue_ReplacedDate())
        {
            strValue = (StringObjectImpl(pObject->getReplacedDate())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"ReplacedAnnotation")
    {
        if (pObject->hasValue_ReplacedAnnotation())
        {
            strValue = (StringObjectImpl(pObject->getReplacedAnnotation())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 21
0
bool CircPipeNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    CircPipe* pObject = dynamic_cast<CircPipe*>(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"Diameter")
    {
        if (pObject->hasValue_Diameter())
        {
            strValue = (DoubleObjectImpl(pObject->getDiameter())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Desc")
    {
        if (pObject->hasValue_Desc())
        {
            strValue = (StringObjectImpl(pObject->getDesc())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"HazenWilliams")
    {
        if (pObject->hasValue_HazenWilliams())
        {
            strValue = (DoubleObjectImpl(pObject->getHazenWilliams())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Mannings")
    {
        if (pObject->hasValue_Mannings())
        {
            strValue = (DoubleObjectImpl(pObject->getMannings())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Material")
    {
        if (pObject->hasValue_Material())
        {
            strValue = (StringObjectImpl(pObject->getMaterial())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Thickness")
    {
        if (pObject->hasValue_Thickness())
        {
            strValue = (DoubleObjectImpl(pObject->getThickness())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 22
0
bool ApplicationNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Application* pObject = dynamic_cast<Application*>(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"Manufacturer")
    {
        if (pObject->hasValue_Manufacturer())
        {
            strValue = (StringObjectImpl(pObject->getManufacturer())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Version")
    {
        if (pObject->hasValue_Version())
        {
            strValue = (StringObjectImpl(pObject->getVersion())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"ManufacturerURL")
    {
        if (pObject->hasValue_ManufacturerURL())
        {
            strValue = (StringObjectImpl(pObject->getManufacturerURL())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"TimeStamp")
    {
        if (pObject->hasValue_TimeStamp())
        {
            strValue = (StringObjectImpl(pObject->getTimeStamp())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 23
0
bool AddressPointNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    AddressPoint* pObject = dynamic_cast<AddressPoint*>(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"PntRef")
    {
        if (pObject->hasValue_PntRef())
        {
            strValue = (StringObjectImpl(pObject->getPntRef())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"FeatureRef")
    {
        if (pObject->hasValue_FeatureRef())
        {
            strValue = (StringObjectImpl(pObject->getFeatureRef())).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"DeterminedTimeStamp")
    {
        if (pObject->hasValue_DeterminedTimeStamp())
        {
            strValue = (StringObjectImpl(pObject->getDeterminedTimeStamp())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"EllipsoidHeight")
    {
        if (pObject->hasValue_EllipsoidHeight())
        {
            strValue = (DoubleObjectImpl(pObject->getEllipsoidHeight())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Latitude")
    {
        if (pObject->hasValue_Latitude())
        {
            strValue = (DoubleObjectImpl(pObject->getLatitude())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Longitude")
    {
        if (pObject->hasValue_Longitude())
        {
            strValue = (DoubleObjectImpl(pObject->getLongitude())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Zone")
    {
        if (pObject->hasValue_Zone())
        {
            strValue = (StringObjectImpl(pObject->getZone())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"NorthingStdError")
    {
        if (pObject->hasValue_NorthingStdError())
        {
            strValue = (DoubleObjectImpl(pObject->getNorthingStdError())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"EastingStdError")
    {
        if (pObject->hasValue_EastingStdError())
        {
            strValue = (DoubleObjectImpl(pObject->getEastingStdError())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"ElevationStdError")
    {
        if (pObject->hasValue_ElevationStdError())
        {
            strValue = (DoubleObjectImpl(pObject->getElevationStdError())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"AddressPointType")
    {
        if (pObject->hasValue_AddressPointType())
        {
            strValue = (StringObjectImpl(pObject->getAddressPointType())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 24
0
bool DataPointsNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    DataPoints* pObject = dynamic_cast<DataPoints*>(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"PntRef")
    {
        if (pObject->hasValue_PntRef())
        {
            strValue = (StringObjectImpl(pObject->getPntRef())).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;
        }
    }
    return bValueSet;
}
Exemplo n.º 25
0
bool ObservationGroupNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    ObservationGroup* pObject = dynamic_cast<ObservationGroup*>(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"Id")
    {
        if (pObject->hasValue_Id())
        {
            strValue = (StringObjectImpl(pObject->getId())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Purpose")
    {
        if (pObject->hasValue_Purpose())
        {
            strValue = (EnumPurposeTypeImpl(pObject->getPurpose())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SetupID")
    {
        if (pObject->hasValue_SetupID())
        {
            strValue = (StringObjectImpl(pObject->getSetupID())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"TargetSetupID")
    {
        if (pObject->hasValue_TargetSetupID())
        {
            strValue = (StringObjectImpl(pObject->getTargetSetupID())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SetID")
    {
        if (pObject->hasValue_SetID())
        {
            strValue = (StringObjectImpl(pObject->getSetID())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"CoordGeomRefs")
    {
        if (pObject->getCoordGeomRefs())
        {
            strValue = pObject->getCoordGeomRefs()->toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"AlignRef")
    {
        if (pObject->hasValue_AlignRef())
        {
            strValue = (StringObjectImpl(pObject->getAlignRef())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"AlignStationName")
    {
        if (pObject->hasValue_AlignStationName())
        {
            strValue = (StringObjectImpl(pObject->getAlignStationName())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"AlignOffset")
    {
        if (pObject->hasValue_AlignOffset())
        {
            strValue = (DoubleObjectImpl(pObject->getAlignOffset())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 26
0
bool RoadwayNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Roadway* pObject = dynamic_cast<Roadway*>(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"AlignmentRefs")
    {
        if (pObject->getAlignmentRefs())
        {
            strValue = pObject->getAlignmentRefs()->toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SurfaceRefs")
    {
        if (pObject->getSurfaceRefs())
        {
            strValue = pObject->getSurfaceRefs()->toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"GradeModelRefs")
    {
        if (pObject->getGradeModelRefs())
        {
            strValue = pObject->getGradeModelRefs()->toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaStart")
    {
        if (pObject->hasValue_StaStart())
        {
            strValue = (DoubleObjectImpl(pObject->getStaStart())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaEnd")
    {
        if (pObject->hasValue_StaEnd())
        {
            strValue = (DoubleObjectImpl(pObject->getStaEnd())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Desc")
    {
        if (pObject->hasValue_Desc())
        {
            strValue = (StringObjectImpl(pObject->getDesc())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"RoadTerrain")
    {
        if (pObject->hasValue_RoadTerrain())
        {
            strValue = (EnumRoadTerrainTypeImpl(pObject->getRoadTerrain())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"State")
    {
        if (pObject->hasValue_State())
        {
            strValue = (EnumStateTypeImpl(pObject->getState())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 27
0
bool GPSVectorNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    GPSVector* pObject = dynamic_cast<GPSVector*>(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"DX")
    {
        if (pObject->hasValue_DX())
        {
            strValue = (DoubleObjectImpl(pObject->getDX())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"DY")
    {
        if (pObject->hasValue_DY())
        {
            strValue = (DoubleObjectImpl(pObject->getDY())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"DZ")
    {
        if (pObject->hasValue_DZ())
        {
            strValue = (DoubleObjectImpl(pObject->getDZ())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SetupID_A")
    {
        if (pObject->hasValue_SetupID_A())
        {
            strValue = (StringObjectImpl(pObject->getSetupID_A())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SetupID_B")
    {
        if (pObject->hasValue_SetupID_B())
        {
            strValue = (StringObjectImpl(pObject->getSetupID_B())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StartTime")
    {
        if (pObject->hasValue_StartTime())
        {
            strValue = (StringObjectImpl(pObject->getStartTime())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"EndTime")
    {
        if (pObject->hasValue_EndTime())
        {
            strValue = (StringObjectImpl(pObject->getEndTime())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"HorizontalPrecision")
    {
        if (pObject->hasValue_HorizontalPrecision())
        {
            strValue = (DoubleObjectImpl(pObject->getHorizontalPrecision())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"VerticalPrecision")
    {
        if (pObject->hasValue_VerticalPrecision())
        {
            strValue = (DoubleObjectImpl(pObject->getVerticalPrecision())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Purpose")
    {
        if (pObject->hasValue_Purpose())
        {
            strValue = (EnumPurposeTypeImpl(pObject->getPurpose())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SetID")
    {
        if (pObject->hasValue_SetID())
        {
            strValue = (StringObjectImpl(pObject->getSetID())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SolutionDataLink")
    {
        if (pObject->hasValue_SolutionDataLink())
        {
            strValue = (StringObjectImpl(pObject->getSolutionDataLink())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"CoordGeomRefs")
    {
        if (pObject->getCoordGeomRefs())
        {
            strValue = pObject->getCoordGeomRefs()->toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 28
0
bool TurnLaneNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    TurnLane* pObject = dynamic_cast<TurnLane*>(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"StaStart")
    {
        if (pObject->hasValue_StaStart())
        {
            strValue = (DoubleObjectImpl(pObject->getStaStart())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"StaEnd")
    {
        if (pObject->hasValue_StaEnd())
        {
            strValue = (DoubleObjectImpl(pObject->getStaEnd())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"BeginFullWidthSta")
    {
        if (pObject->hasValue_BeginFullWidthSta())
        {
            strValue = (DoubleObjectImpl(pObject->getBeginFullWidthSta())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Width")
    {
        if (pObject->hasValue_Width())
        {
            strValue = (DoubleObjectImpl(pObject->getWidth())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"SideofRoad")
    {
        if (pObject->hasValue_SideofRoad())
        {
            strValue = (EnumSideofRoadTypeImpl(pObject->getSideofRoad())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Type")
    {
        if (pObject->hasValue_Type())
        {
            strValue = (EnumTurnLaneTypeImpl(pObject->getType())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"TaperType")
    {
        if (pObject->hasValue_TaperType())
        {
            strValue = (EnumLaneTaperTypeImpl(pObject->getTaperType())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"TaperTangentLength")
    {
        if (pObject->hasValue_TaperTangentLength())
        {
            strValue = (DoubleObjectImpl(pObject->getTaperTangentLength())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}
Exemplo n.º 29
0
bool BoundaryNode::getValue (const String& strMemberName, String& strValue)
{
    bool bValueSet = false;
    Boundary* pObject = dynamic_cast<Boundary*>(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"BndType")
    {
        if (pObject->hasValue_BndType())
        {
            strValue = (EnumSurfBndTypeImpl(pObject->getBndType())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"EdgeTrim")
    {
        if (pObject->hasValue_EdgeTrim())
        {
            strValue = (BooleanObjectImpl(pObject->getEdgeTrim())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Area")
    {
        if (pObject->hasValue_Area())
        {
            strValue = (DoubleObjectImpl(pObject->getArea())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Desc")
    {
        if (pObject->hasValue_Desc())
        {
            strValue = (StringObjectImpl(pObject->getDesc())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"Name")
    {
        if (pObject->hasValue_Name())
        {
            strValue = (StringObjectImpl(pObject->getName())).toString();
            bValueSet = true;
        }
    }
    else if (strMemberName == L"State")
    {
        if (pObject->hasValue_State())
        {
            strValue = (EnumStateTypeImpl(pObject->getState())).toString();
            bValueSet = true;
        }
    }
    return bValueSet;
}