|
Click
|
Member of an 'ar' archive. More...
#include <archive.hh>
Public Member Functions | |
| bool | live () const |
| Return true iff the member should be included in an archive. | |
| void | kill () |
| Kill a member, preventing it from being archived. | |
Static Public Member Functions | |
| static int | parse (const String &str, Vector< ArchiveElement > &ar, ErrorHandler *errh=0) |
| Parse a string into a vector of ArchiveElement objects. | |
| static String | unparse (const Vector< ArchiveElement > &ar, ErrorHandler *errh=0) |
| Unparse a vector of ArchiveElement objects into a string. | |
| static ArchiveElement * | find (Vector< ArchiveElement > &ar, const String &name) |
| Locate an ArchiveElement in an archive by name. | |
| static const ArchiveElement * | find (const Vector< ArchiveElement > &ar, const String &name) |
| static int | extract (const Vector< ArchiveElement > &ar, const String &name, const String &dest, ErrorHandler *errh=0) |
Public Attributes | |
| String | name |
| Member name (no slashes allowed) | |
| int | date |
| Decimal seconds since the epoch (1/1/1970) | |
| int | uid |
| User ID of member. | |
| int | gid |
| Group ID of member. | |
| int | mode |
| File mode. | |
| String | data |
| Member contents. | |
Member of an 'ar' archive.
The ArchiveElement class represents members of ar(1) archives. Click uses the simple ar(1) format for passing configurations with additional information, such as compiled packages and element maps. An archive member consists of a name, data, and additional metadata. Complete archives are represented as vectors of ArchiveElement objects.
|
inline |
Return true iff the member should be included in an archive.
|
inline |
Kill a member, preventing it from being archived.
|
static |
Parse a string into a vector of ArchiveElement objects.
| str | input string | |
| [out] | ar | archive elements |
| errh | error message receiver |
|
static |
Unparse a vector of ArchiveElement objects into a string.
| ar | archive elements |
| errh | error message receiver |
|
inlinestatic |
Locate an ArchiveElement in an archive by name.
| ar | archive elements |
| name | element name |
|
inlinestatic |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| String ArchiveElement::name |
Member name (no slashes allowed)
| int ArchiveElement::date |
Decimal seconds since the epoch (1/1/1970)
| int ArchiveElement::uid |
User ID of member.
| int ArchiveElement::gid |
Group ID of member.
| int ArchiveElement::mode |
File mode.
| String ArchiveElement::data |
Member contents.