#include <cstdlib>
#include <map>
+#include <sstream>
#include <streambuf>
#include <string>
+#include <vector>
namespace ldid {
public Folder
{
private:
+ class StringBuffer :
+ public std::stringbuf
+ {
+ public:
+ StringBuffer() {
+ }
+
+ StringBuffer(const StringBuffer &rhs) :
+ std::stringbuf(rhs.str())
+ {
+ }
+ };
+
Folder &parent_;
- std::map<std::string, std::stringbuf> files_;
+ std::map<std::string, StringBuffer> files_;
public:
UnionFolder(Folder &parent);
}
};
-std::string Bundle(const std::string &root, Folder &folder, const std::string &key, std::map<std::string, std::vector<char>> &remote);
+std::string Bundle(const std::string &root, Folder &folder, const std::string &key, std::map<std::string, std::vector<char>> &remote, const std::string &entitlements);
typedef std::map<uint32_t, std::vector<char>> Slots;