Menu

[ee7d4c]: / binding / python / factpp_expression.cpp  Maximize  Restore  History

Download this file

78 lines (60 with data), 2.5 kB

 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/** @file "/owlcpp/binding/python/factpp_expression.cpp"
part of owlcpp project.
@n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt.
@n Copyright Mikhail K Levin 2013
*******************************************************************************/
#include "boost/python.hpp"
#include "boost/python/suite/indexing/vector_indexing_suite.hpp"
#include "boost/noncopyable.hpp"
namespace bp = boost::python;
#include "factpp/tExpressionManager.hpp"
void export_factpp_expressions() {
bp::class_<
TDLExpression, boost::noncopyable
>("TDLExpression", bp::no_init);
bp::class_<
TDLConceptExpression, bp::bases<TDLExpression>, boost::noncopyable
>("TDLConceptExpression", bp::no_init);
bp::class_<
TDLRoleExpression, bp::bases<TDLExpression>, boost::noncopyable
>("TDLRoleExpression", bp::no_init);
bp::class_<
TDLObjectRoleComplexExpression,
bp::bases<TDLRoleExpression>,
boost::noncopyable
>("TDLObjectRoleComplexExpression", bp::no_init);
bp::class_<
TDLObjectRoleExpression,
bp::bases<TDLObjectRoleComplexExpression>,
boost::noncopyable
>("TDLObjectRoleExpression", bp::no_init);
bp::class_<
TDLDataRoleExpression, bp::bases<TDLRoleExpression>, boost::noncopyable
>("TDLDataRoleExpression", bp::no_init);
bp::class_<
TDLIndividualExpression, bp::bases<TDLExpression>, boost::noncopyable
>("TDLIndividualExpression", bp::no_init);
bp::class_<
TDLIndividualName,
bp::bases<TDLIndividualExpression>,
bp::bases<TNamedEntity>,
boost::noncopyable
>("TDLIndividualExpression", bp::no_init);
bp::class_<
TDLDataExpression, bp::bases<TDLExpression>, boost::noncopyable
>("TDLDataExpression", bp::no_init);
bp::class_<
TDLDataTypeExpression, bp::bases<TDLDataExpression>, boost::noncopyable
>("TDLDataTypeExpression", bp::no_init);
bp::class_<
TDLDataValue, bp::bases<TDLDataExpression>, boost::noncopyable
>("TDLDataValue", bp::no_init);
bp::class_<
TDLFacetExpression, bp::bases<TDLDataExpression>, boost::noncopyable
>("TDLFacetExpression", bp::no_init);
bp::class_<
TDLDataTypeName, bp::bases<TDLDataTypeExpression>, boost::noncopyable
>("TDLDataTypeName", bp::no_init);
bp::class_<std::vector<TDLExpression const*> >("expression_vector")
.def(bp::vector_indexing_suite<std::vector<TDLExpression const*> >());
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.