5 #ifndef __STDC_FORMAT_MACROS
6 #define __STDC_FORMAT_MACROS
15 Glib::Mutex ID::counter_lock;
16 uint64_t ID::_counter = 0;
20 Glib::Mutex::Lock lm (counter_lock);
30 ID::string_assign (string str)
32 return sscanf (str.c_str(), "%" PRIu64, &id) != 0;
36 ID::print (char* buf) const
38 /* XXX sizeof buf is unknown. bad API design */
39 snprintf (buf, 16, "%" PRIu64, id);
43 ID::operator= (string str)
50 operator<< (ostream& ostr, const ID& id)