00001
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef UUID_h
00027 #define UUID_h
00028
00029 #ifdef WITH_ACE
00030 #include <ace/UUID.h>
00031 #else
00032 #include <uuid.h>
00033 #endif
00034
00035 namespace RTC_Utils
00036 {
00037 #ifdef WITH_ACE
00038 typedef ACE_Utils::UUID_Generator UUID_Generator;
00039 typedef ACE_Utils::UUID UUID;
00040 #else
00041 class UUID
00042 {
00043 uuid_t _uuid;
00044 public:
00045 UUID();
00046 UUID(uuid_t*);
00047 std::string* to_string();
00048 };
00049
00050 class UUID_Generator
00051 {
00052 public:
00053 UUID_Generator();
00054
00055 void init();
00056 UUID* generateUUID(int n, int h);
00057 };
00058 #endif
00059 };
00060
00061 #endif // UUID_h