19#ifndef MS_CRONOPTIONS_HPP
20#define MS_CRONOPTIONS_HPP
27namespace matrix_science {
63 bool isEnabled()
const;
66 void setEnabled(
const bool enabled);
69 bool isMinute(
const int min)
const;
72 void setMinute(
const int min,
const bool value);
75 bool isHour(
const int hour)
const;
78 void setHour(
const int hour,
const bool value);
81 bool isDayOfMonth(
const int day)
const;
84 void setDayOfMonth(
const int day,
const bool value);
87 bool isMonthOfYear(
const int month)
const;
90 void setMonthOfYear(
const int month,
const bool value);
93 bool isDayOfWeek(
const int day)
const;
96 void setDayOfWeek(
const int day,
const bool value);
99 std::string getCommandStr()
const;
102 void setCommandStr(
const char* str);
105 std::string getStringValue()
const;
111 bool dayOfMonth_[32];
112 bool monthOfYear_[13];
114 std::string szCommand_;
116 void setCustomString();
117 std::string customString_;
164 void defaultValues();
174 bool isSectionAvailable()
const;
177 void setSectionAvailable(
const bool value);
180 bool isCronEnabled()
const;
183 void setCronEnabled(
const bool value);
186 int getNumberOfCronJobs()
const;
189 const ms_cronjob getCronJob(
const int idx)
const;
192 bool setCronJob(
const int idx,
const ms_cronjob job);
195 bool deleteCronJob(
const int idx);
198 void clearCronJobs();
204 int getLoggingLevel()
const;
207 bool setLoggingLevel(
const int level);
210 std::string getLogFileName()
const;
213 bool setLogFileName(
const std::string & fileName);
216#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
217#include "suppress_ms_customproperty.hpp"
221 int findProperty(
const ms_cronjob & job)
const;
222 bool getPropertyNameValue(
const ms_cronjob & job, std::string & name, std::string & value)
const;
223 bool sectionAvailable_;
225 std::vector< ms_cronjob > cronJobArray_;
227 std::string logFileName_;
Represents a single entry from the cron section of mascot.dat.
Definition: ms_cronoptions.hpp:38
Contains parameters from the cron section of mascot.dat.
Definition: ms_cronoptions.hpp:150
The class is used as a base for property-containing classes, such as ms_mascotoptions.
Definition: ms_customproperty.hpp:91
Encapsulates the mascot.dat file that contains the most important parameters.
Definition: ms_datfile.hpp:47