KWWidgets
Main Page
Classes
Files
File List
File Members
debian
tmp
usr
include
KWWidgets
debian/tmp/usr/include/KWWidgets/vtkKWUNIXRegistryHelper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Module: $RCSfile: vtkKWUNIXRegistryHelper.h,v $
4
5
Copyright (c) Kitware, Inc.
6
All rights reserved.
7
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
// .NAME vtkKWUNIXRegistryHelper - A registry class
15
// .SECTION Description
16
// This class abstracts the storing of data that can be restored
17
// when the program executes again. It is implemented as a file in
18
// the user's home directory.
19
20
#ifndef __vtkKWUNIXRegistryHelper_h
21
#define __vtkKWUNIXRegistryHelper_h
22
23
#include "
vtkKWRegistryHelper.h
"
24
25
class
vtkKWUNIXRegistryHelperInternals;
26
27
class
KWWidgets_EXPORT
vtkKWUNIXRegistryHelper
:
public
vtkKWRegistryHelper
28
{
29
public
:
30
static
vtkKWUNIXRegistryHelper
*
New
();
31
vtkTypeRevisionMacro(
vtkKWUNIXRegistryHelper
,
vtkKWRegistryHelper
);
32
void
PrintSelf
(ostream& os, vtkIndent indent);
33
34
// Description:
35
// Read a value from the registry.
36
virtual
int
ReadValueInternal
(
const
char
*key,
char
*value);
37
38
// Description:
39
// Delete a key from the registry.
40
virtual
int
DeleteKeyInternal
(
const
char
*key);
41
42
// Description:
43
// Delete a value from a given key.
44
virtual
int
DeleteValueInternal
(
const
char
*key);
45
46
// Description:
47
// Set value in a given key.
48
virtual
int
SetValueInternal
(
const
char
*key,
const
char
*value);
49
50
// Description:
51
// Open the registry at toplevel/subkey.
52
virtual
int
OpenInternal
(
const
char
*toplevel,
const
char
*subkey,
53
int
readonly);
54
55
// Description:
56
// Close the registry.
57
virtual
int
CloseInternal
();
58
59
protected
:
60
vtkKWUNIXRegistryHelper
();
61
virtual
~
vtkKWUNIXRegistryHelper
();
62
vtkSetStringMacro(SubKey);
63
64
char
*CreateKey(
const
char
*key);
65
66
private
:
67
char
*SubKey;
68
69
vtkKWUNIXRegistryHelperInternals* Internals;
70
71
vtkKWUNIXRegistryHelper
(
const
vtkKWUNIXRegistryHelper
&);
// Not implemented
72
void
operator=(
const
vtkKWUNIXRegistryHelper
&);
// Not implemented
73
};
74
75
#endif
76
77
78
Generated on Sun Apr 28 2013 21:04:58 for KWWidgets by
1.8.3.1