23 #ifndef __STDC_FORMAT_MACROS
24 #define __STDC_FORMAT_MACROS
34 Glib::Threads::Mutex* ID::counter_lock = 0;
35 uint64_t ID::_counter = 0;
41 counter_lock =
new Glib::Threads::Mutex;
49 ID::ID (
const ID& other)
67 ID::string_assign (
string str)
69 return sscanf (str.c_str(),
"%" PRIu64, &_id) != 0;
73 ID::print (
char* buf, uint32_t bufsize)
const
75 snprintf (buf, bufsize,
"%" PRIu64, _id);
78 string ID::to_s()
const
81 print(buf,
sizeof (buf));
92 ID::operator= (
string str)
99 ID::operator= (
const ID& other)
101 if (&other !=
this) {
111 _id.
print (buf,
sizeof (buf));
void print(char *buf, uint32_t bufsize) const
bool operator==(const RouteProcessorSelection &a, const RouteProcessorSelection &b)
ostream & operator<<(ostream &ostr, const ID &_id)
LIBARDOUR_API bool init(bool with_vst, bool try_optimization, const char *localedir)