352c549f06ce93d0538cd4df4ab1eadc3c4964f8
[ardour.git] / libs / audiographer / src / debug_utils.cc
1 #include "audiographer/debug_utils.h"
2
3 #include "audiographer/process_context.h"
4
5 #include <sstream>
6
7 namespace AudioGrapher {
8
9 std::string
10 DebugUtils::process_context_flag_name (FlagField::Flag flag)
11 {
12         std::ostringstream ret;
13         
14         switch (flag) {
15                 case ProcessContext<>::EndOfInput:
16                         ret << "EndOfInput";
17                         break;
18                 default:
19                         ret << flag;
20                         break;
21         }
22         
23         return ret.str();
24 }
25
26 } // namespace