| Flutter Impeller |

switches.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #pragma once
6
7 #include <iostream>
8 #include <memory>
9
10 #include "flutter/fml/command_line.h"
11 #include "flutter/fml/macros.h"
12 #include "flutter/fml/unique_fd.h"
13 #include "impeller/scene/importer/types.h"
14
15 namespace impeller {
16 namespace scene {
17 namespace importer {
18
19 struct Switches {
20 std::shared_ptr<fml::UniqueFD> working_directory;
21 std::string source_file_name;
22 SourceType input_type;
23 std::string output_file_name;
24
25 Switches();
26
27 ~Switches();
28
29 explicit Switches(const fml::CommandLine& command_line);
30
31 bool AreValid(std::ostream& explain) const;
32
33 static void PrintHelp(std::ostream& stream);
34 };
35
36 } // namespace importer
37 } // namespace scene
38 } // namespace impeller
impeller::scene::importer::Switches::input_type
SourceType input_type
Definition: switches.h:22
impeller::scene::importer::SourceType
SourceType
Definition: types.h:11
impeller::scene::importer::Switches
Definition: switches.h:19
impeller::scene::importer::Switches::AreValid
bool AreValid(std::ostream &explain) const
Definition: switches.cc:67
impeller::scene::importer::Switches::Switches
Switches()
impeller::scene::importer::Switches::output_file_name
std::string output_file_name
Definition: switches.h:23
impeller::scene::importer::Switches::source_file_name
std::string source_file_name
Definition: switches.h:21
impeller::scene::importer::Switches::~Switches
~Switches()
types.h
impeller::scene::importer::Switches::working_directory
std::shared_ptr< fml::UniqueFD > working_directory
Definition: switches.h:20
impeller
Definition: aiks_context.cc:10
impeller::scene::importer::Switches::PrintHelp
static void PrintHelp(std::ostream &stream)
Definition: switches.cc:24