20 #ifndef EXCHANGEPLUGIN_DUMP_H_
21 #define EXCHANGEPLUGIN_DUMP_H_
23 #include <ExchangePlugin.h>
25 #include <ModelAPI_Feature.h>
36 inline static const std::string&
ID()
38 static const std::string MY_DUMP_ID(
"Dump");
44 static const std::string MY_DUMP_DIR_ID(
"dump_dir");
45 return MY_DUMP_DIR_ID;
50 static const std::string MY_FILE_PATH_ID(
"file_path");
51 return MY_FILE_PATH_ID;
56 static const std::string MY_FILE_FORMAT_ID(
"file_format");
57 return MY_FILE_FORMAT_ID;
63 static const std::string MY_TOOPNAMING_DUMP_ID(
"topological_naming");
64 return MY_TOOPNAMING_DUMP_ID;
69 static const std::string MY_GEOM_DUMP_ID(
"geometric_selection");
70 return MY_GEOM_DUMP_ID;
76 static const std::string MY_WEAK_NAMING_DUMP_ID(
"weak_naming");
77 return MY_WEAK_NAMING_DUMP_ID;
83 static const std::string MY_EXPORT_VARIABLES_ID(
"export_variables");
84 return MY_EXPORT_VARIABLES_ID;
90 static const std::string MY_MULTIFILE_ID(
"is_multifile");
91 return MY_MULTIFILE_ID;
100 EXCHANGEPLUGIN_EXPORT
virtual const std::string&
getKind()
109 EXCHANGEPLUGIN_EXPORT
virtual void execute();
112 EXCHANGEPLUGIN_EXPORT
virtual bool isMacro()
const {
return true; }
119 EXCHANGEPLUGIN_EXPORT
void dump(
const std::string& theFileName);
Store full model as a Python script.
Definition: ExchangePlugin_Dump.h:33
virtual EXCHANGEPLUGIN_EXPORT void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: ExchangePlugin_Dump.cpp:62
static const std::string & WEAK_NAMING_DUMP_ID()
attribute name of dumping by using weak naming identifiers of selection
Definition: ExchangePlugin_Dump.h:74
virtual EXCHANGEPLUGIN_EXPORT bool isMacro() const
Reimplemented from ModelAPI_Feature::isMacro(). Returns true.
Definition: ExchangePlugin_Dump.h:112
virtual EXCHANGEPLUGIN_EXPORT bool isPreviewNeeded() const
Reimplemented from ModelAPI_Feature::isPreviewNeeded(). Returns false.
Definition: ExchangePlugin_Dump.h:115
EXCHANGEPLUGIN_EXPORT ExchangePlugin_Dump()
Default constructor.
Definition: ExchangePlugin_Dump.cpp:54
EXCHANGEPLUGIN_EXPORT void dump(const std::string &theFileName)
Performs dump to the file.
Definition: ExchangePlugin_Dump.cpp:97
static const std::string & MULTIFILE_ID()
attribute name for multifile dump
Definition: ExchangePlugin_Dump.h:88
virtual EXCHANGEPLUGIN_EXPORT void execute()
Computes or recomputes the results.
Definition: ExchangePlugin_Dump.cpp:86
static const std::string & EXPORT_VARIABLES_ID()
attribute name for boolean flag to export variable names correspondence to another module
Definition: ExchangePlugin_Dump.h:81
static const std::string & DUMP_DIR_ID()
attribute name of true dumping directory
Definition: ExchangePlugin_Dump.h:42
virtual EXCHANGEPLUGIN_EXPORT const std::string & getKind()
Returns the unique kind of a feature.
Definition: ExchangePlugin_Dump.h:100
static const std::string & ID()
Feature kind.
Definition: ExchangePlugin_Dump.h:36
static const std::string & GEOMETRIC_DUMP_ID()
attribute name of dumping by geometric selection
Definition: ExchangePlugin_Dump.h:67
static const std::string & FILE_PATH_ID()
attribute name of file path
Definition: ExchangePlugin_Dump.h:48
static const std::string & FILE_FORMAT_ID()
attribute name of file format
Definition: ExchangePlugin_Dump.h:54
virtual EXCHANGEPLUGIN_EXPORT ~ExchangePlugin_Dump()
Default destructor.
Definition: ExchangePlugin_Dump.cpp:58
static const std::string & TOPOLOGICAL_NAMING_DUMP_ID()
attribute name of dumping by topological naming
Definition: ExchangePlugin_Dump.h:61
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41