File: STOWRSResponse.cpp

package info (click to toggle)
odil 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,476 kB
  • sloc: cpp: 55,982; python: 3,947; javascript: 460; xml: 182; makefile: 99; sh: 36
file content (43 lines) | stat: -rw-r--r-- 1,706 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*************************************************************************
 * odil - Copyright (C) Universite de Strasbourg
 * Distributed under the terms of the CeCILL-B license, as published by
 * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
 * for details.
 ************************************************************************/

#include <pybind11/pybind11.h>
#include <pybind11/operators.h>

#include "odil/webservices/STOWRSResponse.h"

void
wrap_webservices_STOWRSResponse(pybind11::module & m)
{
    using namespace pybind11;
    using namespace odil::webservices;


    class_<STOWRSResponse>(m, "STOWRSResponse")
        .def(init())
        .def(init<HTTPResponse>())
        .def(self == self)
        .def(self != self)
        .def(
            "set_store_instance_responses",
            &STOWRSResponse::set_store_instance_responses)
        .def(
            "get_store_instance_responses",
            &STOWRSResponse::get_store_instance_responses)
        .def("get_media_type", &STOWRSResponse::get_media_type)
        .def("set_representation", &STOWRSResponse::set_representation)
        .def("get_representation", &STOWRSResponse::get_representation)
        .def("set_warning", &STOWRSResponse::set_warning)
        .def("is_status_warning", &STOWRSResponse::is_status_warning)
        .def("set_failure_code", &STOWRSResponse::set_failure_code)
        .def("get_failure_code", &STOWRSResponse::get_failure_code)
        .def("set_reason", &STOWRSResponse::set_reason)
        .def("get_reason", &STOWRSResponse::get_reason)
        .def("get_http_response", &STOWRSResponse::get_http_response)
        ;
}