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