blob: 790bdbb4bfb2dea446ed3add2d95624fa71c0211 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_TONIC_PARSERS_PACKAGES_MAP_H_
#define LIB_TONIC_PARSERS_PACKAGES_MAP_H_
#include <string>
#include <unordered_map>
namespace tonic {
class PackagesMap {
public:
PackagesMap();
~PackagesMap();
bool Parse(const std::string& source, std::string* error);
std::string Resolve(const std::string& package_name);
private:
std::unordered_map<std::string, std::string> map_;
};
} // namespace tonic
#endif // LIB_TONIC_PARSERS_PACKAGES_MAP_H_