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