File: Poco.UUIDGenerator.html

package info (click to toggle)
poco-doc 1.3.6-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 10,076 kB
  • ctags: 9,611
  • sloc: makefile: 31
file content (90 lines) | stat: -rw-r--r-- 7,024 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::UUIDGenerator</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.html" class="namespace">Poco</a></h1>
<h1 class="symbol">class UUIDGenerator</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Foundation<br />
<b>Package:</b> UUID<br />
<b>Header:</b> Poco/UUIDGenerator.h</p>
<h2>Description</h2>
<div class="description">
<p>This class implements a generator for Universal Unique Identifiers, as specified in Appendix A of the DCE 1.1 Remote Procedure Call Specification (<a href="http://www.opengroup.org/onlinepubs/9629399/" target="_blank">http://www.opengroup.org/onlinepubs/9629399/</a>), <a href="http://www.ietf.org/rfc/rfc2518.txt" target="_blank">RFC 2518</a> (WebDAV), section 6.4.1 and the UUIDs and GUIDs internet draft by Leach/Salz from February, 1998  (<a href="http://ftp.ics.uci.edu/pub/ietf/webdav/uuid-guid/draft-leach-uuids-guids-01.txt" target="_blank">http://ftp.ics.uci.edu/pub/ietf/webdav/uuid-guid/draft-leach-uuids-guids-01.txt</a>) </p>
</div>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.UUIDGenerator.html#11751" title="Poco::UUIDGenerator::create()">create</a>, <a href="Poco.UUIDGenerator.html#11752" title="Poco::UUIDGenerator::createFromName()">createFromName</a>, <a href="Poco.UUIDGenerator.html#11760" title="Poco::UUIDGenerator::createOne()">createOne</a>, <a href="Poco.UUIDGenerator.html#11759" title="Poco::UUIDGenerator::createRandom()">createRandom</a>, <a href="Poco.UUIDGenerator.html#11761" title="Poco::UUIDGenerator::defaultGenerator()">defaultGenerator</a>, <a href="Poco.UUIDGenerator.html#11763" title="Poco::UUIDGenerator::getNode()">getNode</a>, <a href="Poco.UUIDGenerator.html#11762" title="Poco::UUIDGenerator::timeStamp()">timeStamp</a></p>
<h2>Constructors</h2>
<h3><a name="11749">UUIDGenerator</a></h3>
<p class="decl"><a href="Poco.UUIDGenerator.html" title="class Poco::UUIDGenerator">UUIDGenerator</a>();</p>
<div class="description">
<p>Creates the <a href="Poco.UUIDGenerator.html" title="class Poco::UUIDGenerator">UUIDGenerator</a>. </p>
</div>
<h2>Destructor</h2>
<h3><a name="11750">~UUIDGenerator</a></h3>
<p class="decl">~<a href="Poco.UUIDGenerator.html" title="class Poco::UUIDGenerator">UUIDGenerator</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.UUIDGenerator.html" title="class Poco::UUIDGenerator">UUIDGenerator</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="11751">create</a></h3>
<p class="decl"><a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> create();</p>
<div class="description">
<p>Creates a new time-based <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a>, using the MAC address of one of the system's ethernet adapters. </p>
<p>Throws a <a href="Poco.SystemException.html" title="class Poco::SystemException">SystemException</a> if no MAC address can be obtained. </p>
</div>
<h3><a name="11752">createFromName</a></h3>
<p class="decl"><a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> createFromName(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> &amp; nsid,<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; name<br />);</p>
<div class="description">
<p>Creates a name-based <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a>. </p>
</div>
<h3><a name="11755">createFromName</a></h3>
<p class="decl"><a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> createFromName(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> &amp; nsid,<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; name,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.DigestEngine.html" title="class Poco::DigestEngine">DigestEngine</a> &amp; de<br />);</p>
<div class="description">
<p>Creates a name-based <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a>, using the given digest engine. </p>
</div>
<h3><a name="11760">createOne</a></h3>
<p class="decl"><a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> createOne();</p>
<div class="description">
<p>Tries to create and return a time-based <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> (see <a href="Poco.UUIDGenerator.html#11751" title="Poco::UUIDGenerator::create()">create</a>()), and,  if that does not work due to the unavailability of a MAC address, creates and returns a random <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> (see <a href="Poco.UUIDGenerator.html#11759" title="Poco::UUIDGenerator::createRandom()">createRandom</a>()). </p>
<p>The <a href="Poco.UUID.html#11696" title="Poco::UUID::version()">UUID::version</a>() method can be used to determine the actual kind of the <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> generated. </p>
</div>
<h3><a name="11759">createRandom</a></h3>
<p class="decl"><a href="Poco.UUID.html" title="class Poco::UUID">UUID</a> createRandom();</p>
<div class="description">
<p>Creates a random <a href="Poco.UUID.html" title="class Poco::UUID">UUID</a>. </p>
</div>
<h3><a name="11761">defaultGenerator</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static <a href="Poco.UUIDGenerator.html" title="class Poco::UUIDGenerator">UUIDGenerator</a> &amp; defaultGenerator();</p>
<div class="description">
<p>Returns a reference to the default <a href="Poco.UUIDGenerator.html" title="class Poco::UUIDGenerator">UUIDGenerator</a>. </p>
</div>
<h3><a name="11763">getNode</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void getNode();</p>
<div class="description">
<p></p>
</div>
<h3><a name="11762">timeStamp</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.Timestamp.html#11150" title="Poco::Timestamp::UtcTimeVal">Timestamp::UtcTimeVal</a> timeStamp();</p>
<div class="description">
<p></p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>