SetStrAttrVal
Function Usage
Sets the attribute value of the string type for the operator.
Prototype
1 | bool SetStrAttrVal(const char *attr_name, const char *val) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
attr_name |
Input |
Attribute name. |
val |
Input |
String to be set. |
Returns
A value indicating whether the attribute is successfully set.
Constraints
None
Examples
1 2 3 4 5 6 | bool SetStrAttrVal(ExeResGenerationContext* context) { std::string attr_name = ""; std::string val = ""; bool result = context->SetStrAttrVal(attr_name.c_str(),val.c_str()); // ... } |
Parent topic: ExeResGenerationContext