| 3823 | } |
| 3824 | |
| 3825 | bool vtkFoamEntryValue::ReadField(vtkFoamIOobject& io) |
| 3826 | { |
| 3827 | this->SetStreamOption(io); |
| 3828 | |
| 3829 | // Basic field types: "boolField", "labelField", "scalarField" ... |
| 3830 | vtkFoamTypes::dataType listDataType(vtkFoamTypes::FieldToEnum(io.GetClassName())); |
| 3831 | |
| 3832 | try |
| 3833 | { |
| 3834 | if (vtkFoamTypes::IsGood(listDataType)) |
| 3835 | { |
| 3836 | this->ReadNonUniformList(io, listDataType); |
| 3837 | } |
| 3838 | else |
| 3839 | { |
| 3840 | throw vtkFoamError() << "Unsupported field type " << io.GetClassName(); |
| 3841 | } |
| 3842 | } |
| 3843 | catch (const vtkFoamError& err) |
| 3844 | { |
| 3845 | io.SetError(err); |
| 3846 | return false; |
| 3847 | } |
| 3848 | return true; |
| 3849 | } |
| 3850 | |
| 3851 | // Read a list of labelLists. requires size prefix of the listList |
| 3852 | // to be present. size of each sublist must also be present in the |
no test coverage detected