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