1 // Name : ExchangeAPI_Import.h
5 // 07/06/16 - Sergey POKHODENKO - Creation of the file
7 #ifndef SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_
8 #define SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_
10 //--------------------------------------------------------------------------------------
11 #include "ExchangeAPI.h"
15 #include <ExchangePlugin_ImportFeature.h>
17 #include <ModelHighAPI_Interface.h>
18 #include <ModelHighAPI_Macro.h>
19 //--------------------------------------------------------------------------------------
20 /**\class ExchangeAPI_Import
22 * \brief Interface for Import feature
24 class ExchangeAPI_Import : public ModelHighAPI_Interface
27 /// Constructor without values
29 explicit ExchangeAPI_Import(const std::shared_ptr<ModelAPI_Feature> & theFeature);
30 /// Constructor with values
32 ExchangeAPI_Import(const std::shared_ptr<ModelAPI_Feature> & theFeature,
33 const std::string & theFilePath);
36 virtual ~ExchangeAPI_Import();
38 INTERFACE_1(ExchangePlugin_ImportFeature::ID(),
39 filePath, ExchangePlugin_ImportFeature::FILE_PATH_ID(), ModelAPI_AttributeString, /** File path */
44 void setFilePath(const std::string & theFilePath);
47 //! Pointer on Import object
48 typedef std::shared_ptr<ExchangeAPI_Import> ImportPtr;
50 /**\ingroup CPPHighAPI
51 * \brief Create Import feature
54 ImportPtr addImport(const std::shared_ptr<ModelAPI_Document> & thePart,
55 const std::string & theFilePath);
57 //--------------------------------------------------------------------------------------
58 //--------------------------------------------------------------------------------------
59 #endif /* SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_ */