1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // Name : ExchangeAPI_Import.h
7 // 07/06/16 - Sergey POKHODENKO - Creation of the file
9 #ifndef SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_
10 #define SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_
12 //--------------------------------------------------------------------------------------
13 #include "ExchangeAPI.h"
17 #include <ExchangePlugin_ImportFeature.h>
19 #include <ModelHighAPI_Interface.h>
20 #include <ModelHighAPI_Macro.h>
21 //--------------------------------------------------------------------------------------
22 /**\class ExchangeAPI_Import
24 * \brief Interface for Import feature
26 class ExchangeAPI_Import : public ModelHighAPI_Interface
29 /// Constructor without values
31 explicit ExchangeAPI_Import(const std::shared_ptr<ModelAPI_Feature> & theFeature);
32 /// Constructor with values
34 ExchangeAPI_Import(const std::shared_ptr<ModelAPI_Feature> & theFeature,
35 const std::string & theFilePath);
38 virtual ~ExchangeAPI_Import();
40 INTERFACE_1(ExchangePlugin_ImportFeature::ID(),
41 filePath, ExchangePlugin_ImportFeature::FILE_PATH_ID(),
42 ModelAPI_AttributeString, /** File path */
47 void setFilePath(const std::string & theFilePath);
49 /// Dump wrapped feature
51 virtual void dump(ModelHighAPI_Dumper& theDumper) const;
54 //! Pointer on Import object
55 typedef std::shared_ptr<ExchangeAPI_Import> ImportPtr;
57 /**\ingroup CPPHighAPI
58 * \brief Create Import feature
61 ImportPtr addImport(const std::shared_ptr<ModelAPI_Document> & thePart,
62 const std::string & theFilePath);
64 //--------------------------------------------------------------------------------------
65 //--------------------------------------------------------------------------------------
66 #endif /* SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_ */