public:
static SauvReader* New(const char *fileName) throw(INTERP_KERNEL::Exception);
MEDFileData * loadInMEDFileDS() throw(INTERP_KERNEL::Exception);
+ %extend
+ {
+ SauvReader(const char *fileName) throw(INTERP_KERNEL::Exception)
+ {
+ return SauvReader::New(fileName);
+ }
+ }
};
class SauvWriter : public RefCountObject
void write(const char* fileName) throw(INTERP_KERNEL::Exception);
void setCpyGrpIfOnASingleFamilyStatus(bool status) throw(INTERP_KERNEL::Exception);
bool getCpyGrpIfOnASingleFamilyStatus() const throw(INTERP_KERNEL::Exception);
+ %extend
+ {
+ SauvWriter() throw(INTERP_KERNEL::Exception)
+ {
+ return SauvWriter::New();
+ }
+ }
};
///////////////
# read SAUV and write MED
medFile = "SauvLoaderTest.med"
- sr=SauvReader.New(sauvFile);
+ sr=SauvReader(sauvFile);
d2=sr.loadInMEDFileDS();
d2.write(medFile,0);
# write pointeMed to SAUV
sauvFile = "SauvLoaderTest.sauv"
- sw=SauvWriter.New();
+ sw=SauvWriter();
sw.setMEDFileDS(pointeMed);
sw.write(sauvFile);