MCPcopy Create free account
hub / github.com/Kitware/VTK / SetInitialObjectStatus

Method SetInitialObjectStatus

IO/Exodus/vtkExodusIIReader.cxx:4931–4959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4929}
4930
4931void 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
4961const char* vtkExodusIIReaderPrivate::GetObjectArrayName(int otyp, int i)
4962{

Callers 1

SetObjectStatusMethod · 0.80

Calls 4

findMethod · 0.45
lengthMethod · 0.45
atMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected