00001 00002 // MemReleaserGlobalVariables.h // 00004 00005 #ifndef MEMRELEASERGLOBALVARIABLES_H 00006 #define MEMRELEASERGLOBALVARIABLES_H 00007 00008 #include "GlobalVariables.h" 00009 00010 namespace X3DTK { 00011 00013 00014 class MemReleaserGlobalVariables : public GlobalVariables 00015 { 00016 public: 00018 MemReleaserGlobalVariables(); 00020 virtual ~MemReleaserGlobalVariables(); 00021 00023 void pushParent(SFNode P); 00025 void popParent(); 00027 void setDelete(bool value); 00028 00030 SFNode getParent() const {return _nodeStack.front();}; 00032 bool getDelete() const {return _toDelete;}; 00033 00034 private: 00035 MFNode _nodeStack; 00036 bool _toDelete; 00037 }; 00038 00039 } 00040 00041 #endif