21#if !defined(ms_sec_task_INCLUDED_)
22#define ms_sec_task_INCLUDED_
31namespace matrix_science {
65 TYPE_EQ_LONG = 0x0001,
66 TYPE_LTE_LONG = 0x0002,
67 TYPE_GTE_LONG = 0x0003,
68 TYPE_LONG_ARRAY = 0x0004,
69 TYPE_EQ_DOUBLE = 0x0005,
70 TYPE_LTE_DOUBLE = 0x0006,
71 TYPE_GTE_DOUBLE = 0x0007,
72 TYPE_DOUBLE_ARRAY = 0x0008,
73 TYPE_EQ_STRING = 0x0009,
74 TYPE_STRING_ARRAY = 0x000A,
75 TYPE_USERS_ARRAY = 0x000B,
76 TYPE_ALL_USERS_ARRAY= 0x000C
96 void setID(
const int id);
99 std::string getConstantName()
const;
101 void setConstantName(
const std::string value);
104 std::string getNotes()
const;
106 void setNotes(
const std::string value);
109 std::string getDescription()
const;
111 void setDescription(
const std::string value);
114 paramType getType()
const;
116 void setType(
const paramType value);
122 void setParams(
const std::string value);
125 bool addLongParam(
const long value);
128 bool addDoubleParam(
const double value);
131 bool addStringParam(
const std::string value);
134 std::vector<long> getLongParams()
const;
137 std::vector<double> getDoubleParams()
const;
140 std::vector<std::string> getStringParams()
const;
143 std::string getAllParamsAsString()
const;
146 bool isPermitted()
const;
149 bool isPermitted_long(
const long value)
const;
152 bool isPermitted_double(
const double value)
const;
155 bool isPermitted_string(
const std::string value)
const;
159 std::string description_;
161 std::string constantName_;
163 std::set<long> longParams_;
164 std::set<double> doubleParams_;
165 std::set<std::string> stringParams_;
Each group has permission to do one or more tasks. This class defines an individual task.
Definition: ms_security_task.hpp:51
paramType
Definitions for parameter type.
Definition: ms_security_task.hpp:63