OpenLexocad  27.1
GlobalSave.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 namespace Base
6 {
7 class LX_BASE_EXPORT GlobalSave
8 {
9 public:
11 
12  virtual bool save(FILE* f)
13  {
14  for (auto it = mySave.begin(); it != mySave.end(); ++it)
15  {
16  if (!it->second->save(f))
17  return false;
18  }
19  return true;
20  };
21 
22  virtual const char* getName() { return ""; };
23  virtual const char* getNameForID() { return ""; }
24 
25  std::map<std::string, GlobalSave*> mySave;
26 };
27 
28 } // namespace Base
GlobalSave()
Definition: GlobalSave.h:10
virtual bool save(FILE *f)
Definition: GlobalSave.h:12
Definition: GlobalSave.h:7
virtual const char * getNameForID()
Definition: GlobalSave.h:23
std::map< std::string, GlobalSave * > mySave
Definition: GlobalSave.h:25
Definition: AbstractXMLReader.h:5
virtual const char * getName()
Definition: GlobalSave.h:22