| 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 #ifndef FLUTTER_IMPELLER_SCENE_IMPORTER_SWITCHES_H_
6 #define FLUTTER_IMPELLER_SCENE_IMPORTER_SWITCHES_H_
7
8 #include <iostream>
9 #include <memory>
10
11 #include "flutter/fml/command_line.h"
12 #include "flutter/fml/macros.h"
13 #include "flutter/fml/unique_fd.h"
14 #include "impeller/scene/importer/types.h"
15
16 namespace impeller {
17 namespace scene {
18 namespace importer {
19
20 struct Switches {
21 std::shared_ptr<fml::UniqueFD> working_directory;
22 std::string source_file_name;
23 SourceType input_type;
24 std::string output_file_name;
25
26 Switches();
27
28 ~Switches();
29
30 explicit Switches(const fml::CommandLine& command_line);
31
32 bool AreValid(std::ostream& explain) const;
33
34 static void PrintHelp(std::ostream& stream);
35 };
36
37 } // namespace importer
38 } // namespace scene
39 } // namespace impeller
40
41 #endif // FLUTTER_IMPELLER_SCENE_IMPORTER_SWITCHES_H_
impeller::scene::importer::Switches::input_type
SourceType input_type
Definition: switches.h:23
impeller::scene::importer::SourceType
SourceType
Definition: types.h:12
impeller::scene::importer::Switches
Definition: switches.h:20
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:24
impeller::scene::importer::Switches::source_file_name
std::string source_file_name
Definition: switches.h:22
impeller::scene::importer::Switches::~Switches
~Switches()
types.h
impeller::scene::importer::Switches::working_directory
std::shared_ptr< fml::UniqueFD > working_directory
Definition: switches.h:21
impeller
Definition: aiks_blur_unittests.cc:20
impeller::scene::importer::Switches::PrintHelp
static void PrintHelp(std::ostream &stream)
Definition: switches.cc:24