2#ifndef CLICK_ARCHIVE_HH
3#define CLICK_ARCHIVE_HH
76 FILE *f = fopen(dest.
c_str(),
"wb");
79 errh->error(
"%s: %s",
name.
c_str(), strerror(errno));
Error reporting class.
Definition error.hh:90
A string of characters.
Definition string.hh:22
int length() const
Return the string's length.
Definition string.hh:509
const char * c_str() const
Null-terminate the string.
Definition string.hh:519
Vector template.
Definition vector.hh:111
iterator end()
Return an iterator for the end of the vector.
Definition vector.hh:266
iterator begin()
Return an iterator for the first element in the vector.
Definition vector.hh:253
Flexible error handling classes.
Member of an 'ar' archive.
Definition archive.hh:21
static const ArchiveElement * find(const Vector< ArchiveElement > &ar, const String &name)
Definition archive.hh:67
static int parse(const String &str, Vector< ArchiveElement > &ar, ErrorHandler *errh=0)
Parse a string into a vector of ArchiveElement objects.
Definition archive.cc:62
int date
Decimal seconds since the epoch (1/1/1970)
Definition archive.hh:24
int uid
User ID of member.
Definition archive.hh:25
bool live() const
Return true iff the member should be included in an archive.
Definition archive.hh:31
static String unparse(const Vector< ArchiveElement > &ar, ErrorHandler *errh=0)
Unparse a vector of ArchiveElement objects into a string.
Definition archive.cc:155
String data
Member contents.
Definition archive.hh:28
String name
Member name (no slashes allowed)
Definition archive.hh:23
int gid
Group ID of member.
Definition archive.hh:26
int mode
File mode.
Definition archive.hh:27
static ArchiveElement * find(Vector< ArchiveElement > &ar, const String &name)
Locate an ArchiveElement in an archive by name.
Definition archive.hh:59
void kill()
Kill a member, preventing it from being archived.
Definition archive.hh:36
Click's vector container template.