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