diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-23 14:23:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-23 14:23:31 +0000 |
commit | 8e201d18a88d4cf4ca1163c32bdc2400c28ead8d (patch) | |
tree | b6da9d0a2d28c05b874f23c0ba7e389dc8fd7d7c /libs/pbd/pbd/epa.h | |
parent | 27ab352f5bd33072cd8e26441ed440ad155dbb64 (diff) |
a few more EPA tweaks (from 2.X)
git-svn-id: svn://localhost/ardour2/branches/3.0@8340 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/epa.h')
-rw-r--r-- | libs/pbd/pbd/epa.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/pbd/pbd/epa.h b/libs/pbd/pbd/epa.h index 39773313ec..b2708fbd4c 100644 --- a/libs/pbd/pbd/epa.h +++ b/libs/pbd/pbd/epa.h @@ -27,16 +27,18 @@ namespace PBD { class EnvironmentalProtectionAgency { public: - EnvironmentalProtectionAgency (); + EnvironmentalProtectionAgency (bool arm=true); ~EnvironmentalProtectionAgency (); - void restore (); + void arm (); void save (); + void restore () const; static EnvironmentalProtectionAgency* get_global_epa () { return _global_epa; } static void set_global_epa (EnvironmentalProtectionAgency* epa) { _global_epa = epa; } private: + bool _armed; std::map<std::string,std::string> e; static EnvironmentalProtectionAgency* _global_epa; }; |