OpenLexocad  28.0
GlobalSave.h
Go to the documentation of this file.
1 #pragma once
2 #include <string>
3 #include <map>
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
Base::GlobalSave::GlobalSave
GlobalSave()
Definition: GlobalSave.h:10
Base::GlobalSave::mySave
std::map< std::string, GlobalSave * > mySave
Definition: GlobalSave.h:25
Base::GlobalSave
Definition: GlobalSave.h:8
Base::GlobalSave::getNameForID
virtual const char * getNameForID()
Definition: GlobalSave.h:23
Base::GlobalSave::getName
virtual const char * getName()
Definition: GlobalSave.h:22
Base::GlobalSave::save
virtual bool save(FILE *f)
Definition: GlobalSave.h:12
Base
Definition: AbstractXMLReader.h:5