All pastes #576331 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-19 13:13 UTC
rendered paste body
void PALUDIS_VISIBLE expose_dep_tag()
{
    /**
     * DepTag
     */
    bp::class_<DepTag, boost::noncopyable>
        dt("DepTag",
                "A DepTag can be associated with a PackageDepSpec, and is transferred "
                "onto any associated DepListEntry instances.",
                bp::no_init
          );
    {
        dt.add_property("short_text", &DepTag::short_text,
                "[ro] string\n"
                "Our short text (for example, 'GLSA-1234') that is "
                "displayed with the dep list entry."
                );

        dt.add_property("category", &DepTag::category,
                "[ro] string\n"
                "Our DepTagCategory's tag."
                );

        dt.def("__cmp__", &py_cmp<DepTag>);
    }