namespace SauvUtilities
{
class FileReader;
- class IntermediateMED;
- class Group;
- class DoubleField;
+ struct IntermediateMED;
+ struct Group;
+ struct DoubleField;
}
namespace ParaMEDMEM
{
class MEDFileData;
-class MEDLOADER_EXPORT SauvReader : public ParaMEDMEM::RefCountObject
+class SauvReader : public ParaMEDMEM::RefCountObject
{
public:
- static SauvReader* New(const char *fileName) throw(INTERP_KERNEL::Exception);
- ParaMEDMEM::MEDFileData * loadInMEDFileDS() throw(INTERP_KERNEL::Exception);
- ~SauvReader();
+ MEDLOADER_EXPORT static SauvReader* New(const std::string& fileName);
+ MEDLOADER_EXPORT ParaMEDMEM::MEDFileData * loadInMEDFileDS();
+ MEDLOADER_EXPORT ~SauvReader();
private:
std::size_t getHeapMemorySizeWithoutChildren() const;
- std::vector<RefCountObject *> getDirectChildren() const;
+ std::vector<const BigMemoryObject *> getDirectChildren() const;
void readRecord2();
void readRecord4();
void readRecord7();
void read_PILE_MODL (const int nbObjects, std::vector<std::string>& objectNames, std::vector<int>& nameIndices);
void read_PILE_FIELD (const int nbObjects, std::vector<std::string>& objectNames, std::vector<int>& nameIndices);
- SauvUtilities::Group* getFieldSupport(const std::vector<SauvUtilities::Group*>& fieldSupports);
+ void setFieldSupport(const std::vector<SauvUtilities::Group*>& supports,
+ SauvUtilities::DoubleField* field);
void setFieldNames(const std::vector<SauvUtilities::DoubleField*>& fields,
const std::vector<std::string>& objectNames,
const std::vector<int>& nameIndices);