11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_base', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_base', fp, pathname, description)
28 _IMP_base = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
53 def _swig_getattr(self,class_type,name):
54 if (name ==
"thisown"):
return self.this.own()
55 method = class_type.__swig_getmethods__.get(name,
None)
56 if method:
return method(self)
57 raise AttributeError(name)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
72 def _swig_setattr_nondynamic_method(set):
73 def set_attr(self,name,value):
74 if (name ==
"thisown"):
return self.this.own(value)
75 if hasattr(self,name)
or (name ==
"this"):
78 raise AttributeError(
"You cannot add attributes to %s" % self)
84 weakref_proxy = weakref.proxy
86 weakref_proxy =
lambda x: x
89 class IMP_BASE_SwigPyIterator(object):
90 """Proxy of C++ swig::IMP_BASE_SwigPyIterator class"""
91 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
92 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
94 __swig_destroy__ = _IMP_base.delete_IMP_BASE_SwigPyIterator
95 __del__ =
lambda self :
None;
97 """value(IMP_BASE_SwigPyIterator self) -> PyObject *"""
98 return _IMP_base.IMP_BASE_SwigPyIterator_value(self)
102 incr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
103 incr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
105 return _IMP_base.IMP_BASE_SwigPyIterator_incr(self, n)
109 decr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
110 decr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
112 return _IMP_base.IMP_BASE_SwigPyIterator_decr(self, n)
114 def distance(self, *args):
115 """distance(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t"""
116 return _IMP_base.IMP_BASE_SwigPyIterator_distance(self, *args)
118 def equal(self, *args):
119 """equal(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
120 return _IMP_base.IMP_BASE_SwigPyIterator_equal(self, *args)
123 """copy(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator"""
124 return _IMP_base.IMP_BASE_SwigPyIterator_copy(self)
127 """next(IMP_BASE_SwigPyIterator self) -> PyObject *"""
128 return _IMP_base.IMP_BASE_SwigPyIterator_next(self)
131 """__next__(IMP_BASE_SwigPyIterator self) -> PyObject *"""
132 return _IMP_base.IMP_BASE_SwigPyIterator___next__(self)
135 """previous(IMP_BASE_SwigPyIterator self) -> PyObject *"""
136 return _IMP_base.IMP_BASE_SwigPyIterator_previous(self)
138 def advance(self, *args):
139 """advance(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
140 return _IMP_base.IMP_BASE_SwigPyIterator_advance(self, *args)
142 def __eq__(self, *args):
143 """__eq__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
144 return _IMP_base.IMP_BASE_SwigPyIterator___eq__(self, *args)
146 def __ne__(self, *args):
147 """__ne__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
148 return _IMP_base.IMP_BASE_SwigPyIterator___ne__(self, *args)
150 def __iadd__(self, *args):
151 """__iadd__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
152 return _IMP_base.IMP_BASE_SwigPyIterator___iadd__(self, *args)
154 def __isub__(self, *args):
155 """__isub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
156 return _IMP_base.IMP_BASE_SwigPyIterator___isub__(self, *args)
158 def __add__(self, *args):
159 """__add__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
160 return _IMP_base.IMP_BASE_SwigPyIterator___add__(self, *args)
162 def __sub__(self, *args):
164 __sub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator
165 __sub__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t
167 return _IMP_base.IMP_BASE_SwigPyIterator___sub__(self, *args)
169 def __iter__(self):
return self
170 IMP_BASE_SwigPyIterator_swigregister = _IMP_base.IMP_BASE_SwigPyIterator_swigregister
171 IMP_BASE_SwigPyIterator_swigregister(IMP_BASE_SwigPyIterator)
178 IMP_DEBUG = _IMP_base.IMP_DEBUG
179 IMP_RELEASE = _IMP_base.IMP_RELEASE
180 IMP_SILENT = _IMP_base.IMP_SILENT
181 IMP_PROGRESS = _IMP_base.IMP_PROGRESS
182 IMP_TERSE = _IMP_base.IMP_TERSE
183 IMP_VERBOSE = _IMP_base.IMP_VERBOSE
184 IMP_MEMORY = _IMP_base.IMP_MEMORY
185 IMP_NONE = _IMP_base.IMP_NONE
186 IMP_USAGE = _IMP_base.IMP_USAGE
187 IMP_INTERNAL = _IMP_base.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_base.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_base.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_base.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_base.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_base.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_base.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_base.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_base.IMPBASE_SHOW_WARNINGS
197 class _DirectorObjects(object):
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 DEFAULT_CHECK = _IMP_base.DEFAULT_CHECK
223 NONE = _IMP_base.NONE
224 USAGE = _IMP_base.USAGE
225 USAGE_AND_INTERNAL = _IMP_base.USAGE_AND_INTERNAL
228 """set_check_level(IMP::base::CheckLevel tf)"""
229 return _IMP_base.set_check_level(*args)
232 """get_check_level() -> IMP::base::CheckLevel"""
233 return _IMP_base.get_check_level()
234 from _IMP_base
import Exception, InternalException, ModelException, EventException
235 from _IMP_base
import UsageException, IndexException, IOException, ValueException
237 class _ostream(object):
238 """Proxy of C++ std::ostream class"""
239 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
240 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
241 __repr__ = _swig_repr
242 def write(self, *args):
243 """write(_ostream self, char const * osa_buf)"""
244 return _IMP_base._ostream_write(self, *args)
246 _ostream_swigregister = _IMP_base._ostream_swigregister
247 _ostream_swigregister(_ostream)
249 IMP_COMPILER_HAS_OVERRIDE = _IMP_base.IMP_COMPILER_HAS_OVERRIDE
250 IMP_COMPILER_HAS_FINAL = _IMP_base.IMP_COMPILER_HAS_FINAL
251 IMP_HAS_NOEXCEPT = _IMP_base.IMP_HAS_NOEXCEPT
252 class RandomNumberGenerator(object):
253 """Proxy of C++ IMP::base::RandomNumberGenerator class"""
254 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
255 __repr__ = _swig_repr
256 def seed(self, *args):
257 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
258 return _IMP_base.RandomNumberGenerator_seed(self, *args)
261 """__call__(RandomNumberGenerator self) -> int"""
262 return _IMP_base.RandomNumberGenerator___call__(self)
265 """__init__(IMP::base::RandomNumberGenerator self) -> RandomNumberGenerator"""
266 this = _IMP_base.new_RandomNumberGenerator()
267 try: self.this.append(this)
268 except: self.this = this
269 __swig_destroy__ = _IMP_base.delete_RandomNumberGenerator
270 __del__ =
lambda self :
None;
271 RandomNumberGenerator_swigregister = _IMP_base.RandomNumberGenerator_swigregister
272 RandomNumberGenerator_swigregister(RandomNumberGenerator)
274 _raii_types.append(
"SetLogState")
276 _raii_types.append(
"SetNumberOfThreads")
278 _raii_types.append(
"SetCheckState")
280 _object_types.append(
"Object")
283 def _object_cast_to_Object(*args):
284 """_object_cast_to_Object(Object * o) -> Object"""
285 return _IMP_base._object_cast_to_Object(*args)
286 _object_types.append(
"_TestObject")
289 def _object_cast_to__TestObject(*args):
290 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
291 return _IMP_base._object_cast_to__TestObject(*args)
293 _plural_types.append(
"VersionInfos")
294 _value_types.append(
"VersionInfo")
296 _raii_types.append(
"CreateLogContext")
298 _raii_types.append(
"WarningContext")
300 _raii_types.append(
"SetLogTarget")
303 _plural_types.append(
"_TestValues")
304 _value_types.append(
"_TestValue")
307 _plural_types.append(
"Floats")
308 _value_types.append(
"Float")
311 _plural_types.append(
"Ints")
312 _value_types.append(
"Int")
315 _plural_types.append(
"Strings")
316 _value_types.append(
"String")
319 _plural_types.append(
"_Protections")
320 _value_types.append(
"_Protection")
322 class _InputAdaptor(object):
323 """Proxy of C++ IMP::base::InputAdaptor class"""
324 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
325 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
326 __repr__ = _swig_repr
327 __swig_destroy__ = _IMP_base.delete__InputAdaptor
328 __del__ =
lambda self :
None;
329 _InputAdaptor_swigregister = _IMP_base._InputAdaptor_swigregister
330 _InputAdaptor_swigregister(_InputAdaptor)
331 cvar = _IMP_base.cvar
332 random_number_generator = cvar.random_number_generator
334 class _NonCopyable(object):
335 """Proxy of C++ IMP::base::NonCopyable class"""
336 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
337 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
338 __repr__ = _swig_repr
339 __swig_destroy__ = _IMP_base.delete__NonCopyable
340 __del__ =
lambda self :
None;
341 _NonCopyable_swigregister = _IMP_base._NonCopyable_swigregister
342 _NonCopyable_swigregister(_NonCopyable)
344 class _RAII(_NonCopyable):
345 """Proxy of C++ IMP::base::RAII class"""
346 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
347 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
348 __repr__ = _swig_repr
349 __swig_destroy__ = _IMP_base.delete__RAII
350 __del__ =
lambda self :
None;
351 _RAII_swigregister = _IMP_base._RAII_swigregister
352 _RAII_swigregister(_RAII)
354 class _Value(object):
355 """Proxy of C++ IMP::base::Value class"""
356 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
357 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
358 __repr__ = _swig_repr
359 __swig_destroy__ = _IMP_base.delete__Value
360 __del__ =
lambda self :
None;
361 _Value_swigregister = _IMP_base._Value_swigregister
362 _Value_swigregister(_Value)
366 """get_executable_name() -> std::string"""
367 return _IMP_base.get_executable_name()
371 setup_from_argv(IMP::Strings const & argv, std::string description)
372 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description,
373 int num_positional) -> IMP::Strings
375 return _IMP_base.setup_from_argv(*args)
378 """add_string_flag(std::string name, std::string default_value, std::string description)"""
379 return _IMP_base.add_string_flag(*args)
382 """get_string_flag(std::string name) -> std::string"""
383 return _IMP_base.get_string_flag(*args)
386 """add_int_flag(std::string name, size_t default_value, std::string description)"""
387 return _IMP_base.add_int_flag(*args)
390 """get_int_flag(std::string name) -> size_t"""
391 return _IMP_base.get_int_flag(*args)
394 """add_bool_flag(std::string name, std::string description)"""
395 return _IMP_base.add_bool_flag(*args)
398 """get_bool_flag(std::string name) -> bool"""
399 return _IMP_base.get_bool_flag(*args)
402 """add_float_flag(std::string name, double default_value, std::string description)"""
403 return _IMP_base.add_float_flag(*args)
406 """get_float_flag(std::string name) -> double"""
407 return _IMP_base.get_float_flag(*args)
411 write_help(_ostream out=std::cerr)
414 return _IMP_base.write_help(*args)
417 """get_is_quick_test() -> bool"""
418 return _IMP_base.get_is_quick_test()
419 DEFAULT = _IMP_base.DEFAULT
420 SILENT = _IMP_base.SILENT
421 WARNING = _IMP_base.WARNING
422 PROGRESS = _IMP_base.PROGRESS
423 TERSE = _IMP_base.TERSE
424 VERBOSE = _IMP_base.VERBOSE
425 MEMORY = _IMP_base.MEMORY
426 ALL_LOG = _IMP_base.ALL_LOG
427 NO_STATISTICS = _IMP_base.NO_STATISTICS
428 ALL_STATISTICS = _IMP_base.ALL_STATISTICS
429 class VersionInfo(_Value):
430 """Proxy of C++ IMP::base::VersionInfo class"""
431 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
432 def __init__(self, *args):
434 __init__(IMP::base::VersionInfo self, std::string module, std::string version) -> VersionInfo
435 __init__(IMP::base::VersionInfo self) -> VersionInfo
437 this = _IMP_base.new_VersionInfo(*args)
438 try: self.this.append(this)
439 except: self.this = this
440 def get_module(self):
441 """get_module(VersionInfo self) -> std::string"""
442 return _IMP_base.VersionInfo_get_module(self)
444 def get_version(self):
445 """get_version(VersionInfo self) -> std::string"""
446 return _IMP_base.VersionInfo_get_version(self)
448 def show(self, *args):
450 show(VersionInfo self, _ostream out=std::cout)
451 show(VersionInfo self)
453 return _IMP_base.VersionInfo_show(self, *args)
455 def __cmp__(self, *args):
456 """__cmp__(VersionInfo self, VersionInfo o) -> int"""
457 return _IMP_base.VersionInfo___cmp__(self, *args)
459 def __eq__(self, *args):
460 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
461 return _IMP_base.VersionInfo___eq__(self, *args)
463 def __ne__(self, *args):
464 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
465 return _IMP_base.VersionInfo___ne__(self, *args)
467 def __lt__(self, *args):
468 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
469 return _IMP_base.VersionInfo___lt__(self, *args)
471 def __gt__(self, *args):
472 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
473 return _IMP_base.VersionInfo___gt__(self, *args)
475 def __ge__(self, *args):
476 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
477 return _IMP_base.VersionInfo___ge__(self, *args)
479 def __le__(self, *args):
480 """__le__(VersionInfo self, VersionInfo o) -> bool"""
481 return _IMP_base.VersionInfo___le__(self, *args)
484 """__str__(VersionInfo self) -> std::string"""
485 return _IMP_base.VersionInfo___str__(self)
488 """__repr__(VersionInfo self) -> std::string"""
489 return _IMP_base.VersionInfo___repr__(self)
491 __swig_destroy__ = _IMP_base.delete_VersionInfo
492 __del__ =
lambda self :
None;
493 VersionInfo_swigregister = _IMP_base.VersionInfo_swigregister
494 VersionInfo_swigregister(VersionInfo)
496 class TextOutput(_InputAdaptor):
497 """Proxy of C++ IMP::base::TextOutput class"""
498 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
499 __repr__ = _swig_repr
500 def __init__(self, *args):
502 __init__(IMP::base::TextOutput self, int arg2) -> TextOutput
503 __init__(IMP::base::TextOutput self, double arg2) -> TextOutput
504 __init__(IMP::base::TextOutput self, char const * c, bool append=False) -> TextOutput
505 __init__(IMP::base::TextOutput self, char const * c) -> TextOutput
506 __init__(IMP::base::TextOutput self, IMP::base::TextProxy< std::ostream > p) -> TextOutput
507 __init__(IMP::base::TextOutput self) -> TextOutput
508 __init__(IMP::base::TextOutput self, std::string file_name, bool append=False) -> TextOutput
509 __init__(IMP::base::TextOutput self, std::string file_name) -> TextOutput
511 this = _IMP_base.new_TextOutput(*args)
512 try: self.this.append(this)
513 except: self.this = this
514 def show(self, *args):
516 show(TextOutput self, _ostream out=std::cout)
517 show(TextOutput self)
519 return _IMP_base.TextOutput_show(self, *args)
522 """get_name(TextOutput self) -> std::string"""
523 return _IMP_base.TextOutput_get_name(self)
525 __swig_destroy__ = _IMP_base.delete_TextOutput
526 __del__ =
lambda self :
None;
527 TextOutput_swigregister = _IMP_base.TextOutput_swigregister
528 TextOutput_swigregister(TextOutput)
530 class TextInput(_InputAdaptor):
531 """Proxy of C++ IMP::base::TextInput class"""
532 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
533 __repr__ = _swig_repr
534 def __init__(self, *args):
536 __init__(IMP::base::TextInput self, int arg2) -> TextInput
537 __init__(IMP::base::TextInput self, double arg2) -> TextInput
538 __init__(IMP::base::TextInput self, char const * c) -> TextInput
539 __init__(IMP::base::TextInput self, IMP::base::TextProxy< std::istream > p) -> TextInput
540 __init__(IMP::base::TextInput self) -> TextInput
541 __init__(IMP::base::TextInput self, std::string file_name) -> TextInput
543 this = _IMP_base.new_TextInput(*args)
544 try: self.this.append(this)
545 except: self.this = this
546 def show(self, *args):
548 show(TextInput self, _ostream out=std::cout)
551 return _IMP_base.TextInput_show(self, *args)
554 """get_name(TextInput self) -> std::string"""
555 return _IMP_base.TextInput_get_name(self)
557 __swig_destroy__ = _IMP_base.delete_TextInput
558 __del__ =
lambda self :
None;
559 TextInput_swigregister = _IMP_base.TextInput_swigregister
560 TextInput_swigregister(TextInput)
562 class SetLogTarget(_RAII):
563 """Proxy of C++ IMP::base::SetLogTarget class"""
564 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
565 def __init__(self, *args):
567 __init__(IMP::base::SetLogTarget self) -> SetLogTarget
568 __init__(IMP::base::SetLogTarget self, TextOutput to) -> SetLogTarget
570 this = _IMP_base.new_SetLogTarget(*args)
571 try: self.this.append(this)
572 except: self.this = this
573 def set(self, *args):
574 """set(SetLogTarget self, TextOutput to)"""
575 return _IMP_base.SetLogTarget_set(self, *args)
578 """reset(SetLogTarget self)"""
579 return _IMP_base.SetLogTarget_reset(self)
581 __swig_destroy__ = _IMP_base.delete_SetLogTarget
582 __del__ =
lambda self :
None;
583 def show(self, *args):
585 show(SetLogTarget self, _ostream out=std::cout)
586 show(SetLogTarget self)
588 return _IMP_base.SetLogTarget_show(self, *args)
591 """__str__(SetLogTarget self) -> std::string"""
592 return _IMP_base.SetLogTarget___str__(self)
595 """__repr__(SetLogTarget self) -> std::string"""
596 return _IMP_base.SetLogTarget___repr__(self)
598 SetLogTarget_swigregister = _IMP_base.SetLogTarget_swigregister
599 SetLogTarget_swigregister(SetLogTarget)
604 create_temporary_file(std::string prefix="imp_temp", std::string suffix="") -> TextOutput
605 create_temporary_file(std::string prefix="imp_temp") -> TextOutput
606 create_temporary_file() -> TextOutput
608 return _IMP_base.create_temporary_file(prefix, suffix)
612 create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="") -> std::string
613 create_temporary_file_name(std::string prefix="imp_temp") -> std::string
614 create_temporary_file_name() -> std::string
616 return _IMP_base.create_temporary_file_name(prefix, suffix)
619 """get_relative_path(std::string base, std::string relative) -> std::string"""
620 return _IMP_base.get_relative_path(*args)
622 def push_log_context(*args):
623 """push_log_context(char const * functionname, void const * object)"""
624 return _IMP_base.push_log_context(*args)
626 def pop_log_context():
627 """pop_log_context()"""
628 return _IMP_base.pop_log_context()
632 add_to_log(std::string to_write)
633 add_to_log(IMP::base::LogLevel level, std::string to_write)
635 return _IMP_base.add_to_log(*args)
638 """set_log_level(IMP::base::LogLevel l)"""
639 return _IMP_base.set_log_level(*args)
642 """set_log_timer(bool tb)"""
643 return _IMP_base.set_log_timer(*args)
646 """reset_log_timer()"""
647 return _IMP_base.reset_log_timer()
650 """get_log_level() -> IMP::base::LogLevel"""
651 return _IMP_base.get_log_level()
654 """set_progress_display(std::string description, unsigned int steps)"""
655 return _IMP_base.set_progress_display(*args)
659 add_to_progress_display(unsigned int step=1)
660 add_to_progress_display()
662 return _IMP_base.add_to_progress_display(step)
663 class Object(_NonCopyable):
664 """Proxy of C++ IMP::base::Object class"""
665 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
666 def __init__(self, *args):
667 """__init__(IMP::base::Object self, std::string name) -> Object"""
668 if self.__class__ == Object:
672 this = _IMP_base.new_Object(_self, *args)
673 try: self.this.append(this)
674 except: self.this = this
675 if self.__class__ != Object:
677 IMP.base._director_objects.register(self)
681 __swig_destroy__ = _IMP_base.delete_Object
682 __del__ =
lambda self :
None;
684 """__hash__(Object self) -> std::size_t"""
685 return _IMP_base.Object___hash__(self)
688 """set_log_level(Object self, IMP::base::LogLevel l)"""
689 return _IMP_base.Object_set_log_level(self, *args)
692 """set_check_level(Object self, IMP::base::CheckLevel l)"""
693 return _IMP_base.Object_set_check_level(self, *args)
696 """get_log_level(Object self) -> IMP::base::LogLevel"""
697 return _IMP_base.Object_get_log_level(self)
700 """get_check_level(Object self) -> IMP::base::CheckLevel"""
701 return _IMP_base.Object_get_check_level(self)
703 def get_version_info(self):
704 """get_version_info(Object self) -> VersionInfo"""
705 return _IMP_base.Object_get_version_info(self)
708 """get_name(Object self) -> std::string const &"""
709 return _IMP_base.Object_get_name(self)
711 def set_name(self, *args):
712 """set_name(Object self, std::string name)"""
713 return _IMP_base.Object_set_name(self, *args)
715 def get_type_name(self):
716 """get_type_name(Object self) -> std::string"""
717 return _IMP_base.Object_get_type_name(self)
719 def set_was_used(self, *args):
720 """set_was_used(Object self, bool tf)"""
721 return _IMP_base.Object_set_was_used(self, *args)
723 def show(self, *args):
725 show(Object self, _ostream out=std::cout)
728 return _IMP_base.Object_show(self, *args)
730 def get_string(self):
731 """get_string(Object self) -> std::string"""
732 return _IMP_base.Object_get_string(self)
734 def _on_destruction(self):
735 """_on_destruction(Object self)"""
736 return _IMP_base.Object__on_destruction(self)
738 def get_is_valid(self):
739 """get_is_valid(Object self) -> bool"""
740 return _IMP_base.Object_get_is_valid(self)
742 def get_ref_count(self):
743 """get_ref_count(Object self) -> unsigned int"""
744 return _IMP_base.Object_get_ref_count(self)
746 def get_number_of_live_objects():
747 """get_number_of_live_objects() -> unsigned int"""
748 return _IMP_base.Object_get_number_of_live_objects()
750 get_number_of_live_objects = staticmethod(get_number_of_live_objects)
751 def get_is_shared(self):
752 """get_is_shared(Object self) -> bool"""
753 return _IMP_base.Object_get_is_shared(self)
755 def clear_caches(self):
756 """clear_caches(Object self)"""
757 return _IMP_base.Object_clear_caches(self)
759 def do_destroy(self):
760 """do_destroy(Object self)"""
761 return _IMP_base.Object_do_destroy(self)
763 def __eq__(self, *args):
764 """__eq__(Object self, Object o) -> bool"""
765 return _IMP_base.Object___eq__(self, *args)
767 def __ne__(self, *args):
768 """__ne__(Object self, Object o) -> bool"""
769 return _IMP_base.Object___ne__(self, *args)
771 def __le__(self, *args):
772 """__le__(Object self, Object o) -> bool"""
773 return _IMP_base.Object___le__(self, *args)
775 def __lt__(self, *args):
776 """__lt__(Object self, Object o) -> bool"""
777 return _IMP_base.Object___lt__(self, *args)
779 def __ge__(self, *args):
780 """__ge__(Object self, Object o) -> bool"""
781 return _IMP_base.Object___ge__(self, *args)
783 def __gt__(self, *args):
784 """__gt__(Object self, Object o) -> bool"""
785 return _IMP_base.Object___gt__(self, *args)
788 """__str__(Object self) -> std::string"""
789 return _IMP_base.Object___str__(self)
792 """__repr__(Object self) -> std::string"""
793 return _IMP_base.Object___repr__(self)
796 return _object_cast_to_Object(o)
797 get_from = staticmethod(get_from)
799 def __disown__(self):
801 _IMP_base.disown_Object(self)
802 return weakref_proxy(self)
803 Object_swigregister = _IMP_base.Object_swigregister
804 Object_swigregister(Object)
806 def Object_get_number_of_live_objects():
807 """Object_get_number_of_live_objects() -> unsigned int"""
808 return _IMP_base.Object_get_number_of_live_objects()
810 class SetLogState(_RAII):
811 """Proxy of C++ IMP::base::SetLogState class"""
812 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
814 """reset(SetLogState self)"""
815 return _IMP_base.SetLogState_reset(self)
817 __swig_destroy__ = _IMP_base.delete_SetLogState
818 __del__ =
lambda self :
None;
819 def show(self, *args):
821 show(SetLogState self, _ostream out=std::cout)
822 show(SetLogState self)
824 return _IMP_base.SetLogState_show(self, *args)
826 def __init__(self, *args):
828 __init__(IMP::base::SetLogState self) -> SetLogState
829 __init__(IMP::base::SetLogState self, Object o, IMP::base::LogLevel l) -> SetLogState
830 __init__(IMP::base::SetLogState self, IMP::base::LogLevel l) -> SetLogState
832 this = _IMP_base.new_SetLogState(*args)
833 try: self.this.append(this)
834 except: self.this = this
835 def set(self, *args):
837 set(SetLogState self, Object o, IMP::base::LogLevel l)
838 set(SetLogState self, IMP::base::LogLevel l)
840 return _IMP_base.SetLogState_set(self, *args)
843 """__str__(SetLogState self) -> std::string"""
844 return _IMP_base.SetLogState___str__(self)
847 """__repr__(SetLogState self) -> std::string"""
848 return _IMP_base.SetLogState___repr__(self)
850 SetLogState_swigregister = _IMP_base.SetLogState_swigregister
851 SetLogState_swigregister(SetLogState)
853 class WarningContext(object):
854 """Proxy of C++ IMP::base::WarningContext class"""
855 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
856 data_ = _swig_property(_IMP_base.WarningContext_data__get, _IMP_base.WarningContext_data__set)
857 def add_warning(self, *args):
858 """add_warning(WarningContext self, std::string key, std::string warning)"""
859 return _IMP_base.WarningContext_add_warning(self, *args)
861 def clear_warnings(self):
862 """clear_warnings(WarningContext self)"""
863 return _IMP_base.WarningContext_clear_warnings(self)
865 def dump_warnings(self):
866 """dump_warnings(WarningContext self)"""
867 return _IMP_base.WarningContext_dump_warnings(self)
869 __swig_destroy__ = _IMP_base.delete_WarningContext
870 __del__ =
lambda self :
None;
871 def show(self, *args):
873 show(WarningContext self, _ostream out=std::cout)
874 show(WarningContext self)
876 return _IMP_base.WarningContext_show(self, *args)
879 """__str__(WarningContext self) -> std::string"""
880 return _IMP_base.WarningContext___str__(self)
883 """__repr__(WarningContext self) -> std::string"""
884 return _IMP_base.WarningContext___repr__(self)
887 """__init__(IMP::base::WarningContext self) -> WarningContext"""
888 this = _IMP_base.new_WarningContext()
889 try: self.this.append(this)
890 except: self.this = this
891 WarningContext_swigregister = _IMP_base.WarningContext_swigregister
892 WarningContext_swigregister(WarningContext)
894 class CreateLogContext(_RAII):
895 """Proxy of C++ IMP::base::CreateLogContext class"""
896 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
897 def __init__(self, *args):
899 __init__(IMP::base::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
900 __init__(IMP::base::CreateLogContext self, std::string fname) -> CreateLogContext
901 __init__(IMP::base::CreateLogContext self) -> CreateLogContext
902 __init__(IMP::base::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
903 __init__(IMP::base::CreateLogContext self, char const * fname) -> CreateLogContext
905 this = _IMP_base.new_CreateLogContext(*args)
906 try: self.this.append(this)
907 except: self.this = this
908 def set(self, *args):
910 set(CreateLogContext self, char const * fname, Object object=None)
911 set(CreateLogContext self, char const * fname)
913 return _IMP_base.CreateLogContext_set(self, *args)
916 """reset(CreateLogContext self)"""
917 return _IMP_base.CreateLogContext_reset(self)
919 __swig_destroy__ = _IMP_base.delete_CreateLogContext
920 __del__ =
lambda self :
None;
921 def show(self, *args):
923 show(CreateLogContext self, _ostream out=std::cout)
924 show(CreateLogContext self)
926 return _IMP_base.CreateLogContext_show(self, *args)
929 """__str__(CreateLogContext self) -> std::string"""
930 return _IMP_base.CreateLogContext___str__(self)
933 """__repr__(CreateLogContext self) -> std::string"""
934 return _IMP_base.CreateLogContext___repr__(self)
936 CreateLogContext_swigregister = _IMP_base.CreateLogContext_swigregister
937 CreateLogContext_swigregister(CreateLogContext)
939 class SetCheckState(_RAII):
940 """Proxy of C++ IMP::base::SetCheckState class"""
941 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
943 """reset(SetCheckState self)"""
944 return _IMP_base.SetCheckState_reset(self)
946 __swig_destroy__ = _IMP_base.delete_SetCheckState
947 __del__ =
lambda self :
None;
948 def show(self, *args):
950 show(SetCheckState self, _ostream out=std::cout)
951 show(SetCheckState self)
953 return _IMP_base.SetCheckState_show(self, *args)
955 def __init__(self, *args):
957 __init__(IMP::base::SetCheckState self) -> SetCheckState
958 __init__(IMP::base::SetCheckState self, Object o, IMP::base::CheckLevel l) -> SetCheckState
959 __init__(IMP::base::SetCheckState self, IMP::base::CheckLevel l) -> SetCheckState
961 this = _IMP_base.new_SetCheckState(*args)
962 try: self.this.append(this)
963 except: self.this = this
964 def set(self, *args):
966 set(SetCheckState self, Object o, IMP::base::CheckLevel l)
967 set(SetCheckState self, IMP::base::CheckLevel l)
969 return _IMP_base.SetCheckState_set(self, *args)
972 """__str__(SetCheckState self) -> std::string"""
973 return _IMP_base.SetCheckState___str__(self)
976 """__repr__(SetCheckState self) -> std::string"""
977 return _IMP_base.SetCheckState___repr__(self)
979 SetCheckState_swigregister = _IMP_base.SetCheckState_swigregister
980 SetCheckState_swigregister(SetCheckState)
984 """get_unique_name(std::string templ) -> std::string"""
985 return _IMP_base.get_unique_name(*args)
986 class _Protection(object):
987 """Proxy of C++ IMP::base::internal::_Protection class"""
988 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
989 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
990 def show(self, *args):
992 show(_Protection self, _ostream out=std::cout)
993 show(_Protection self)
995 return _IMP_base._Protection_show(self, *args)
998 """__str__(_Protection self) -> std::string"""
999 return _IMP_base._Protection___str__(self)
1002 """__repr__(_Protection self) -> std::string"""
1003 return _IMP_base._Protection___repr__(self)
1005 __swig_destroy__ = _IMP_base.delete__Protection
1006 __del__ =
lambda self :
None;
1007 _Protection_swigregister = _IMP_base._Protection_swigregister
1008 _Protection_swigregister(_Protection)
1013 return _IMP_base._test_log()
1015 def _test_intranges(*args):
1016 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1017 return _IMP_base._test_intranges(*args)
1019 def _test_intrange(*args):
1021 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1022 _test_intrange() -> IMP::IntRange
1024 return _IMP_base._test_intrange(*args)
1026 def _test_ifile(*args):
1027 """_test_ifile(TextInput a) -> std::string"""
1028 return _IMP_base._test_ifile(*args)
1030 def _test_ofile(*args):
1031 """_test_ofile(TextOutput a) -> std::string"""
1032 return _IMP_base._test_ofile(*args)
1034 def _test_ifile_overloaded(*args):
1036 _test_ifile_overloaded(TextInput a, int i) -> std::string
1037 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1039 return _IMP_base._test_ifile_overloaded(*args)
1041 def _test_ofile_overloaded(*args):
1043 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1044 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1046 return _IMP_base._test_ofile_overloaded(*args)
1047 class _TestValue(object):
1048 """Proxy of C++ IMP::base::internal::_TestValue class"""
1049 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1050 def __init__(self, *args):
1051 """__init__(IMP::base::internal::_TestValue self, int i) -> _TestValue"""
1052 this = _IMP_base.new__TestValue(*args)
1053 try: self.this.append(this)
1054 except: self.this = this
1055 def show(self, *args):
1057 show(_TestValue self, _ostream out=std::cout)
1058 show(_TestValue self)
1060 return _IMP_base._TestValue_show(self, *args)
1062 def __cmp__(self, *args):
1063 """__cmp__(_TestValue self, _TestValue o) -> int"""
1064 return _IMP_base._TestValue___cmp__(self, *args)
1066 def __eq__(self, *args):
1067 """__eq__(_TestValue self, _TestValue o) -> bool"""
1068 return _IMP_base._TestValue___eq__(self, *args)
1070 def __ne__(self, *args):
1071 """__ne__(_TestValue self, _TestValue o) -> bool"""
1072 return _IMP_base._TestValue___ne__(self, *args)
1074 def __lt__(self, *args):
1075 """__lt__(_TestValue self, _TestValue o) -> bool"""
1076 return _IMP_base._TestValue___lt__(self, *args)
1078 def __gt__(self, *args):
1079 """__gt__(_TestValue self, _TestValue o) -> bool"""
1080 return _IMP_base._TestValue___gt__(self, *args)
1082 def __ge__(self, *args):
1083 """__ge__(_TestValue self, _TestValue o) -> bool"""
1084 return _IMP_base._TestValue___ge__(self, *args)
1086 def __le__(self, *args):
1087 """__le__(_TestValue self, _TestValue o) -> bool"""
1088 return _IMP_base._TestValue___le__(self, *args)
1091 """get(_TestValue self) -> int"""
1092 return _IMP_base._TestValue_get(self)
1094 def get_float(self):
1095 """get_float(_TestValue self) -> IMP::Float const &"""
1096 return _IMP_base._TestValue_get_float(self)
1099 """__str__(_TestValue self) -> std::string"""
1100 return _IMP_base._TestValue___str__(self)
1103 """__repr__(_TestValue self) -> std::string"""
1104 return _IMP_base._TestValue___repr__(self)
1106 __swig_destroy__ = _IMP_base.delete__TestValue
1107 __del__ =
lambda self :
None;
1108 _TestValue_swigregister = _IMP_base._TestValue_swigregister
1109 _TestValue_swigregister(_TestValue)
1112 def _pass_plain_pair(*args):
1113 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1114 return _IMP_base._pass_plain_pair(*args)
1116 def _pass_overloaded_strings(*args):
1118 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1119 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1121 return _IMP_base._pass_overloaded_strings(*args)
1123 def _pass_pair(*args):
1124 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1125 return _IMP_base._pass_pair(*args)
1127 def _pass_floats(*args):
1128 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1129 return _IMP_base._pass_floats(*args)
1131 def _pass_ints(*args):
1132 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1133 return _IMP_base._pass_ints(*args)
1135 def _pass_ints_list(*args):
1136 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1137 return _IMP_base._pass_ints_list(*args)
1139 def _pass_ints_lists(*args):
1140 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1141 return _IMP_base._pass_ints_lists(*args)
1143 def _pass_strings(*args):
1144 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1145 return _IMP_base._pass_strings(*args)
1146 class _TestObject(Object):
1147 """Proxy of C++ IMP::base::internal::_TestObject class"""
1148 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1150 """__init__(IMP::base::internal::_TestObject self) -> _TestObject"""
1151 this = _IMP_base.new__TestObject()
1152 try: self.this.append(this)
1153 except: self.this = this
1154 def get_version_info(self):
1155 """get_version_info(_TestObject self) -> VersionInfo"""
1156 return _IMP_base._TestObject_get_version_info(self)
1159 """__str__(_TestObject self) -> std::string"""
1160 return _IMP_base._TestObject___str__(self)
1163 """__repr__(_TestObject self) -> std::string"""
1164 return _IMP_base._TestObject___repr__(self)
1167 return _object_cast_to__TestObject(o)
1168 get_from = staticmethod(get_from)
1170 _TestObject_swigregister = _IMP_base._TestObject_swigregister
1171 _TestObject_swigregister(_TestObject)
1175 """get_live_object_names() -> IMP::Strings"""
1176 return _IMP_base.get_live_object_names()
1179 """get_live_objects() -> IMP::base::Objects"""
1180 return _IMP_base.get_live_objects()
1183 """set_show_leaked_objects(bool tf)"""
1184 return _IMP_base.set_show_leaked_objects(*args)
1187 """set_deprecation_warnings(bool tf)"""
1188 return _IMP_base.set_deprecation_warnings(*args)
1191 """set_deprecation_exceptions(bool tf)"""
1192 return _IMP_base.set_deprecation_exceptions(*args)
1195 """handle_use_deprecated(std::string message)"""
1196 return _IMP_base.handle_use_deprecated(*args)
1199 """get_number_of_threads() -> unsigned int"""
1200 return _IMP_base.get_number_of_threads()
1203 """set_number_of_threads(unsigned int n)"""
1204 return _IMP_base.set_number_of_threads(*args)
1205 class SetNumberOfThreads(_RAII):
1206 """Proxy of C++ IMP::base::SetNumberOfThreads class"""
1207 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1208 def __init__(self, *args):
1210 __init__(IMP::base::SetNumberOfThreads self) -> SetNumberOfThreads
1211 __init__(IMP::base::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1213 this = _IMP_base.new_SetNumberOfThreads(*args)
1214 try: self.this.append(this)
1215 except: self.this = this
1216 def set(self, *args):
1217 """set(SetNumberOfThreads self, unsigned int n)"""
1218 return _IMP_base.SetNumberOfThreads_set(self, *args)
1221 """reset(SetNumberOfThreads self)"""
1222 return _IMP_base.SetNumberOfThreads_reset(self)
1224 __swig_destroy__ = _IMP_base.delete_SetNumberOfThreads
1225 __del__ =
lambda self :
None;
1226 def show(self, *args):
1228 show(SetNumberOfThreads self, _ostream out=std::cout)
1229 show(SetNumberOfThreads self)
1231 return _IMP_base.SetNumberOfThreads_show(self, *args)
1234 """__str__(SetNumberOfThreads self) -> std::string"""
1235 return _IMP_base.SetNumberOfThreads___str__(self)
1238 """__repr__(SetNumberOfThreads self) -> std::string"""
1239 return _IMP_base.SetNumberOfThreads___repr__(self)
1241 SetNumberOfThreads_swigregister = _IMP_base.SetNumberOfThreads_swigregister
1242 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1246 """clear_statistics()"""
1247 return _IMP_base.clear_statistics()
1250 """show_timings(TextOutput out)"""
1251 return _IMP_base.show_timings(*args)
1253 """Proxy of C++ IMP::base::Timer class"""
1254 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1255 __repr__ = _swig_repr
1256 def __init__(self, *args):
1258 __init__(IMP::base::Timer self, Object object, std::string const & operation) -> Timer
1259 __init__(IMP::base::Timer self, Object object, char const * operation) -> Timer
1260 __init__(IMP::base::Timer self, std::string operation) -> Timer
1262 this = _IMP_base.new_Timer(*args)
1263 try: self.this.append(this)
1264 except: self.this = this
1265 __swig_destroy__ = _IMP_base.delete_Timer
1266 __del__ =
lambda self :
None;
1267 Timer_swigregister = _IMP_base.Timer_swigregister
1268 Timer_swigregister(Timer)
1272 """set_statistics_level(IMP::base::StatisticsLevel l)"""
1273 return _IMP_base.set_statistics_level(*args)
1274 from .
import _graph_show
1275 show_altgraph= _graph_show.show_altgraph
1276 show_graphviz= _graph_show.show_graphviz
1277 get_networkx_graph= _graph_show.get_networkx_graph
1280 def get_module_version():
1281 """get_module_version() -> std::string const"""
1282 return _IMP_base.get_module_version()
1285 """get_example_path(std::string fname) -> std::string"""
1286 return _IMP_base.get_example_path(*args)
1289 """get_data_path(std::string fname) -> std::string"""
1290 return _IMP_base.get_data_path(*args)
1291 from .
import _version_check
1292 _version_check.check_version(get_module_version())
TextOutput create_temporary_file(std::string prefix="imp_temp", std::string suffix="")
void show_timings(TextOutput out)
void set_log_timer(bool tb)
Set whether log messages are tagged with the current log time.
size_t get_int_flag(std::string name)
void reset_log_timer()
Reset the log timer.
double get_float_flag(std::string name)
void handle_use_deprecated(std::string message)
void set_log_level(LogLevel l)
Set the current global log level.
void add_float_flag(std::string name, double default_value, std::string description)
bool get_bool_flag(std::string name)
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
void set_progress_display(std::string description, unsigned int steps)
Set up the progress bar with the passed description.
LogLevel get_log_level()
Get the currently active global log level.
void set_number_of_threads(unsigned int n)
void add_to_log(LogLevel level, std::string to_write)
Write a string to the log, for Python.
std::string get_relative_path(std::string base, std::string relative)
Return a path to a file relative to another file.
std::string get_string_flag(std::string name)
void add_bool_flag(std::string name, std::string description)
void add_string_flag(std::string name, std::string default_value, std::string description)
std::string get_unique_name(std::string templ)
Return a unique name produced from the string.
void set_deprecation_exceptions(bool tf)
void set_statistics_level(StatisticsLevel l)
void set_show_leaked_objects(bool tf)
Set whether to complain about objects not being properly cleaned up.
void write_help(std::ostream &out=std::cerr)
std::string get_data_path(std::string file_name)
Return the full path to installed data.
void set_deprecation_warnings(bool tf)
Toggle printing of warnings on using deprecated classes.
void add_to_progress_display(unsigned int step=1)
Set the current progress.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
void add_int_flag(std::string name, size_t default_value, std::string description)
unsigned int get_number_of_threads()
CheckLevel get_check_level()
Get the current audit mode.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.
Objects get_live_objects()
Return pointers to all live objects.
std::string get_executable_name()
Return the name of the current executable.
Strings get_live_object_names()
Return the names of all live objects.