OpenLexocad  27.0
Exporter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Base/String.h>
4 #include <OpenLxApp/Document.h>
6 
7 
11 namespace OpenLxApp
12 {
17 {
18 public:
19  Exporter(std::shared_ptr<OpenLxApp::Document> aDoc);
20  Exporter() = delete;
21  virtual int exportFile(const Base::String& filename) = 0;
22  void setSilentMode(bool aFlag);
23  bool isInSilentMode() const;
24  virtual ~Exporter();
25 
26 protected:
27  bool init();
28  std::shared_ptr<OpenLxApp::Document> _doc;
29  bool _silentMode = false;
30 };
31 } // namespace OpenLxApp
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:29
#define OPENLXAPP_EXPORT
Definition: OpenLxApp_defines.h:12
Definition: ActiveScript.h:9
Core::PropertyText filename
Definition: CoreDocument.h:151
Base class of all Exporters.
Definition: Exporter.h:16
std::shared_ptr< OpenLxApp::Document > _doc
Definition: Exporter.h:28