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