/* ====================================================================
* Copyright (c) 2003-2006, Martin Hauner
* http://subcommander.tigris.org
*
* Subcommander is licensed as described in the file doc/COPYING, which
* you should have received as part of this distribution.
* ====================================================================
*/
#ifndef _SC_ID_H
#define _SC_ID_H
typedef unsigned long ID;
/**
* a simple class for creating unique ids.
*/
class Id
{
public:
/**
* get the next id;
*/
static ID next();
private:
Id();
private:
static ID _id; ///< the last used id.
};
#endif // _SC_ID_H
syntax highlighted by Code2HTML, v. 0.9.1