Gems/EMotionFX/Code/MCore/Source/CommandLine.cpp
void CommandLine::GetValue(const char* paramName, Command* command, AZStd::string* outResult) const
    {
        // try to find the parameter index
        const size_t paramIndex = FindParameterIndex(paramName);
        if (paramIndex == InvalidIndex)
        {
            command->GetOriginalCommand()->GetSyntax().GetDefaultValue(paramName, *outResult);
            return;
        }

        // return the parameter value
        *outResult = m_parameters[paramIndex].m_value;
    }
// get the value of a given param
get the value of a given param
get the value of a given param
void CommandLine::GetValue(const char* paramName, Command* command, AZStd::string* outResult) const
    {
        const size_t paramIndex = FindParameterIndex(paramName);
        if (paramIndex == InvalidIndex)
        {
            command->GetOriginalCommand()->GetSyntax().GetDefaultValue(paramName, *outResult);
            return;
        }
        *outResult = m_parameters[paramIndex].m_value;
    }
void CommandLine :: GetValue ( const char * paramName , Command * command , AZStd :: string * outResult ) const { const size_t paramIndex = FindParameterIndex ( paramName ) ; if ( paramIndex == InvalidIndex ) { command -> GetOriginalCommand ( ) -> GetSyntax ( ) . GetDefaultValue ( paramName , * outResult ) ; return ; } * outResult = m_parameters [ paramIndex ] . m_value ; }
get the value of a given param
get the value of a given param
// try to find the parameter index // return the parameter value