aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-12-31 14:13:04 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-12-31 14:13:04 +0000
commit819f0f92f1b3c02f8bc52b0b02ddd08c198d4dc4 (patch)
tree08f763309159127c10d8ed16b64f91d7f1e693eb /doc
parent716dfad8ca27d774b1b07b9a6783b2afe8a960c6 (diff)
downloadpaludis-819f0f92f1b3c02f8bc52b0b02ddd08c198d4dc4.tar.gz
paludis-819f0f92f1b3c02f8bc52b0b02ddd08c198d4dc4.tar.xz
Add some more UseRequirement variants, and change the syntax of the old ones.
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec.cc24
1 files changed, 22 insertions, 2 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec.cc b/doc/api/cplusplus/examples/example_dep_spec.cc
index 9be91eb5d..c819d7f74 100644
--- a/doc/api/cplusplus/examples/example_dep_spec.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec.cc
@@ -51,14 +51,34 @@ namespace
s << "[!" << r.flag() << "]";
}
- void visit(const EqualUseRequirement & r)
+ void visit(const IfMineThenUseRequirement & r)
{
s << "[" << r.flag() << "?] (using '" << *r.package_id() << "')";
}
+ void visit(const IfNotMineThenUseRequirement & r)
+ {
+ s << "[" << r.flag() << "!?] (using '" << *r.package_id() << "')";
+ }
+
+ void visit(const IfMineThenNotUseRequirement & r)
+ {
+ s << "[-" << r.flag() << "?] (using '" << *r.package_id() << "')";
+ }
+
+ void visit(const IfNotMineThenNotUseRequirement & r)
+ {
+ s << "[-" << r.flag() << "!?] (using '" << *r.package_id() << "')";
+ }
+
+ void visit(const EqualUseRequirement & r)
+ {
+ s << "[" << r.flag() << "=] (using '" << *r.package_id() << "')";
+ }
+
void visit(const NotEqualUseRequirement & r)
{
- s << "[!" << r.flag() << "?] (using '" << *r.package_id() << "')";
+ s << "[" << r.flag() << "!=] (using '" << *r.package_id() << "')";
}
};
}