posix/coil/UUID.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef COIL_UUID_H
21 #define COIL_UUID_H
22 
23 #include <coil/config_coil.h>
24 #ifdef COIL_OS_FREEBSD
25 #include <uuid.h>
26 
27 namespace coil
28 {
29  class UUID
30  {
31  public:
32  UUID();
33  UUID(const uuid_t& uuid);
34  ~UUID();
35  const char* to_string();
36  private:
37  uuid_t m_uuid;
38  char* m_uuidstr;
39  };
40 
41 
42  class UUID_Generator
43  {
44  public:
45  UUID_Generator();
46  ~UUID_Generator();
47  void init();
48  coil::UUID* generateUUID(int n, int h);
49  };
50 };
51 #endif
52 #if defined(COIL_OS_LINUX) || defined(COIL_OS_DARWIN) || defined(COIL_OS_CYGWIN)
53 #include <uuid/uuid.h>
54 namespace coil
55 {
56  class UUID
57  {
58  uuid_t _uuid;
59  char buf[37];
60  public:
61  UUID();
62  UUID(uuid_t*);
63  const char* to_string();
64  };
65 
66  class UUID_Generator
67  {
68  public:
69  UUID_Generator();
70 
71  void init();
72  UUID* generateUUID(int n, int h);
73  };
74 };
75 #endif
76 
77 #endif // COIL_UUID_H
UUID()
UUID class constructor.
UUID value class.
char * m_uuidstr
ACE_Utils::UUID UUID
Definition: ace/coil/UUID.h:36
const char * to_string()
Converting from UUID value to string.
~UUID()
UUID class destructor.
Common Object Interface Layer.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:56