All pastes #576452 Raw Edit

Something

public text v1 · immutable
·published 2007-06-19 14:22 UTC
rendered paste body
void PALUDIS_VISIBLE expose_dep_tag()
{
    /**
     * DepTag
     */
    bp::class_<DepTag, boost::noncopyable>
        (
         "DepTag",
         "A DepTag can be associated with a PackageDepSpec, and is transferred "
         "onto any associated DepListEntry instances.",
         bp::no_init
        )
        .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."
                )

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

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

    /**
     * GLSADepTag
     */
    bp::class_<GLSADepTag, bp::bases<DepTag>, bpboost::noncopyable>
        (
         "GLSADepTag",
         "DepTag subclass for GLSAs.",
         bp::init<const std::string &, const std::string &>("__init__(id_str, glsa_title_str)")
        )
        .add_property("glsa_title", &GLSADepTag::glsa_title,
                "Our GLSA title (for example, 'Yet another PHP remote access hole')"
                )
        ;