diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-10-14 18:47:06 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-10-14 18:47:43 (GMT) |
commit | f4bac581bac1fa4df60efafd3325791fec8a121a (patch) | |
tree | f79091f4d4e7a1fb2d403a72ed85a11a00dccfb9 /Swiften/Base/SimpleIDGenerator.h | |
parent | d61e38a1c710f1175e3d3e3dfe034695988001fe (diff) | |
download | swift-contrib-f4bac581bac1fa4df60efafd3325791fec8a121a.zip swift-contrib-f4bac581bac1fa4df60efafd3325791fec8a121a.tar.bz2 |
Resurrecting simple ID generator.
Diffstat (limited to 'Swiften/Base/SimpleIDGenerator.h')
-rw-r--r-- | Swiften/Base/SimpleIDGenerator.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Swiften/Base/SimpleIDGenerator.h b/Swiften/Base/SimpleIDGenerator.h new file mode 100644 index 0000000..677c8d1 --- /dev/null +++ b/Swiften/Base/SimpleIDGenerator.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <string> + +namespace Swift { + class SimpleIDGenerator { + public: + SimpleIDGenerator(); + + std::string generateID(); + + private: + std::string currentID; + }; +} |