17 const std::string& distribution,
18 const std::string& release,
19 const std::string& codename,
20 const std::string& kernel,
21 const std::string& environmentVars) :
24 distribution(distribution),
28 environmentVars(environmentVars)
35 if (!read_name(reader)) {
38 if (!read_distribution(reader)) {
41 if (!read_release(reader)) {
44 if (!read_codename(reader)) {
47 if (!read_kernel(reader)) {
50 if (!read_environmentVars(reader)) {
75 if (!write_name(writer)) {
78 if (!write_distribution(writer)) {
81 if (!write_release(writer)) {
84 if (!write_codename(writer)) {
87 if (!write_kernel(writer)) {
90 if (!write_environmentVars(writer)) {
106 if (!
write(writer)) {
A simple collection of objects that can be described and transmitted in a portable way.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
An interface for reading from a network connection.
An interface for writing to a network connection.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
IDL-friendly connection reader.
bool readString(std::string &str, bool *is_vocab=nullptr)
IDL-friendly connection writer.
bool writeListHeader(int len) const
bool writeString(const std::string &str, bool skip_tag=false) const
An interface to the operating system, including Port based communication.