From 220c132791438db24aec7bc42a0fea7b8ace6646 Mon Sep 17 00:00:00 2001 From: Niklaus Johner <niklaus.johner@unibas.ch> Date: Mon, 27 Apr 2015 10:36:40 +0200 Subject: [PATCH] Added CharList class --- modules/base/pymod/__init__.py.in | 2 +- modules/base/pymod/wrap_base.cc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/base/pymod/__init__.py.in b/modules/base/pymod/__init__.py.in index a57b7aedd..63cd09716 100644 --- a/modules/base/pymod/__init__.py.in +++ b/modules/base/pymod/__init__.py.in @@ -18,7 +18,7 @@ #------------------------------------------------------------------------------ -__all__=['Correl', 'FileLogSink', 'FloatList', 'FloatMatrix', 'GetCurrentLogSink', 'GetPrefixPath', 'GetSharedDataPath', 'GetVerbosityLevel', 'Histogram', 'IntList', 'LogDebug', 'LogError', 'LogInfo', 'LogScript', 'LogSink', 'LogTrace', 'LogVerbose', 'LogWarning', 'Max', 'Mean', 'Median', 'Min', 'MultiLogSink', 'PopLogSink', 'PopVerbosityLevel', 'PushLogSink', 'PushVerbosityLevel', 'Range', 'SetPrefixPath', 'StdDev', 'StreamLogSink', 'StringList', 'StringLogSink', 'Units', 'VERSION', 'VERSION_MAJOR', 'VERSION_MINOR', 'VERSION_PATCH', 'WITH_NUMPY', 'conop', 'geom', 'io', 'mol', 'seq', 'stutil' @ALL_ADDITIONAL_MODULES@] +__all__=['CharList','Correl', 'FileLogSink', 'FloatList', 'FloatMatrix', 'GetCurrentLogSink', 'GetPrefixPath', 'GetSharedDataPath', 'GetVerbosityLevel', 'Histogram', 'IntList', 'LogDebug', 'LogError', 'LogInfo', 'LogScript', 'LogSink', 'LogTrace', 'LogVerbose', 'LogWarning', 'Max', 'Mean', 'Median', 'Min', 'MultiLogSink', 'PopLogSink', 'PopVerbosityLevel', 'PushLogSink', 'PushVerbosityLevel', 'Range', 'SetPrefixPath', 'StdDev', 'StreamLogSink', 'StringList', 'StringLogSink', 'Units', 'VERSION', 'VERSION_MAJOR', 'VERSION_MINOR', 'VERSION_PATCH', 'WITH_NUMPY', 'conop', 'geom', 'io', 'mol', 'seq', 'stutil' @ALL_ADDITIONAL_MODULES@] from _ost_base import * from stutil import * diff --git a/modules/base/pymod/wrap_base.cc b/modules/base/pymod/wrap_base.cc index 835bc8e51..f142790dc 100644 --- a/modules/base/pymod/wrap_base.cc +++ b/modules/base/pymod/wrap_base.cc @@ -104,6 +104,10 @@ BOOST_PYTHON_MODULE(_ost_base) class_<std::vector<String> >("StringList", init<>()) .def(vector_indexing_suite<std::vector<String>, true>()) ; + + class_<std::vector<char> >("CharList", init<>()) + .def(vector_indexing_suite<std::vector<char>, true>()) + ; typedef std::vector<int> IntList; class_<std::vector<int> >("IntList", init<>()) -- GitLab