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

Method SetLanguage

IO/Parallel/vtkPlot3DMetaReader.cxx:134–152  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

132
133//------------------------------------------------------------------------------
134void vtkPlot3DMetaReader::SetLanguage(Json::Value* val)
135{
136 std::string value = val->asString();
137 if (value == "fortran")
138 {
139 this->Reader->HasByteCountOn();
140 }
141 else if (value == "C")
142 {
143 this->Reader->HasByteCountOff();
144 }
145 else
146 {
147 vtkErrorMacro("Unrecognized language: " << value
148 << ". Valid options are \"fortran\" and \"C\"."
149 " Setting to little fortran");
150 this->Reader->HasByteCountOn();
151 }
152}
153
154//------------------------------------------------------------------------------
155void vtkPlot3DMetaReader::SetPrecision(Json::Value* val)

Callers

nothing calls this directly

Calls 1

asStringMethod · 0.80

Tested by

no test coverage detected