xtd 0.2.0
Loading...
Searching...
No Matches
day.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace xtd {
10 namespace forms {
19 enum class day {
21 monday,
23 tuesday,
29 friday,
33 sunday,
36 };
37 }
38}
39
41template<> struct xtd::enum_register<xtd::forms::day> {
42 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::day> {{xtd::forms::day::monday, "monday"}, {xtd::forms::day::tuesday, "tuesday"}, {xtd::forms::day::wednesday, "wednesday"}, {xtd::forms::day::thursday, "thursday"}, {xtd::forms::day::friday, "friday"}, {xtd::forms::day::saturday, "saturday"}, {xtd::forms::day::sunday, "sunday"}, {xtd::forms::day::default_day, "default_day"}};}
43};
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:19
day
Specifies the day of the week.
Definition day.h:19
@ tuesday
The day tuesday.
@ saturday
The day saturday.
@ sunday
The day sunday.
@ monday
The day monday.
@ wednesday
The day wednesday.
@ default_day
A default day of the week specified by the application.
@ thursday
The day thursday.
@ friday
The day friday.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:36