10#include <boost/python/class.hpp>
11#include <boost/python/copy_const_reference.hpp>
12#include <boost/python/operators.hpp>
13#include <boost/python/overloads.hpp>
19 using return_copy = return_value_policy<copy_const_reference>;
21 class_<Citation, boost::noncopyable>(
"Citation",
22 init<optional<
const std::string &,
const std::string &,
const std::string &,
23 const std::string &,
const std::string &>>())
24 .def(init<NeXus::File *, const std::string &>())
26 "Returns the description on the citation object")
27 .def(
"url", &
Citation::url, arg(
"self"), return_copy(),
"Returns the url on the citation object")
28 .def(
"doi", &
Citation::doi, arg(
"self"), return_copy(),
"Returns the doi on the citation object")
30 "Returns the bibtex formatted citation from the citation object")
32 "Returns the endnote formatted citation from the citation object")
33 .def(
"saveNexus", &
Citation::saveNexus, (arg(
"self"), arg(
"file"), arg(
"group")), return_copy(),
34 "Save data from this object to a NeXus file")
35 .def(
"__eq__", &Citation::operator==);
const std::string & endnote() const
const std::string & bibtex() const
void saveNexus(::NeXus::File *file, const std::string &group)
const std::string & doi() const
const std::string & url() const
const std::string & description() const