private:
size_t size;
std::string segment_name;
- std::ostringstream checksums;
TAR *t;
};
// used to control object placement; objects with different group
// parameters are kept in separate segments.
std::string write_object(const char *data, size_t len,
- const std::string &group = "",
- const std::list<std::string> &refs = norefs);
+ const std::string &group = "");
// Ensure all segments have been fully written.
void sync();
std::string path;
std::map<std::string, struct segment_info *> segments;
- // An empty list which can be used as an argument to write_object to
- // indicate that this object depends on no others.
- static std::list<std::string> norefs;
-
// Ensure that all segments in the given group have been fully written.
void close_segment(const std::string &group);
// segment. Until that time, its name cannot be determined.
std::string get_name() const { return name; }
- // Logically, one object may reference other objects (such as a metadata
- // listing referncing actual file data blocks). Such references should be
- // noted explicitly. It may eventually be used to build up a tree of
- // checksums for later verifying integrity.
- void add_reference(const LbsObject *o);
-
private:
std::string group;
const char *data;