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
14
namespace
core::domain
{
15
16
class
BookingDate
{
17
public
:
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
31
private:
32
std::
string
value_;
33
};
34
35
}
// namespace core::domain
core::domain::BookingDate::value
const std::string & value() const noexcept
Definition
BookingDate.cpp:23
core::domain::BookingDate::BookingDate
BookingDate()=default
core::domain::BookingDate::normalize
static std::string normalize(std::string value)
Definition
BookingDate.cpp:29
core::domain::BookingDate::empty
bool empty() const noexcept
Definition
BookingDate.cpp:47
core::domain::BookingDate::isValid
static bool isValid(const std::string &value)
Definition
BookingDate.cpp:42
core::domain::BookingDate::maxLength
static constexpr std::size_t maxLength() noexcept
Definition
BookingDate.cpp:25
core::domain
Definition
application/import/ImportResult.h:16
core
include
core
domain
values
BookingDate.h
Generated by
1.14.0