Files
ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmFieldIoHelper.cpp

30 lines
914 B
C++
Raw Normal View History

#include "cafInternalPdmFieldIoHelper.h"
#include <QXmlStreamReader>
namespace caf
{
//--------------------------------------------------------------------------------------------------
2020-06-19 07:53:59 +02:00
///
//--------------------------------------------------------------------------------------------------
2020-06-19 07:53:59 +02:00
void PdmFieldIOHelper::skipCharactersAndComments( QXmlStreamReader& xmlStream )
{
while ( !xmlStream.atEnd() && ( xmlStream.isCharacters() || xmlStream.isComment() ) )
{
xmlStream.readNext();
}
}
//--------------------------------------------------------------------------------------------------
2020-06-19 07:53:59 +02:00
///
//--------------------------------------------------------------------------------------------------
2020-06-19 07:53:59 +02:00
void PdmFieldIOHelper::skipComments( QXmlStreamReader& xmlStream )
{
2020-06-19 07:53:59 +02:00
while ( !xmlStream.atEnd() && xmlStream.isComment() )
{
xmlStream.readNext();
}
}
} // End of namespace caf