UUID.h
Go to the documentation of this file.
00001 // -*- C++ -*-
00020 #ifndef COIL_UUID_H
00021 #define COIL_UUID_H
00022 
00023 #include <rpc.h>
00024 
00025 namespace coil
00026 {
00027 #ifdef uuid_t
00028 #undef uuid_t
00029   typedef ::GUID uuid_t;
00030 #endif
00031   //------------------------------------------------------------
00032   // UUID class
00033   //------------------------------------------------------------
00043   class UUID
00044   {
00045   public:
00055     UUID();
00056 
00066     UUID(const uuid_t& uuid);
00067 
00077     ~UUID();
00078 
00088     const char* to_string();
00089 
00090   private:
00091     uuid_t m_uuid;
00092     char* m_uuidstr;
00093   }; // class UUID
00094 
00095 
00096   //------------------------------------------------------------
00097   // UUID_Generator class
00098   //------------------------------------------------------------
00108   class UUID_Generator
00109   {
00110   public:
00120     UUID_Generator();
00121 
00131     ~UUID_Generator();
00132 
00142     void init();
00143 
00161     coil::UUID* generateUUID(int n, int h);
00162   }; // class UUID_Generator
00163 }; // coil
00164 
00165 #endif // COIL_UUID_H


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:39