blob: ab903417fab95a373e614d52f1de70490853bebe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// NSSettings.h: interface for the CSettings class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_NSSETTINGS_H__4D76E505_722D_11D3_BF84_0020182B97FC__INCLUDED_)
#define AFX_NSSETTINGS_H__4D76E505_722D_11D3_BF84_0020182B97FC__INCLUDED_
#include <settings.h>
#include "../Common/CmptData.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CNightSecSettings :
public settings,
public CPropertyBag
{
public:
virtual HRESULT erase(const string& sKeyName)
{ return DeleteProperty(sKeyName); };
virtual HRESULT write_string(const string& sKeyName, const string& sValue)
{ return WriteString(sKeyName, sValue); };
virtual HRESULT write_int(const string& sKeyName, int nValue)
{ return WriteInt(sKeyName, nValue); };
virtual string get_string(const string& sKeyName, const string& sDefault) const
{ return GetString(sKeyName, sDefault); };
virtual int get_int(const string& sKeyName, int nDefault) const
{ return GetInt(sKeyName, nDefault); }
};
#endif // !defined(AFX_NSSETTINGS_H__4D76E505_722D_11D3_BF84_0020182B97FC__INCLUDED_)
|