| 4929 | } |
| 4930 | |
| 4931 | void vtkExodusIIReaderPrivate::SetInitialObjectStatus( |
| 4932 | int objectType, const char* objName, int status) |
| 4933 | { |
| 4934 | ObjectInfoType info; |
| 4935 | std::string nm = objName; |
| 4936 | size_t idx = 0; |
| 4937 | int idlen = 0; |
| 4938 | int id = -1; |
| 4939 | |
| 4940 | // When no name is found for an object, it is given one of a certain format. |
| 4941 | // Parse the id out of that string and use it to identify the object later. |
| 4942 | if ((idx = nm.find("ID: ")) != std::string::npos) |
| 4943 | { |
| 4944 | idx += 4; |
| 4945 | idlen = 0; |
| 4946 | while (idx + idlen < nm.length() && nm.at(idx + idlen) != ' ') |
| 4947 | { |
| 4948 | idlen++; |
| 4949 | } |
| 4950 | VTK_FROM_CHARS_IF_ERROR_BREAK(nm.substr(idx, idlen), id); |
| 4951 | } |
| 4952 | else |
| 4953 | { |
| 4954 | info.Name = objName; |
| 4955 | } |
| 4956 | info.Id = id; |
| 4957 | info.Status = status; |
| 4958 | this->InitialObjectInfo[objectType].push_back(info); |
| 4959 | } |
| 4960 | |
| 4961 | const char* vtkExodusIIReaderPrivate::GetObjectArrayName(int otyp, int i) |
| 4962 | { |
no test coverage detected