Flutter Engine
The Flutter Engine
third_party
tonic
parsers
packages_map.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 LIB_TONIC_PARSERS_PACKAGES_MAP_H_
6
#define LIB_TONIC_PARSERS_PACKAGES_MAP_H_
7
8
#include <string>
9
#include <unordered_map>
10
11
namespace
tonic
{
12
13
class
PackagesMap
{
14
public
:
15
PackagesMap
();
16
~PackagesMap
();
17
18
bool
Parse
(
const
std::string&
source
, std::string*
error
);
19
std::string
Resolve
(
const
std::string& package_name);
20
21
private
:
22
std::unordered_map<std::string, std::string> map_;
23
};
24
25
}
// namespace tonic
26
27
#endif
// LIB_TONIC_PARSERS_PACKAGES_MAP_H_
tonic::PackagesMap
Definition:
packages_map.h:13
tonic::PackagesMap::Parse
bool Parse(const std::string &source, std::string *error)
Definition:
packages_map.cc:24
tonic::PackagesMap::Resolve
std::string Resolve(const std::string &package_name)
Definition:
packages_map.cc:83
tonic::PackagesMap::~PackagesMap
~PackagesMap()
Definition:
packages_map.cc:22
tonic::PackagesMap::PackagesMap
PackagesMap()
Definition:
packages_map.cc:20
source
SkBitmap source
Definition:
examples.cpp:28
error
const uint8_t uint32_t uint32_t GError ** error
Definition:
fl_pixel_buffer_texture_test.cc:40
tonic
Definition:
image_filter.h:14
Generated on Sun Jun 23 2024 21:56:53 for Flutter Engine by
1.9.4