################################################################### */
| 1197 | }; |
| 1198 | /* ################################################################### */ |
| 1199 | void OptionGroup::getMultiInts(std::vector< std::vector<int> >& out) { |
| 1200 | if (!isSet) { |
| 1201 | if (!defaults.empty()) { |
| 1202 | std::vector< std::string > strings; |
| 1203 | SplitDelim(defaults, delim, strings); |
| 1204 | if (out.size() < 1) out.resize(1); |
| 1205 | StringsToInts(strings, out[0]); |
| 1206 | } |
| 1207 | } else { |
| 1208 | if (!args.empty()) { |
| 1209 | int n = args.size(); |
| 1210 | if ((long int)out.size() < n) out.resize(n); |
| 1211 | for(int i=0; i < n; ++i) { |
| 1212 | StringsToInts(args[i], &out[i]); |
| 1213 | } |
| 1214 | } |
| 1215 | } |
| 1216 | }; |
| 1217 | /* ################################################################### */ |
| 1218 | void OptionGroup::getMultiLongs(std::vector< std::vector<long> >& out) { |
| 1219 | if (!isSet) { |
nothing calls this directly
no test coverage detected