- int copyTinyInfoFrom(const MEDCouplingFieldDouble *field) throw(INTERP_KERNEL::Exception);
- int getDimension() const;
- int getIteration() const;
- int getOrder() const;
- double getTime(int& iteration, int& order) const;
- void setTime(int iteration, int order, double val);
- std::string getName() const;
- void setName(const char *name);
- void simpleRepr(int bkOffset, std::ostream& oss, int f1tsId) const;
- const std::string& getDtUnit() const;
- std::string getMeshName() const throw(INTERP_KERNEL::Exception);
- void setMeshName(const char *newMeshName) throw(INTERP_KERNEL::Exception);
- bool changeMeshNames(const std::vector< std::pair<std::string,std::string> >& modifTab) throw(INTERP_KERNEL::Exception);
- int getMeshIteration() const throw(INTERP_KERNEL::Exception);
- int getMeshOrder() const throw(INTERP_KERNEL::Exception);
- int getNumberOfComponents() const;
- bool isDealingTS(int iteration, int order) const;
- std::pair<int,int> getDtIt() const;
- void fillIteration(std::pair<int,int>& p) const;
- void fillTypesOfFieldAvailable(std::vector<TypeOfField>& types) const throw(INTERP_KERNEL::Exception);
- const std::vector<std::string>& getInfo() const;
- std::vector<std::string>& getInfo();
- DataArrayDouble *getUndergroundDataArray() const throw(INTERP_KERNEL::Exception);
- DataArrayDouble *getUndergroundDataArrayExt(std::vector< std::pair<std::pair<INTERP_KERNEL::NormalizedCellType,int>,std::pair<int,int> > >& entries) const throw(INTERP_KERNEL::Exception);
- MEDFileFieldPerMeshPerTypePerDisc *getLeafGivenMeshAndTypeAndLocId(const char *mName, INTERP_KERNEL::NormalizedCellType typ, int locId) throw(INTERP_KERNEL::Exception);
- const MEDFileFieldPerMeshPerTypePerDisc *getLeafGivenMeshAndTypeAndLocId(const char *mName, INTERP_KERNEL::NormalizedCellType typ, int locId) const throw(INTERP_KERNEL::Exception);
- int getNonEmptyLevels(const char *mname, std::vector<int>& levs) const throw(INTERP_KERNEL::Exception);
- std::vector<TypeOfField> getTypesOfFieldAvailable() const throw(INTERP_KERNEL::Exception);
- std::vector< std::vector<std::pair<int,int> > > getFieldSplitedByType(const char *mname, std::vector<INTERP_KERNEL::NormalizedCellType>& types, std::vector< std::vector<TypeOfField> >& typesF,
+ MEDLOADER_EXPORT MEDFileField1TSWithoutSDA();
+ MEDLOADER_EXPORT MEDFileField1TSWithoutSDA(const std::string& fieldName, int csit, int iteration, int order, const std::vector<std::string>& infos);
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TSWithoutSDA *shallowCpy() const;
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TSWithoutSDA *deepCpy() const;
+ MEDLOADER_EXPORT void setArray(DataArray *arr);
+ MEDLOADER_EXPORT DataArray *createNewEmptyDataArrayInstance() const;
+ MEDLOADER_EXPORT DataArray *getOrCreateAndGetArray();
+ MEDLOADER_EXPORT const DataArray *getOrCreateAndGetArray() const;
+ MEDLOADER_EXPORT DataArrayDouble *getOrCreateAndGetArrayDouble();
+ MEDLOADER_EXPORT const DataArrayDouble *getOrCreateAndGetArrayDouble() const;
+ MEDLOADER_EXPORT MEDFileIntField1TSWithoutSDA *convertToInt() const;
+ protected:
+ MEDCouplingAutoRefCountObjectPtr< DataArrayDouble > _arr;
+ public:
+ static const char TYPE_STR[];
+ };
+
+ /*!
+ * SDA is for Shared Data Arrays such as profiles.
+ */
+ class MEDFileIntField1TSWithoutSDA : public MEDFileAnyTypeField1TSWithoutSDA
+ {
+ public:
+ MEDLOADER_EXPORT MEDFileIntField1TSWithoutSDA();
+ MEDLOADER_EXPORT static MEDFileIntField1TSWithoutSDA *New(const std::string& fieldName, int csit, int iteration, int order, const std::vector<std::string>& infos);
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TSWithoutSDA *deepCpy() const;
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TSWithoutSDA *shallowCpy() const;
+ MEDLOADER_EXPORT const char *getTypeStr() const;
+ MEDLOADER_EXPORT DataArray *getUndergroundDataArray() const;
+ MEDLOADER_EXPORT DataArray *getUndergroundDataArrayExt(std::vector< std::pair<std::pair<INTERP_KERNEL::NormalizedCellType,int>,std::pair<int,int> > >& entries) const;
+ MEDLOADER_EXPORT void setArray(DataArray *arr);
+ MEDLOADER_EXPORT DataArray *createNewEmptyDataArrayInstance() const;
+ MEDLOADER_EXPORT DataArray *getOrCreateAndGetArray();
+ MEDLOADER_EXPORT const DataArray *getOrCreateAndGetArray() const;
+ MEDLOADER_EXPORT DataArrayInt *getOrCreateAndGetArrayInt();
+ MEDLOADER_EXPORT const DataArrayInt *getOrCreateAndGetArrayInt() const;
+ MEDLOADER_EXPORT DataArrayInt *getUndergroundDataArrayInt() const;
+ MEDLOADER_EXPORT DataArrayInt *getUndergroundDataArrayIntExt(std::vector< std::pair<std::pair<INTERP_KERNEL::NormalizedCellType,int>,std::pair<int,int> > >& entries) const;
+ MEDLOADER_EXPORT MEDFileField1TSWithoutSDA *convertToDouble() const;
+ protected:
+ MEDFileIntField1TSWithoutSDA(const std::string& fieldName, int csit, int iteration, int order, const std::vector<std::string>& infos);
+ protected:
+ MEDCouplingAutoRefCountObjectPtr< DataArrayInt > _arr;
+ public:
+ MEDLOADER_EXPORT static const char TYPE_STR[];
+ };
+
+ /*!
+ * User class.
+ */
+ class MEDFileAnyTypeField1TS : public RefCountObject, public MEDFileWritable, public MEDFileFieldGlobsReal
+ {
+ protected:
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TS();
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TS(const std::string& fileName, bool loadAll);
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TS(const std::string& fileName, const std::string& fieldName, bool loadAll);
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TS(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll);
+ MEDLOADER_EXPORT MEDFileAnyTypeField1TS(const MEDFileAnyTypeField1TSWithoutSDA& other, bool shallowCopyOfContent);
+ MEDLOADER_EXPORT static MEDFileAnyTypeField1TS *BuildNewInstanceFromContent(MEDFileAnyTypeField1TSWithoutSDA *c, const std::string& fileName);
+ MEDLOADER_EXPORT static MEDFileAnyTypeField1TSWithoutSDA *BuildContentFrom(med_idt fid, const std::string& fileName, bool loadAll);
+ MEDLOADER_EXPORT static MEDFileAnyTypeField1TSWithoutSDA *BuildContentFrom(med_idt fid, const std::string& fileName, const std::string& fieldName, bool loadAll);
+ MEDLOADER_EXPORT static MEDFileAnyTypeField1TSWithoutSDA *BuildContentFrom(med_idt fid, const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll);
+ MEDLOADER_EXPORT void writeLL(med_idt fid) const;
+ // direct forwarding to MEDFileAnyTypeField1TSWithoutSDA instance _content
+ public:
+ MEDLOADER_EXPORT static MEDFileAnyTypeField1TS *New(const std::string& fileName, bool loadAll=true);
+ MEDLOADER_EXPORT static MEDFileAnyTypeField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true);
+ MEDLOADER_EXPORT static MEDFileAnyTypeField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true);
+ MEDLOADER_EXPORT int getDimension() const;
+ MEDLOADER_EXPORT int getIteration() const;
+ MEDLOADER_EXPORT int getOrder() const;
+ MEDLOADER_EXPORT double getTime(int& iteration, int& order) const;
+ MEDLOADER_EXPORT void setTime(int iteration, int order, double val);
+ MEDLOADER_EXPORT std::string getName() const;
+ MEDLOADER_EXPORT void setName(const std::string& name);
+ MEDLOADER_EXPORT std::string simpleRepr() const;
+ MEDLOADER_EXPORT void simpleRepr(int bkOffset, std::ostream& oss, int f1tsId) const;
+ MEDLOADER_EXPORT std::string getDtUnit() const;
+ MEDLOADER_EXPORT void setDtUnit(const std::string& dtUnit);
+ MEDLOADER_EXPORT std::string getMeshName() const;
+ MEDLOADER_EXPORT void setMeshName(const std::string& newMeshName);
+ MEDLOADER_EXPORT bool changeMeshNames(const std::vector< std::pair<std::string,std::string> >& modifTab);
+ MEDLOADER_EXPORT int getMeshIteration() const;
+ MEDLOADER_EXPORT int getMeshOrder() const;
+ MEDLOADER_EXPORT int getNumberOfComponents() const;
+ MEDLOADER_EXPORT bool isDealingTS(int iteration, int order) const;
+ MEDLOADER_EXPORT std::pair<int,int> getDtIt() const;
+ MEDLOADER_EXPORT void fillIteration(std::pair<int,int>& p) const;
+ MEDLOADER_EXPORT void fillTypesOfFieldAvailable(std::vector<TypeOfField>& types) const;
+ MEDLOADER_EXPORT void setInfo(const std::vector<std::string>& infos);
+ MEDLOADER_EXPORT const std::vector<std::string>& getInfo() const;
+ MEDLOADER_EXPORT std::vector<std::string>& getInfo();
+ MEDLOADER_EXPORT std::vector<TypeOfField> getTypesOfFieldAvailable() const;
+ MEDLOADER_EXPORT std::vector< std::vector<std::pair<int,int> > > getFieldSplitedByType(const std::string& mname, std::vector<INTERP_KERNEL::NormalizedCellType>& types, std::vector< std::vector<TypeOfField> >& typesF,