From 3f95d417d9e623ac0c74df8ef11d7a01846392dd Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 17 Sep 2003 19:07:23 +0000 Subject: Initial Import --- NSCmpts/NSSettings.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 NSCmpts/NSSettings.h (limited to 'NSCmpts/NSSettings.h') diff --git a/NSCmpts/NSSettings.h b/NSCmpts/NSSettings.h new file mode 100644 index 0000000..ab90341 --- /dev/null +++ b/NSCmpts/NSSettings.h @@ -0,0 +1,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 +#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_) -- cgit v1.2.3