📄 crestrictmgr.h
字号:
#ifndef CRESTRICTMGR_H
#define CRESTRICTMGR_H
/*
@(#) $Id$
AxCrypt - Compressing and Encrypting Wrapper and Application Launcher for Secure Local,
Server or Web Storage of Document Files.
Copyright (C) 2004 Svante Seleborg/Axantum Software AB, All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program;
if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA
The author may be reached at mailto:axcrypt@axondata.se and http://axcrypt.sourceforge.net
----
CRestrictMgr.h Keep track of effective restrictions
*/
#include <string>
using namespace std;
class CRestrictMgr {
stringmap m_smRestrictions; // The list of restrictions as strings.
public:
CRestrictMgr() {}
~CRestrictMgr() {
}
/// \brief Set a restriction - empty string means remove restriction.
void Set(string sRestrict, const string sValue);
/// \brief Check if there is a restriction with that name at all
bool Has(string sRestrict);
/// \brief Get the restriction as a string. Must exist.
const string &GetStr(string sRestrict);
/// \brief Get the restriction interpreted as an integer. Must exist.
int GetInt(string sRestrict);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -