-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_Cream.h
More file actions
66 lines (50 loc) · 2.01 KB
/
python_Cream.h
File metadata and controls
66 lines (50 loc) · 2.01 KB
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
/* pyCream - CREAM Client API Python
Copyright (C) 2010, 2011 Maciej Sitarz
Written by Maciej Sitarz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef __CREAM_PYTHON_H___
#define __CREAM_PYTHON_H__
//See best practices section in Py++ documentation
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <ctime>
#include <exception>
#include "python_Cream_masterlist.h"
// First we create a magic namespace to hold all our aliases
namespace pyplusplus {
namespace aliases {
using namespace glite::ce::cream_client_api::cream_exceptions;
using namespace glite::ce::cream_client_api::job_statuses;
using namespace glite::ce::cream_client_api::soap_proxy;
using namespace glite::ce::cream_client_api::util;
using namespace glite::ce::cream_client_api::util::CEUrl;
#include "python_Cream_aliases.h"
}
}
// Expos everything needed (and more) to ensure GCCXML makes them visible to Py++
namespace python_Cream {
namespace details {
inline void instantiate() {
using namespace glite::ce::cream_client_api::cream_exceptions;
using namespace glite::ce::cream_client_api::job_statuses;
using namespace glite::ce::cream_client_api::soap_proxy;
using namespace glite::ce::cream_client_api::util;
using namespace glite::ce::cream_client_api::util::CEUrl;
using namespace pyplusplus::aliases;
#include "python_Cream_sizeof.h"
}
}
}
#endif // __CREAM_PYTHON_H__