5.6.2. Parameter access functions

Refer to component parameters by forming a dot (.) separated string that combines:

For example:

MySubComponentA.MyParam

set_parameter()

Use this function to get parameters from components present in the Fast Models system. The formats are:

bool set_parameter(const std::string & name, const std::string & value)
bool set_parameter(const std::string & name, const char * value)
bool set_parameter(const std::string & name, bool value)
bool set_parameter(const std::string & name, int value)
bool set_parameter(const std::string & name, unsigned int value)
bool set_parameter(const std::string & name, long long value)
bool set_parameter(const std::string & name, unsigned long long value)

where:

name

specifies the name of the parameter to be changed.

value

specifies the value of the parameter to be changed.

The function returns false if the parameter is unknown, otherwise it returns true.

Note

Changes made to parameters within System Canvas take precedence over changes made with set_parameter().

get_parameter_list()

Use this function to get a list of all parameters from components present in the Fast Models system. The format is:

std::map<std::string, std::string> get_parameter_list() const
Copyright © 2007-2010 ARM Limited. All rights reserved.ARM DUI 0370K
Non-ConfidentialID110210