OpenLexocad  27.1
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>
6 
11 namespace OpenLxApp
12 {
16 class LX_OPENLXAPP_EXPORT Importer
17 {
18 public:
19  Importer(std::shared_ptr<OpenLxApp::Document> aDoc);
20  Importer() = delete;
21  virtual int importFile(const Base::String& filename) = 0;
22  void setSilentMode(bool aFlag);
23  bool isInSilentMode() const;
24  virtual ~Importer();
25  virtual std::vector<std::shared_ptr<OpenLxApp::Element>> getImportedElems() const = 0;
26 
27  bool init();
28 
29 protected:
30  std::shared_ptr<OpenLxApp::Document> _doc;
31  bool _silentMode = false;
32 };
33 } // namespace OpenLxApp
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
Base class of all Importers.
Definition: Importer.h:16
std::shared_ptr< OpenLxApp::Document > _doc
Definition: Importer.h:30
Definition: ActiveScript.h:7
Core::PropertyText filename
Definition: CoreDocument.h:176