Android-cuttlefish cvd tool
cuttlefish
io
default_visitor.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2026 The Android Open Source Project
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
16
#pragma once
17
18
#include <stdint.h>
19
20
#include "
cuttlefish/io/io.h
"
21
#include "
cuttlefish/io/reader.h
"
22
#include "
cuttlefish/io/reader_seeker.h
"
23
#include "
cuttlefish/io/reader_writer_seeker.h
"
24
#include "
cuttlefish/io/seeker.h
"
25
#include "
cuttlefish/io/writer.h
"
26
#include "
cuttlefish/io/writer_seeker.h
"
27
#include "
cuttlefish/result/result_type.h
"
28
29
namespace
cuttlefish
{
30
31
class
DefaultIoVisitor
:
public
IoVisitor
{
32
public
:
33
Result<void>
Accept
(
ConcatReaderSeeker
&);
34
Result<void>
Accept
(
ReadWindowView
&);
35
Result<void>
Accept
(
Reader
&);
36
Result<void>
Accept
(
ReaderSeeker
&);
37
Result<void>
Accept
(
ReaderWriterSeeker
&);
38
Result<void>
Accept
(
Seeker
&);
39
Result<void>
Accept
(
Writer
&);
40
Result<void>
Accept
(
WriterSeeker
&);
41
};
42
43
}
// namespace cuttlefish
cuttlefish::ConcatReaderSeeker
Definition:
concat.h:36
cuttlefish::DefaultIoVisitor
Definition:
default_visitor.h:31
cuttlefish::DefaultIoVisitor::Accept
Result< void > Accept(ConcatReaderSeeker &)
Definition:
default_visitor.cc:32
cuttlefish::IoVisitor
Definition:
io.h:45
cuttlefish::ReadWindowView
Definition:
read_window_view.h:30
cuttlefish::ReaderSeeker
Definition:
reader_seeker.h:29
cuttlefish::ReaderWriterSeeker
Definition:
reader_writer_seeker.h:27
cuttlefish::Reader
Definition:
reader.h:25
cuttlefish::Seeker
Definition:
seeker.h:25
cuttlefish::WriterSeeker
Definition:
writer_seeker.h:26
cuttlefish::Writer
Definition:
writer.h:25
io.h
cuttlefish
Definition:
alloc_driver.h:21
cuttlefish::Result
tl::expected< T, StackTraceError< E > > Result
Definition:
result_type.h:30
reader.h
reader_seeker.h
reader_writer_seeker.h
result_type.h
seeker.h
writer.h
writer_seeker.h
Generated by
1.9.4