00001 //============================================================================= 00002 // This file is part of VTKEdge. See vtkedge.org for more information. 00003 // 00004 // Copyright (c) 2010 Kitware, Inc. 00005 // 00006 // VTKEdge may be used under the terms of the BSD License 00007 // Please see the file Copyright.txt in the root directory of 00008 // VTKEdge for further information. 00009 // 00010 // Alternatively, you may see: 00011 // 00012 // http://www.vtkedge.org/vtkedge/project/license.html 00013 // 00014 // 00015 // For custom extensions, consulting services, or training for 00016 // this or any other Kitware supported open source project, please 00017 // contact Kitware at sales@kitware.com. 00018 // 00019 // 00020 //============================================================================= 00021 // 00022 // Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00023 // l'Image). All rights reserved. See Doc/License.txt or 00024 // http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. 00025 // 00026 // This software is distributed WITHOUT ANY WARRANTY; without even 00027 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00028 // PURPOSE. See the above copyright notices for more information. 00029 // 00030 //============================================================================= 00031 00043 #ifndef __vtkKWEUUID_h 00044 #define __vtkKWEUUID_h 00045 00046 #include "vtkObject.h" 00047 #include "VTKEdgeConfigure.h" // include configuration header 00048 00049 class VTKEdge_COMMON_EXPORT vtkKWEUUID : public vtkObject 00050 { 00051 public: 00052 static vtkKWEUUID* New(); 00053 vtkTypeRevisionMacro(vtkKWEUUID, vtkObject); 00054 void PrintSelf(ostream& os, vtkIndent indent); 00055 00058 static int GenerateUUID(unsigned char uuid[16]); 00059 00065 static void ConstructUUID(unsigned char uuid[16]); 00066 00068 00070 static void ConvertBinaryUUIDToString(unsigned char uuid[16], 00071 vtkstd::string &uuidString); 00073 00075 static int GetMACAddress(unsigned char addr[6]); 00076 00077 protected: 00078 vtkKWEUUID() {}; 00079 ~vtkKWEUUID() {}; 00080 00081 private: 00082 vtkKWEUUID(const vtkKWEUUID&); // Not implemented. 00083 void operator=(const vtkKWEUUID&); // Not implemented. 00084 00085 // the main (system specific) code for determining the MAC address 00086 static int GetMacAddrSys(unsigned char *addr); 00087 }; 00088 00089 #endif
1.7.1