27#if !defined (MINMAX_ABUSER)
28#define UNDEF_MINMAX_ABUSER
145 bool operator == (
const TimeOfDay & other)
const;
148 bool operator != (
const TimeOfDay & other)
const;
183 return seconds_ == other.seconds_;
191 return seconds_ != other.seconds_;
295 return logonTimes_[day];
310 return logoutTimes_[day];
325 return sessionDuration_;
332 return seqNumberResetPolicy_;
#define ONIXS_FIXENGINE_API
std::string toString() const
TimeOfDay logonTime(DayOfWeek::Enum day) const
DayOfWeek::Enum sequenceNumberWeeklyResetDay() const
The day of the week on which the session message sequence numbers are reset.
TimeOfDay logoutTime(DayOfWeek::Enum day) const
friend class SessionStateChanger
SessionSchedule(const SessionSchedule &other)
Initializes a clone of the given instance.
SessionDuration::Enum sessionDuration() const
SessionSchedule(DayOfWeek::Enum firstDay, DayOfWeek::Enum lastDay, TimeOfDay logonTime, TimeOfDay logoutTime, SessionDuration::Enum sessionDuration, SequenceNumberResetPolicy::Enum seqNumberResetPolicy)
SequenceNumberResetPolicy::Enum sequenceNumberResetPolicy() const
Defines the session sequence number reset policy.
Represents the time of the day.
bool operator!=(const TimeOfDay &other) const
Checks whether the instance is unequal to another one.
std::string toString() const
Builds the string presentation.
TimeOfDay(const TimeOfDay &)
Initializes from another instance.
static TimeOfDay midnight()
The 'Zero' point of the time of the day.
static TimeOfDay parse(const std::string &)
Parses the time of day from its string presentation.
TimeOfDay(Hours hours, Minutes minutes, Seconds=0)
static TimeOfDay now()
Returns the current time of the day value.
TimeOfDay()
The default initialization.
Seconds sinceMidnight() const
Gets the total number of seconds since the midnight.
static TimeOfDay bad()
An instance of the ill-formed time of the day.
bool operator==(const TimeOfDay &other) const
Checks whether the instance is equal to another one.
Hours hours() const
Gets hours of the time of the day.
Seconds seconds() const
Gets the seconds component of the time of the day.
Minutes minutes() const
Gets minutes of the time of the day.
TimeOfDay TimeOfDayOfWeek[DayOfWeek::Total]
The collection of the time of day values indexed by the day of the week.
Specifies a day of the week.
static Enum parse(const std::string &value)
Transforms the string presentation into a valid constant.
static std::string toString(Enum value)
Builds the string presentation for a given constant.
Defines the session sequence number reset policy.
static Enum parse(const std::string &value)
Transforms the string presentation into a valid constant.
static std::string toString(Enum value)
Builds the string presentation for a given constant.
Specifies an activity time frame for the session.
static Enum parse(const std::string &value)
Transforms the string presentation into a valid constant.
@ Week
The session logon/logout occurs only once per week.
static std::string toString(Enum value)
Builds the string presentation for a given constant.