All pastes #576324 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-19 13:11 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>);
    }