Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/python/exec.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright Stefan Seefeld 2005.
0002 // Distributed under the Boost Software License, Version 1.0. (See
0003 // accompanying file LICENSE_1_0.txt or copy at
0004 // http://www.boost.org/LICENSE_1_0.txt)
0005 #ifndef EXEC_SS20050616_HPP
0006 # define EXEC_SS20050616_HPP
0007 
0008 # include <boost/python/object.hpp>
0009 # include <boost/python/str.hpp>
0010 
0011 namespace boost 
0012 { 
0013 namespace python 
0014 {
0015 
0016 // Evaluate python expression from str.
0017 // global and local are the global and local scopes respectively,
0018 // used during evaluation.
0019 object 
0020 BOOST_PYTHON_DECL
0021 eval(str string, object global = object(), object local = object());
0022 
0023 object 
0024 BOOST_PYTHON_DECL
0025 eval(char const *string, object global = object(), object local = object());
0026 
0027 // Execute an individual python statement from str.
0028 // global and local are the global and local scopes respectively,
0029 // used during execution.
0030 object 
0031 BOOST_PYTHON_DECL
0032 exec_statement(str string, object global = object(), object local = object());
0033 
0034 object 
0035 BOOST_PYTHON_DECL
0036 exec_statement(char const *string, object global = object(), object local = object());
0037 
0038 // Execute python source code from str.
0039 // global and local are the global and local scopes respectively,
0040 // used during execution.
0041 object 
0042 BOOST_PYTHON_DECL
0043 exec(str string, object global = object(), object local = object());
0044 
0045 object 
0046 BOOST_PYTHON_DECL
0047 exec(char const *string, object global = object(), object local = object());
0048 
0049 // Execute python source code from file filename.
0050 // global and local are the global and local scopes respectively,
0051 // used during execution.
0052 object 
0053 BOOST_PYTHON_DECL
0054 exec_file(str filename, object global = object(), object local = object());
0055 
0056 object 
0057 BOOST_PYTHON_DECL
0058 exec_file(char const *filename, object global = object(), object local = object());
0059 
0060 }
0061 }
0062 
0063 #endif