enums.cpp 972 Bytes
Newer Older
Justin Carpentier's avatar
Justin Carpentier committed
1
2
// Copyright (c) 2015-2018, CNRS
// Authors: Justin Carpentier <jcarpent@laas.fr>
Guilhem Saurel's avatar
Guilhem Saurel committed
3
4
5
//
#include "multicontact-api/scenario/fwd.hpp"
#include "multicontact-api/bindings/python/scenario/expose-scenario.hpp"
Pierre Fernbach's avatar
Pierre Fernbach committed
6
#include <boost/python.hpp>
Justin Carpentier's avatar
Justin Carpentier committed
7
8
#include <boost/python/enum.hpp>

Guilhem Saurel's avatar
Guilhem Saurel committed
9
10
11
namespace multicontact_api {
namespace python {
namespace bp = boost::python;
Guilhem Saurel's avatar
Guilhem Saurel committed
12

Guilhem Saurel's avatar
Guilhem Saurel committed
13
using namespace multicontact_api::scenario;
Guilhem Saurel's avatar
Guilhem Saurel committed
14

Guilhem Saurel's avatar
Guilhem Saurel committed
15
16
17
18
19
20
void exposeEnumConicType() {
  bp::enum_<ConicType>("ConicType")
      .value("CONIC_SOWC", CONIC_SOWC)
      .value("CONIC_DOUBLE_DESCRIPTION", CONIC_DOUBLE_DESCRIPTION)
      .value("CONIC_UNDEFINED", CONIC_UNDEFINED);
}
Guilhem Saurel's avatar
Guilhem Saurel committed
21

22
23
24
25
26
27
28
void exposeEnumContactType() {
  bp::enum_<ContactType>("ContactType")
      .value("CONTACT_UNDEFINED", CONTACT_UNDEFINED)
      .value("CONTACT_PLANAR", CONTACT_PLANAR)
      .value("CONTACT_POINT", CONTACT_POINT);
}

Pierre Fernbach's avatar
Pierre Fernbach committed
29
30
31
32
void exposeScenarioEnums() {
  exposeEnumConicType();
  exposeEnumContactType();
}
Guilhem Saurel's avatar
Guilhem Saurel committed
33
34
}  // namespace python
}  // namespace multicontact_api