diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-01-07 16:25:57 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-01-07 16:25:57 +0000 |
commit | 603d07a80bb293cb7819e50397111674a96b142c (patch) | |
tree | 187719cf2027a205c6d7d7977839b18341c03471 /libs/pbd/pbd/epa.h | |
parent | 5bff882ce1f324dc54e7ec71a33923439f50f865 (diff) |
forward port EPA changes from 2.X
git-svn-id: svn://localhost/ardour2/branches/3.0@8473 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/epa.h')
-rw-r--r-- | libs/pbd/pbd/epa.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/libs/pbd/pbd/epa.h b/libs/pbd/pbd/epa.h index b2708fbd4c..ffcd78504a 100644 --- a/libs/pbd/pbd/epa.h +++ b/libs/pbd/pbd/epa.h @@ -27,20 +27,21 @@ namespace PBD { class EnvironmentalProtectionAgency { public: - EnvironmentalProtectionAgency (bool arm=true); - ~EnvironmentalProtectionAgency (); - - 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; } - + EnvironmentalProtectionAgency (bool arm = true, const std::string& envname = std::string()); + ~EnvironmentalProtectionAgency (); + + 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; + bool _armed; + std::string _envname; + std::map<std::string,std::string> e; + static EnvironmentalProtectionAgency* _global_epa; }; } |