Salome HOME
d70a033a926acb982f9a0039908266f6d908398f
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IImportExport.hxx
1 //NOTE: This is an intreface to a function for the Import Export operation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define EXP_ARG_REF  1
7 #define EXP_ARG_FILE 2
8 #define EXP_ARG_PLUG 3
9
10 class GEOMImpl_IImportExport
11 {
12  public:
13
14   GEOMImpl_IImportExport(Handle(GEOM_Function) theFunction): _func(theFunction) {}
15
16   void SetOriginal(Handle(GEOM_Function) theOriginal) { _func->SetReference(EXP_ARG_REF, theOriginal); }
17
18   Handle(GEOM_Function) GetOriginal() { return _func->GetReference(EXP_ARG_REF); }
19
20   void SetFileName(const TCollection_AsciiString& theFileName) { _func->SetString(EXP_ARG_FILE, theFileName); }
21
22   TCollection_AsciiString GetFileName() { return _func->GetString(EXP_ARG_FILE); }
23
24   void SetPluginName(const TCollection_AsciiString& theFormatName)
25   { _func->SetString(EXP_ARG_PLUG, theFormatName); }
26
27   TCollection_AsciiString GetPluginName() { return _func->GetString(EXP_ARG_PLUG); }
28
29  private:
30
31   Handle(GEOM_Function) _func;
32 };