Getter for the value.
| 133 | |
| 134 | // Getter for the value. |
| 135 | STRING ParamContent::GetValue() const { |
| 136 | STRING result; |
| 137 | if (param_type_ == VT_INTEGER) { |
| 138 | result.add_str_int("", *iIt); |
| 139 | } else if (param_type_ == VT_BOOLEAN) { |
| 140 | result.add_str_int("", *bIt); |
| 141 | } else if (param_type_ == VT_DOUBLE) { |
| 142 | result.add_str_double("", *dIt); |
| 143 | } else if (param_type_ == VT_STRING) { |
| 144 | if (((STRING) * (sIt)).string() != NULL) { |
| 145 | result = sIt->string(); |
| 146 | } else { |
| 147 | result = "Null"; |
| 148 | } |
| 149 | } |
| 150 | return result; |
| 151 | } |
| 152 | |
| 153 | // Setter for the value. |
| 154 | void ParamContent::SetValue(const char* val) { |
no test coverage detected