25#ifndef __BITPIT_PATCH_MANAGER_HPP__
26#define __BITPIT_PATCH_MANAGER_HPP__
30#include <unordered_map>
32#include "bitpit_common.hpp"
41 BITPIT_PUBLIC_API
static const int AUTOMATIC_ID;
47 void dump(std::ostream &stream);
48 void restore(std::istream &stream);
50 void dumpAll(std::ostream &stream);
54 static std::unique_ptr<PatchManager> m_manager;
57 std::vector<PatchKernel *> m_patchOrder;
58 std::unordered_map<PatchKernel *, int> m_patchIds;
65 int registerPatch(
PatchKernel *patch,
int id = AUTOMATIC_ID);
The IndexGenerator class allows to generate unique ids.
The PatchKernel class provides an interface for defining patches.
The PatchManager oversee the handling of the patches.
void dumpAll(std::ostream &stream)
void restoreAll(std::istream &stream)
void dump(std::ostream &stream)
PatchKernel * get(int id)
static PatchManager & manager()
void restore(std::istream &stream)