xtd 0.2.0
seek_origin.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../enum.hpp"
6#include <ios>
7
9namespace xtd {
11 namespace io {
16 enum class seek_origin {
18 begin = std::ios_base::beg,
20 current = std::ios_base::cur,
22 end = std::ios_base::end,
23 };
24 }
25}
26
27
29template<> struct xtd::enum_register<xtd::io::seek_origin> {
30 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::io::seek_origin> {{xtd::io::seek_origin::begin, L"begin"}, {xtd::io::seek_origin::current, L"current"}, {xtd::io::seek_origin::end, L"end"}};}
31};
@ io
I/O erreror occurs.
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.hpp:22
seek_origin
Specifies the position in a stream to use for seeking.
Definition seek_origin.hpp:16
@ current
Specifies the current position within a stream.
@ end
Specifies the end of a stream.
@ begin
Specifies the beginning of a stream.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Provides the registration struct for enumerations.
Definition enum_register.hpp:38