diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-08-13 15:36:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-08-13 15:36:21 +0000 |
commit | 0b1c369e15af54cf809140b75af99d72edce24ae (patch) | |
tree | c7cd072b03cfd49aab44a1e5bb150c301d155663 /libs/pbd | |
parent | c25496008816325bf85ac5f777978f7ce351fb1e (diff) |
engine dialog work, new -m option for menu file selection, new obolean automation line work starting up
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2293 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pbd/convert.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/pbd/pbd/convert.h b/libs/pbd/pbd/convert.h index 00176659cf..458e4aebe9 100644 --- a/libs/pbd/pbd/convert.h +++ b/libs/pbd/pbd/convert.h @@ -22,6 +22,8 @@ #include <string> #include <vector> +#include <sstream> +#include <iostream> namespace PBD { @@ -37,6 +39,14 @@ std::string length2string (const int64_t frames, const double sample_rate); std::vector<std::string> internationalize (const char *, const char **); bool strings_equal_ignore_case (const std::string& a, const std::string& b); +template <class T> std::string +to_string (T t, std::ios_base & (*f)(std::ios_base&)) +{ + std::ostringstream oss; + oss << f << t; + return oss.str(); +} + } //namespace PBD #endif /* __pbd_convert_h__ */ |