ansi/UUID.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 2003-2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED,
00008 //  AS TO THE CORRECTNESS OF THIS CODE OR ANY DERIVATIVE
00009 //  WORKS WHICH INCORPORATE IT.
00010 //
00011 //  AUTODESK PROVIDES THE CODE ON AN "AS-IS" BASIS
00012 //  AND EXPLICITLY DISCLAIMS ANY LIABILITY, INCLUDING
00013 //  CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00014 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00015 //
00016 //  Use, duplication, or disclosure by the U.S. Government is subject to
00017 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00018 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00019 //  Data and Computer Software), as applicable.
00020 //
00021 
00022 #ifndef _DWFCORE_UUID_ANSI_H
00023 #define _DWFCORE_UUID_ANSI_H
00024 
00025 
00030 
00031 
00032 #include "dwfcore/UUID.h"
00033 
00034 #ifdef  HAVE_CONFIG_H
00035 #include "dwfcore/config.h"
00036 #endif
00037 
00038     //
00039     // this system has libuuid
00040     //
00041 #ifdef  HAVE_LIBUUID
00042 #include <uuid/uuid.h>
00043 #endif
00044 
00045 
00046 
00047 namespace DWFCore
00048 {
00049 
00060 class DWFUUIDImpl_ANSI  : public DWFUUIDImpl
00061 {
00062 
00063 public:
00064 
00070     DWFUUIDImpl_ANSI()
00071         throw();
00072 
00079     DWFUUIDImpl_ANSI( const DWFUUIDImpl_ANSI& rUUID )
00080         throw();
00081 
00087     virtual ~DWFUUIDImpl_ANSI()
00088         throw();
00089 
00096     DWFUUIDImpl_ANSI& operator=( const DWFUUIDImpl_ANSI& rUUID )
00097         throw();
00098 
00102     DWFUUIDImpl* clone() const
00103         throw( DWFException );
00104 
00108     const DWFString& uuid( bool bSquash )
00109         throw( DWFException );
00110 
00114     const DWFString& next( bool bSquash )
00115         throw( DWFException );
00116 
00117 private:
00118 
00119     void _generate()
00120         throw();
00121 
00122 private:
00123 
00124     DWFString _zUUID;
00125 
00126     //
00127     // this system has libuuid
00128     //
00129 #ifdef  HAVE_LIBUUID
00130 
00131     uuid_t      _tUUID;
00132 
00133 #else
00134 
00135     typedef unsigned char   tUUID[16];
00136 
00137     tUUID     _tUUID;
00138 
00139 #endif
00140 
00141 };
00142 
00143 }
00144 
00145 
00146 #endif
00147 
00148 

Generated on Tue Jan 6 22:39:29 2009 for Autodesk DWF Core Library by  doxygen 1.4.5