#include <ExportFormat.h>
|
| const std::string & | value () const noexcept |
| | ExportFormat ()=default |
| | ExportFormat (std::string value) |
| | Creates a normalized export format from raw input.
|
| bool | empty () const noexcept |
| | Checks whether the stored value is empty.
|
|
| static constexpr std::size_t | maxLength () noexcept |
| | Returns the maximum supported export format length.
|
| static std::string | normalize (std::string value) |
| | Trims leading and trailing whitespace from an export format.
|
| static bool | isValid (const std::string &value) |
| | Checks whether a raw export format is valid.
|
Definition at line 16 of file ExportFormat.h.
◆ ExportFormat() [1/2]
| core::domain::ExportFormat::ExportFormat |
( |
| ) |
|
|
default |
◆ ExportFormat() [2/2]
| core::domain::ExportFormat::ExportFormat |
( |
std::string | value | ) |
|
|
explicit |
Creates a normalized export format from raw input.
- Parameters
-
| value | Raw export format text. |
Definition at line 20 of file ExportFormat.cpp.
◆ empty()
| bool core::domain::ExportFormat::empty |
( |
| ) |
const |
|
noexcept |
Checks whether the stored value is empty.
- Returns
- true when no normalized export format is stored.
Definition at line 47 of file ExportFormat.cpp.
◆ isValid()
| bool core::domain::ExportFormat::isValid |
( |
const std::string & | value | ) |
|
|
static |
Checks whether a raw export format is valid.
- Parameters
-
| value | Raw export format text. |
- Returns
- true when the normalized text is non-empty and within the length limit.
Definition at line 42 of file ExportFormat.cpp.
◆ maxLength()
| std::size_t core::domain::ExportFormat::maxLength |
( |
| ) |
|
|
staticconstexprnoexcept |
Returns the maximum supported export format length.
- Returns
- Maximum accepted character count.
Definition at line 25 of file ExportFormat.cpp.
◆ normalize()
| std::string core::domain::ExportFormat::normalize |
( |
std::string | value | ) |
|
|
static |
Trims leading and trailing whitespace from an export format.
- Parameters
-
| value | Raw export format text. |
- Returns
- Trimmed export format text or an empty string.
Definition at line 29 of file ExportFormat.cpp.
◆ value()
| const std::string & core::domain::ExportFormat::value |
( |
| ) |
const |
|
noexcept |
The documentation for this class was generated from the following files: