------------------------------------------------------------------------------
| 108 | |
| 109 | //------------------------------------------------------------------------------ |
| 110 | void vtkAMREnzoReader::ParseLabel(const std::string& labelString, int& idx, std::string& label) |
| 111 | { |
| 112 | |
| 113 | std::vector<std::string> strings; |
| 114 | |
| 115 | std::istringstream iss(labelString); |
| 116 | std::string word; |
| 117 | while (iss >> word) |
| 118 | { |
| 119 | if (!vtksys::SystemTools::StringStartsWith(word.c_str(), "=")) |
| 120 | { |
| 121 | strings.push_back(word); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | idx = this->GetIndexFromArrayName(strings[0]); |
| 126 | label = strings[strings.size() - 1]; |
| 127 | } |
| 128 | |
| 129 | //------------------------------------------------------------------------------ |
| 130 | void vtkAMREnzoReader::ParseCFactor(const std::string& labelString, int& idx, double& factor) |
no test coverage detected