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_H
00023 #define _DWFCORE_UUID_H
00024 
00030 
00041 
00042 
00043 #include "dwfcore/Core.h"
00044 #include "dwfcore/Exception.h"
00045 #include "dwfcore/String.h"
00046 
00047 
00048 
00049 namespace DWFCore
00050 {
00051 
00058 class DWFUUIDImpl
00059 {
00060 
00061 public:
00062 
00068     virtual ~DWFUUIDImpl()
00069         throw()
00070     {;}
00071 
00079     virtual DWFUUIDImpl* clone() const
00080         throw( DWFException ) = 0;
00081 
00094     virtual const DWFString& uuid( bool bSquash )
00095         throw( DWFException ) = 0;
00096 
00116     virtual const DWFString& next( bool bSquash )
00117         throw( DWFException ) = 0;
00118 
00119 protected:
00120 
00126     DWFUUIDImpl()
00127         throw()
00128     {;}
00129 };
00130 
00136 class DWFUUID : virtual public DWFCoreMemory
00137 {
00138 
00139 public:
00140 
00146     _DWFCORE_API 
00147     DWFUUID()
00148         throw();
00149 
00156     _DWFCORE_API 
00157     DWFUUID( const DWFUUID& rUUID )
00158         throw();
00159 
00165     _DWFCORE_API 
00166     ~DWFUUID()
00167         throw();
00168 
00175     _DWFCORE_API 
00176     DWFUUID& operator=( const DWFUUID& rUUID )
00177         throw();
00178 
00182     _DWFCORE_API 
00183     const DWFString& uuid( bool bSquash )
00184         throw( DWFException );
00185 
00189     _DWFCORE_API 
00190     const DWFString& next( bool bSquash )
00191         throw( DWFException );
00192 
00209     _DWFCORE_API 
00210     DWFUUID next()
00211         throw( DWFException );
00212 
00213 private:
00214 
00215     DWFUUIDImpl*    _pImpl;
00216 };
00217 
00218 }
00219 
00220 #endif

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