OpenLexocad  27.0
GlobalAttachment.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Base/String.h>
4 #include <Base/base_defines.h>
5 
6 #include <map>
7 #include <string>
8 
9 namespace Base
10 {
12 {
13 public:
15  virtual ~GlobalAttachment(){};
16 
17  virtual bool hasID(const std::string& id) const
18  {
19  for (auto sub : m_subAttachments)
20  if (sub.second->hasID(id))
21  return true;
22  return false;
23  };
24 
25  std::map<Base::String, GlobalAttachment*> m_subAttachments;
26  // std::set<std::string> ids;
27 };
28 
29 } // namespace Base
GlobalAttachment()
Definition: GlobalAttachment.h:14
#define BASE_EXPORT
Definition: base_defines.h:12
virtual ~GlobalAttachment()
Definition: GlobalAttachment.h:15
virtual bool hasID(const std::string &id) const
Definition: GlobalAttachment.h:17
Definition: GlobalAttachment.h:11
Definition: AbstractXMLReader.h:8