FOSSredder 0.5.0
Loading...
Searching...
No Matches
BookingDate.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <algorithm>
9#include <cctype>
10#include <cstddef>
11#include <string>
12#include <utility>
13
14namespace core::domain {
15
17public:
18 const std::string& value() const noexcept;
19
20 BookingDate() = default;
21 explicit BookingDate(std::string value);
22
23 static constexpr std::size_t maxLength() noexcept;
24
25 static std::string normalize(std::string value);
26
27 static bool isValid(const std::string& value);
28
29 bool empty() const noexcept;
30
31private:
32 std::string value_;
33};
34
35} // namespace core::domain
const std::string & value() const noexcept
static std::string normalize(std::string value)
bool empty() const noexcept
static bool isValid(const std::string &value)
static constexpr std::size_t maxLength() noexcept