// 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_)