00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWWin32RegistryHelper.h,v $ 00004 00005 Copyright (c) Kitware, Inc. 00006 All rights reserved. 00007 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00022 #ifndef __vtkKWWin32RegistryHelper_h 00023 #define __vtkKWWin32RegistryHelper_h 00024 00025 #include "vtkKWRegistryHelper.h" 00026 #include "vtkWindows.h" // needed for HKEY 00027 00028 class KWWidgets_EXPORT vtkKWWin32RegistryHelper : public vtkKWRegistryHelper 00029 { 00030 // @cond section_public 00031 public: 00032 static vtkKWWin32RegistryHelper* New(); 00033 vtkTypeRevisionMacro(vtkKWWin32RegistryHelper, vtkKWRegistryHelper); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00037 00042 vtkSetStringMacro(Organization); 00043 vtkGetStringMacro(Organization); 00045 00047 virtual int ReadValueInternal(const char *key, char *value); 00048 00051 virtual int ReadValueInternal(const char *key, int *value); 00052 00054 virtual int DeleteKeyInternal(const char *key); 00055 00057 virtual int DeleteValueInternal(const char *key); 00058 00060 virtual int SetValueInternal(const char *key, const char *value); 00061 00064 virtual int SetValueInternal(const char *key, int *value); 00065 00067 virtual int OpenInternal(const char *toplevel, const char *subkey, int readonly); 00068 00070 virtual int OpenInternal(const char *key, int readonly); 00071 00073 virtual int CloseInternal(); 00074 00075 // @endcond 00076 // @cond section_protected 00077 protected: 00078 vtkKWWin32RegistryHelper(); 00079 virtual ~vtkKWWin32RegistryHelper(); 00080 00081 // @endcond 00082 // @cond section_private 00083 private: 00084 char *Organization; 00085 HKEY HKey; 00086 vtkKWWin32RegistryHelper(const vtkKWWin32RegistryHelper&); // Not implemented 00087 void operator=(const vtkKWWin32RegistryHelper&); // Not implemented 00088 }; 00089 00090 #endif 00091 00092 00093 00094 // @endcond
1.6.1