Flutter Engine
The Flutter Engine
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
15namespace impeller {
16namespace scene {
17namespace importer {
18
19struct Switches {
20 std::shared_ptr<fml::UniqueFD> working_directory;
21 std::string source_file_name;
23 std::string output_file_name;
24
26
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_
std::shared_ptr< fml::UniqueFD > working_directory
Definition: switches.h:20
static void PrintHelp(std::ostream &stream)
Definition: switches.cc:24
bool AreValid(std::ostream &explain) const
Definition: switches.cc:67