diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-28 21:36:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-28 21:36:40 +0000 |
commit | c4ac43749048c4c0e0ab3656d39384112a628742 (patch) | |
tree | 72d3452034c1a0a661587611a63d00509684ca27 /libs/ardour/configuration.cc | |
parent | ee4493301a8247fb8032dd949f4c44cd4c641221 (diff) |
* libardour uses ARDOUR::nframes_t and ARDOUR::nframes64_t explicitly in headers
* use explicit operator<< and operator>> that in turn use PBD::EnumWriter when serializing and deserializing to/from rc files
* adds scrolling in mixer window (from 2.X)
* BBT math stuff - untested, but basically operational
* move LocaleGuard into its own file(s) in libs/pbd
* Tempo now uses nframes64_t everywhere (except for sample rate values)
* as in 2.X, use mkstemp and hack to avoid temp file nonsense, and remove erroneous free() from disk stats output
git-svn-id: svn://localhost/ardour2/branches/3.0@5961 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/configuration.cc')
-rw-r--r-- | libs/ardour/configuration.cc | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/libs/ardour/configuration.cc b/libs/ardour/configuration.cc index 68f13f8245..d5ca426a74 100644 --- a/libs/ardour/configuration.cc +++ b/libs/ardour/configuration.cc @@ -17,7 +17,12 @@ */ +#include <iostream> + +#include "pbd/compose.h" + #include "ardour/configuration.h" +#include "ardour/debug.h" using namespace ARDOUR; using namespace std; @@ -31,13 +36,11 @@ Configuration::~Configuration () { } -bool ConfigVariableBase::show_stores = false; - void ConfigVariableBase::add_to_node (XMLNode& node) { - std::string const v = get_as_string (); - show_stored_value (v); + const std::string v = get_as_string (); + DEBUG_TRACE (DEBUG::Configuration, string_compose ("Config variable %1 stored as [%2]\n", _name, v)); XMLNode* child = new XMLNode ("Option"); child->add_property ("name", _name); child->add_property ("value", v); @@ -101,21 +104,6 @@ ConfigVariableBase::set_from_node (XMLNode const & node) return false; } - -void -ConfigVariableBase::set_show_stored_values (bool yn) -{ - show_stores = yn; -} - -void -ConfigVariableBase::show_stored_value (const string& str) -{ - if (show_stores) { - cerr << "Config variable " << _name << " stored as " << str << endl; - } -} - void ConfigVariableBase::notify () { |