-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2013 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
*/
//================================================================================
-SauvReader* SauvReader::New(const char *fileName) throw(INTERP_KERNEL::Exception)
+SauvReader* SauvReader::New(const char *fileName)
{
if ( !fileName || strlen(fileName) < 1 ) THROW_IK_EXCEPTION("Invalid file name");
if ( parser->open() )
{
SauvReader* reader = new SauvReader;
- reader->_fileReader = parser;
- parser->incrRef();
+ reader->_fileReader = parser.retn();
return reader;
}
if ( parser->open() )
{
SauvReader* reader = new SauvReader;
- reader->_fileReader = parser;
- parser->incrRef();
+ reader->_fileReader = parser.retn();
return reader;
}
_fileReader->decrRef();
}
+std::size_t SauvReader::getHeapMemorySizeWithoutChildren() const
+{
+ return 0;
+}
+
+std::vector<const BigMemoryObject *> SauvReader::getDirectChildren() const
+{
+ return std::vector<const BigMemoryObject *>();
+}
+
//================================================================================
/*!
* \brief Return current line of ASCII file to report an error
*/
//================================================================================
-ParaMEDMEM::MEDFileData * SauvReader::loadInMEDFileDS() throw(INTERP_KERNEL::Exception)
+ParaMEDMEM::MEDFileData * SauvReader::loadInMEDFileDS()
{
SauvUtilities::IntermediateMED iMed; // intermadiate DS
_iMed = &iMed;
fdouble->_group = getFieldSupport( supports );
else
for ( i_sub = 0; i_sub < nb_sub; ++i_sub )
- fdouble->_sub[ i_sub ]._support->_isProfile;
+ fdouble->_sub[ i_sub ]._support->_isProfile = true;
} // end loop on field objects