@@ -232,8 +232,7 @@ void ToolsSplashParallel::convertToText()
232232 DomainCollector::DomDataClass ref_data_class = DomainCollector::UndefinedType;
233233 try
234234 {
235- dc.readAttribute (m_options.step , m_options.data [0 ].c_str (), DOMCOL_ATTR_CLASS,
236- &ref_data_class, nullptr );
235+ dc.readAttributeInfo (m_options.step , m_options.data [0 ].c_str (), DOMCOL_ATTR_CLASS).read (&ref_data_class, sizeof (ref_data_class));
237236 } catch (const DCException&)
238237 {
239238 errorStream << " Error: No domain information for dataset '" << m_options.data [0 ] << " ' available." << std::endl;
@@ -265,8 +264,7 @@ void ToolsSplashParallel::convertToText()
265264 //
266265
267266 DomainCollector::DomDataClass data_class = DomainCollector::UndefinedType;
268- dc.readAttribute (m_options.step , iter->c_str (), DOMCOL_ATTR_CLASS,
269- &data_class, nullptr );
267+ dc.readAttributeInfo (m_options.step , iter->c_str (), DOMCOL_ATTR_CLASS).read (&data_class, sizeof (data_class));
270268 if (data_class != ref_data_class)
271269 throw std::runtime_error (" All requested datasets must be of the same data class" );
272270
@@ -311,8 +309,7 @@ void ToolsSplashParallel::convertToText()
311309 {
312310 try
313311 {
314- dc.readAttribute (m_options.step , iter->c_str (), " unitSI" ,
315- &(excontainer.unit ), nullptr );
312+ dc.readAttribute (m_options.step , iter->c_str (), " unitSI" ).read (&(excontainer.unit ), sizeof (excontainer.unit ));
316313 } catch (const DCException&)
317314 {
318315 if (m_options.verbose )
0 commit comments