sapling/ctreemanifest/manifest_fetcher.h
Jun Wu a72478f016 codemod: better #includes
Summary:
This patch removes all `#include "../` lines and use the shortest possible
include path.

Test Plan: `make clean build`

Reviewers: durham, #mercurial, rmcelroy

Reviewed By: rmcelroy

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D5113672

Signature: t1:5113672:1495565454:961fb6f2f57a81a95013e0b8f67b2917c2e4523e
2017-05-23 11:57:32 -07:00

40 lines
958 B
C++

// manifest_fetcher.h - c++ declarations for a fetcher for manifests
//
// Copyright 2016 Facebook, Inc.
//
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.
//
// no-check-code
#ifndef REMOTEFILELOG_MANIFEST_FETCHER_H
#define REMOTEFILELOG_MANIFEST_FETCHER_H
#include <memory>
#include <string>
class ManifestFetcher;
#include "manifest.h"
#include "store.h"
/**
* Class used to obtain Manifests, given a path and node.
*/
class ManifestFetcher {
private:
std::shared_ptr<Store> _store;
public:
ManifestFetcher(std::shared_ptr<Store> store);
/**
* Fetches the Manifest from the store for the provided manifest key.
* Returns the manifest if found, or throws an exception if not found.
*/
ManifestPtr get(
const char *path, size_t pathlen,
std::string &node) const;
};
#endif //REMOTEFILELOG_MANIFEST_FETCHER_H