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/unique_fd.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;
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
39 
40 #endif // FLUTTER_IMPELLER_SCENE_IMPORTER_SWITCHES_H_
impeller::scene::importer::Switches::input_type
SourceType input_type
Definition: switches.h:22
impeller::scene::importer::SourceType
SourceType
Definition: types.h:12
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_blend_unittests.cc:18
impeller::scene::importer::Switches::PrintHelp
static void PrintHelp(std::ostream &stream)
Definition: switches.cc:24