uniqueid.h
00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 * copyright (C) 2006 * 00009 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00010 ***************************************************************************/ 00011 00012 #ifndef UNIQUEID_H 00013 #define UNIQUEID_H 00014 00015 #include "umlnamespace.h" 00016 00017 namespace UniqueID { 00018 00022 Uml::IDType gen(); 00023 00024 00026 // Only required by code that does special operations on unique IDs. 00027 // NB Try to avoid these functions if possible because their 00028 // implementation and/or programming interface may change. 00029 00035 void init(); 00036 00040 Uml::IDType get(); 00041 00045 void set(Uml::IDType id); 00046 00047 } // end namespace UniqueID 00048 00049 #endif 00050
