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