A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/pythonpp__emb_8hpp_source.html below:

NCBI C++ ToolKit: src/dbapi/lang_bind/python/pythonpp/pythonpp_emb.hpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

35 #ifndef PYTHONPP_EMB_H 36 #define PYTHONPP_EMB_H 68 #if PY_MAJOR_VERSION >= 3 71  for

(

int i

= 0;

i

< argc; ++

i

) {

72

m_Args[

i

] = CUtf8::AsBasicString<wchar_t>(argv[

i

]);

73

m_Argv[

i

] =

const_cast<wchar_t

*

>

(m_Args[

i

].c_str());

75

PySys_SetArgv(argc, m_Argv.data());

77

PySys_SetArgv(argc, argv);

89  if

( PyRun_SimpleString(

cmd

) == -1 ) {

91  throw string

(

"Couldn't execute string '"

) +

cmd

+

"'"

;

111 #if PY_MAJOR_VERSION >= 3 112

m_ProgName = CUtf8::AsBasicString<wchar_t>(prog_name);

113

Py_SetProgramName(

const_cast<wchar_t

*

>

(m_ProgName.c_str()));

115

Py_SetProgramName(

const_cast<char

*

>

(prog_name));

120 #if PY_MAJOR_VERSION >= 3 122

vector<wstring> m_Args;

123

vector<wchar_t*> m_Argv;

void x_SetProgramName(const char *prog_name)

CEngine(int argc, char *argv[])

static void ExecuteStr(const char *cmd)

CEngine(const char *prog_name=NULL)

static void ExecuteFile(const char *file_name)

The NCBI C++ standard methods for dealing with std::string.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4