5 #ifndef __STDC_FORMAT_MACROS
6 #define __STDC_FORMAT_MACROS
16 Glib::Mutex* ID::counter_lock = 0;
17 uint64_t ID::_counter = 0;
22 counter_lock = new Glib::Mutex;
27 Glib::Mutex::Lock lm (*counter_lock);
37 ID::string_assign (string str)
39 return sscanf (str.c_str(), "%" PRIu64, &_id) != 0;
43 ID::print (char* buf) const
45 /* XXX sizeof buf is unknown. bad API design */
46 snprintf (buf, 16, "%" PRIu64, _id);
49 string ID::to_s() const
51 char buf[16]; // see print()
57 ID::operator= (string str)
64 operator<< (ostream& ostr, const ID& _id)