| 442 | } |
| 443 | |
| 444 | bool cmVisualStudioSlnParser::ParseFile(std::string const& file, |
| 445 | cmSlnData& output, |
| 446 | DataGroupSet dataGroups) |
| 447 | { |
| 448 | this->LastResult.Clear(); |
| 449 | if (!this->IsDataGroupSetSupported(dataGroups)) { |
| 450 | this->LastResult.SetError(ResultErrorUnsupportedDataGroup, 0); |
| 451 | return false; |
| 452 | } |
| 453 | cmsys::ifstream f(file.c_str()); |
| 454 | if (!f) { |
| 455 | this->LastResult.SetError(ResultErrorOpeningInput, 0); |
| 456 | return false; |
| 457 | } |
| 458 | State state(dataGroups); |
| 459 | return this->ParseImpl(f, output, state); |
| 460 | } |
| 461 | |
| 462 | cmVisualStudioSlnParser::ParseResult cmVisualStudioSlnParser::GetParseResult() |
| 463 | const |
nothing calls this directly
no test coverage detected