eLynx SDK
v3.3.0 C++ image processing API reference |
00001 //============================================================================ 00002 // UUID.h Core.Component package 00003 //============================================================================ 00004 // Usage : tool class for Universal Unique IDentifier. 00005 //---------------------------------------------------------------------------- 00006 // Inheritance : tool class, DON'T derive it. 00007 //---------------------------------------------------------------------------- 00008 // Copyright (C) 2006 by eLynx project 00009 // 00010 // This library is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Library General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2 of the License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00018 // See the GNU Library General Public License for more details. 00019 //---------------------------------------------------------------------------- 00020 #ifndef __UUID_h__ 00021 #define __UUID_h__ 00022 00023 #include "CoreLib.h" 00024 #include "CoreTypes.h" 00025 00026 namespace eLynx { 00027 00031 class ExportedByCore UUID 00032 { 00033 public: 00034 00037 UUID(); 00038 00041 UUID(uint32 iD1, uint16 iD2, uint16 iD3, 00042 uint8 iD40,uint8 iD41,uint8 iD42,uint8 iD43,uint8 iD44,uint8 iD45,uint8 iD46,uint8 iD47); 00043 00048 UUID(const char * iprString); 00049 00052 UUID(const UUID& iUUID); 00053 00056 void operator= (const UUID& iUUID); 00057 00060 bool operator == (const UUID& iUUID) const; 00061 00064 bool operator != (const UUID& iUUID) const; 00065 00069 void GetString(char oString[39]) const; 00070 00071 public: 00072 uint32 _data1; 00073 uint16 _data2; 00074 uint16 _data3; 00075 uint8 _data4[8]; 00076 }; 00077 00078 00080 #define elxDEFINE_UUID(UUID_Name, d1, d2, d3, d40, d41, d42, d43, d44, d45, d46, d47) \ 00081 const eLynx::UUID UUID_Name (d1, d2, d3, d40, d41, d42, d43, d44, d45, d46, d47) 00082 00083 } // namespace eLynx 00084 00085 #endif // __UUID_h__