21 #ifndef __ardour_data_type_h__
22 #define __ardour_data_type_h__
62 static const uint32_t num_types = 2;
75 if (!g_ascii_strncasecmp(str.c_str(),
"audio", str.length())) {
77 }
else if (!g_ascii_strncasecmp(str.c_str(),
"midi", str.length())) {
85 case AUDIO:
return "audio";
86 case MIDI:
return "midi";
87 default:
return "unknown";
93 inline operator uint32_t()
const {
return (uint32_t)_symbol; }
bool operator==(const iterator &other)
bool operator!=(const iterator &other)
bool operator!=(const Symbol symbol)
const char * to_i18n_string() const
bool operator!=(const DataType other)
bool operator==(const Symbol symbol)
bool operator==(const DataType other)
const char * to_string() const
DataType(const Symbol &symbol)
DataType(const std::string &str)