xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
io
seek_origin.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../enum.hpp
"
6
#include <ios>
7
9
namespace
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
29
template
<>
struct
xtd::enum_register
<
xtd
::
io::seek_origin
> {
30
static
auto
values
()
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
};
enum.hpp
Contains enum_ and enum_ut_ keywords.
xtd::enum_collection
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:24
xtd::io::seek_origin
seek_origin
Specifies the position in a stream to use for seeking.
Definition
seek_origin.hpp:16
xtd::io::seek_origin::current
@ current
Specifies the current position within a stream.
Definition
seek_origin.hpp:20
xtd::io::seek_origin::end
@ end
Specifies the end of a stream.
Definition
seek_origin.hpp:22
xtd::io::seek_origin::begin
@ begin
Specifies the beginning of a stream.
Definition
seek_origin.hpp:18
xtd::io
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition
binary_reader.hpp:17
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::begin
auto begin() const -> const_iterator
Returns an iterator to the beginning.
Definition
read_only_span.hpp:186
xtd::end
auto end() const -> const_iterator
Returns an iterator to the end.
Definition
read_only_span.hpp:205
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.