File: pythonscript_8h-source.html

package info (click to toggle)
capisuite 0.4.5-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,596 kB
  • ctags: 1,051
  • sloc: cpp: 3,979; sh: 3,465; python: 446; makefile: 263
file content (100 lines) | stat: -rw-r--r-- 8,135 bytes parent folder | download | duplicates (4)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CapiSuite: pythonscript.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>pythonscript.h</h1><a href="pythonscript_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 
00008 <span class="comment">/***************************************************************************</span>
00009 <span class="comment"> *                                                                         *</span>
00010 <span class="comment"> *   This program is free software; you can redistribute it and/or modify  *</span>
00011 <span class="comment"> *   it under the terms of the GNU General Public License as published by  *</span>
00012 <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or     *</span>
00013 <span class="comment"> *   (at your option) any later version.                                   *</span>
00014 <span class="comment"> *                                                                         *</span>
00015 <span class="comment"> ***************************************************************************/</span>
00016 
00017 <span class="preprocessor">#ifndef PYTHONSCRIPT_H</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define PYTHONSCRIPT_H</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#include &lt;Python.h&gt;</span>
00021 
00022 <span class="preprocessor">#include "../../config.h"</span>
00023 <span class="preprocessor">#ifdef HAVE_OSTREAM</span>
00024 <span class="preprocessor"></span><span class="preprocessor">  #include &lt;ostream&gt;</span>
00025 <span class="preprocessor">#else</span>
00026 <span class="preprocessor"></span><span class="preprocessor">  #include &lt;ostream.h&gt;</span>
00027 <span class="preprocessor">#endif</span>
00028 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="applicationexception_8h.html">applicationexception.h</a>"</span>
00029 <span class="keyword">class </span>PycStringIO_CAPI;
00030 
00031 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
00032 
<a name="l00041"></a><a class="code" href="classPythonScript.html">00041</a> <span class="keyword">class </span><a class="code" href="classPythonScript.html">PythonScript</a>
00042 {      
00043         <span class="keyword">public</span>:
00053                 <a class="code" href="classPythonScript.html#a0">PythonScript</a>(ostream &amp;<a class="code" href="classPythonScript.html#p3">debug</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classPythonScript.html#p5">debug_level</a>, ostream &amp;<a class="code" href="classPythonScript.html#p4">error</a>, string <a class="code" href="classPythonScript.html#p0">filename</a>, string <a class="code" href="classPythonScript.html#p1">functionname</a>, PycStringIO_CAPI* <a class="code" href="classPythonScript.html#p6">cStringIO</a>);
00054 
00057                 <span class="keyword">virtual</span> <a class="code" href="classPythonScript.html#a1">~PythonScript</a>();
00058 
00059         <span class="keyword">protected</span>:
00066                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPythonScript.html#b0">run</a>() <span class="keywordflow">throw</span> (<a class="code" href="classApplicationError.html">ApplicationError</a>);
00067 
00070                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <span class="keyword">final</span>();
00071                 
00077                 string <a class="code" href="classPythonScript.html#b2">prefix</a>(<span class="keywordtype">bool</span> verbose=<span class="keyword">true</span>);
00078 
00079                 string filename, 
<a name="l00080"></a><a class="code" href="classPythonScript.html#p1">00080</a>                        functionname; 
<a name="l00081"></a><a class="code" href="classPythonScript.html#p2">00081</a>                 PyObject *<a class="code" href="classPythonScript.html#p2">args</a>; 
00082                 ostream &amp;debug, 
<a name="l00083"></a><a class="code" href="classPythonScript.html#p4">00083</a>                         &amp;error; 
<a name="l00084"></a><a class="code" href="classPythonScript.html#p5">00084</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> debug_level; 
<a name="l00085"></a><a class="code" href="classPythonScript.html#p6">00085</a>                 PycStringIO_CAPI* cStringIO; 
00086 };
00087 
00088 <span class="preprocessor">#endif</span>
00089 <span class="preprocessor"></span>
00090 <span class="comment">/* History</span>
00091 <span class="comment"></span>
00092 <span class="comment">$Log: pythonscript.h,v $</span>
00093 <span class="comment">Revision 1.2  2003/03/21 23:09:59  gernot</span>
00094 <span class="comment">- included autoconf tests for gcc-2.95 problems so that it will compile w/o</span>
00095 <span class="comment">  change for good old gcc-2.95 and gcc3</span>
00096 <span class="comment"></span>
00097 <span class="comment">Revision 1.1.1.1  2003/02/19 08:19:53  gernot</span>
00098 <span class="comment">initial checkin of 0.4</span>
00099 <span class="comment"></span>
00100 <span class="comment">Revision 1.6  2003/02/10 14:17:09  ghillie</span>
00101 <span class="comment">merged from NATIVE_PTHREADS to HEAD</span>
00102 <span class="comment"></span>
00103 <span class="comment">Revision 1.5.2.2  2003/02/10 14:04:57  ghillie</span>
00104 <span class="comment">- made destructors virtual, otherwise wrong destructor is called!</span>
00105 <span class="comment"></span>
00106 <span class="comment">Revision 1.5.2.1  2003/02/09 15:03:42  ghillie</span>
00107 <span class="comment">- rewritten to use native pthread_* calls instead of CommonC++ Thread</span>
00108 <span class="comment"></span>
00109 <span class="comment">Revision 1.5  2003/01/18 12:55:39  ghillie</span>
00110 <span class="comment">- run handles python script errors now on its own and prints tracebacks</span>
00111 <span class="comment">  to error log file correctly (solves TODO)</span>
00112 <span class="comment"></span>
00113 <span class="comment">Revision 1.4  2003/01/04 16:00:53  ghillie</span>
00114 <span class="comment">- log improvements: log_level, timestamp</span>
00115 <span class="comment"></span>
00116 <span class="comment">Revision 1.3  2002/12/14 14:04:20  ghillie</span>
00117 <span class="comment">- run throws ApplicationError now so that derived classes can catch</span>
00118 <span class="comment">  and handle it on their behalf</span>
00119 <span class="comment"></span>
00120 <span class="comment">Revision 1.2  2002/12/10 15:05:45  ghillie</span>
00121 <span class="comment">- finished pythonscript class definition</span>
00122 <span class="comment"></span>
00123 <span class="comment">Revision 1.1  2002/12/09 18:07:59  ghillie</span>
00124 <span class="comment">- initial checkin, not finished!</span>
00125 <span class="comment"></span>
00126 <span class="comment">*/</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Nov 28 14:37:44 2004 for CapiSuite by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>