win32/Signal.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 
00023 #ifndef _DWFCORE_SIGNAL_WIN32_H
00024 #define _DWFCORE_SIGNAL_WIN32_H
00025 
00026 
00040 
00041 
00042 #include "dwfcore/Core.h"
00043 
00044 #ifdef  _DWFCORE_WIN32_SYSTEM
00045 
00046 #include "dwfcore/Exception.h"
00047 
00048 
00049 
00050 namespace DWFCore
00051 {
00052 
00085 class DWFSignal : virtual public DWFCoreMemory
00086 {
00087 
00088 public:
00089 
00095     _DWFCORE_API 
00096     DWFSignal()
00097         throw();
00098 
00104     _DWFCORE_API 
00105     virtual ~DWFSignal()
00106         throw();
00107 
00114     _DWFCORE_API 
00115     void init()
00116         throw( DWFException );
00117 
00124     _DWFCORE_API 
00125     void destroy()
00126         throw( DWFException );
00127 
00137     _DWFCORE_API 
00138     bool wait( unsigned long nMilliseconds = 0 )
00139         throw( DWFException );
00140 
00146     _DWFCORE_API 
00147     void raise()
00148         throw( DWFException );
00149 
00150 private:
00151 
00152     bool    _bInit;
00153     HANDLE  _hEvent;
00154 
00155 private:
00156 
00157     //
00158     // Not Implemented
00159     //
00160     DWFSignal( const DWFSignal& );
00161     DWFSignal& operator=( const DWFSignal& );
00162 };
00163 
00164 
00165 }
00166 
00167 
00168 #else
00169 #error  This is a Win32 header file and is incompatible with your current system configuration
00170 #endif 
00171 
00172 #endif
00173 
00174 

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