| 147 | bool m_auto; |
| 148 | |
| 149 | bool set(const std::string& sval) |
| 150 | { |
| 151 | if (sval == "auto") |
| 152 | m_auto = true; |
| 153 | else |
| 154 | { |
| 155 | bool failed = false; |
| 156 | try |
| 157 | { |
| 158 | failed = !Utils::fromString(sval, m_val); |
| 159 | } |
| 160 | catch (...) |
| 161 | { |
| 162 | failed = true; |
| 163 | } |
| 164 | if (failed) |
| 165 | { |
| 166 | m_val = 0; |
| 167 | return false; |
| 168 | } |
| 169 | } |
| 170 | return true; |
| 171 | } |
| 172 | |
| 173 | friend std::istream& operator>>(std::istream& in, XFormComponent& xfc); |
| 174 | friend std::ostream& operator<<(std::ostream& in, |
no test coverage detected