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);
46 /// Dump wrapped feature
48 virtual void dump(ModelHighAPI_Dumper& theDumper) const;
51 //! Pointer on Import object
52 typedef std::shared_ptr<ExchangeAPI_Import> ImportPtr;
54 /**\ingroup CPPHighAPI
55 * \brief Create Import feature
58 ImportPtr addImport(const std::shared_ptr<ModelAPI_Document> & thePart,
59 const std::string & theFilePath);
61 //--------------------------------------------------------------------------------------
62 //--------------------------------------------------------------------------------------
63 #endif /* SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_ */