-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_Cream_sizeof.h
More file actions
137 lines (115 loc) · 5.13 KB
/
python_Cream_sizeof.h
File metadata and controls
137 lines (115 loc) · 5.13 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/* 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/>. */
size_t size = 0;
size = sizeof( AbsCreamProxy );
size = sizeof( CreamProxyFactory );
size = sizeof( EventWrapper );
//size = sizeof( JobCommandWrapper );
size = sizeof( JobDescriptionWrapper );
size = sizeof( JobFilterWrapper );
size = sizeof( JobIdWrapper );
size = sizeof( JobInfoWrapper );
size = sizeof( JobPropertyWrapper );
size = sizeof( JobStatusWrapper );
size = sizeof( ResultWrapper );
size = sizeof( ServiceInfoWrapper );
AbsCreamProxy *absCreamProxy = CreamProxyFactory::make_CreamProxyDelegate( "a", 1 );
delete absCreamProxy;
CreamProxyFactory creamProxyFactory( );
EventWrapper eventWrapper( "a", "b", 1, std::vector<CREAMTYPES__Property*>() );
// Class constructor is protected, no idea how to create an object
//JobCommandWrapper jobCommandWrapper();
JobDescriptionWrapper jobDescriptionWrapper( "a", "b", "c", "d", false, "e" );
JobFilterWrapper jobFilterWrapperr( std::vector< JobIdWrapper >(), std::vector< std::string >(), 1, 2, "a", "b" );
JobIdWrapper jobIdWrapper( "a", "b", std::vector<JobPropertyWrapper>() );
JobInfoWrapper jobInfoWrapper( );
JobPropertyWrapper jobPropertyWrapper( "a", "b" );
JobStatusWrapper jobStatusWrapper( );
ResultWrapper resultWrapper( );
ServiceInfoWrapper serviceInfoWrapper( );
// Cream CE exceptions
size = sizeof( auth_ex );
size = sizeof( ceid_syntax_ex );
size = sizeof( classad_syntax_ex );
size = sizeof( file_ex );
size = sizeof( invalidTimestamp_ex );
size = sizeof( soap_ex );
size = sizeof( soap_runtime_ex );
size = sizeof( BaseException );
size = sizeof( AuthorizationException );
size = sizeof( ConnectionTimeoutException );
size = sizeof( DelegationException );
size = sizeof( GenericException );
size = sizeof( GridProxyDelegationException );
size = sizeof( InternalException );
size = sizeof( InvalidArgumentException );
size = sizeof( JobStatusInvalidException );
size = sizeof( JobSubmissionDisabledException );
size = sizeof( JobUnknownException );
size = sizeof( NoSuitableResourceException );
size = sizeof( OperationNotSupportedException );
auth_ex auth_ex( "a" );
ceid_syntax_ex ceid_syntax_ex( "a" );
classad_syntax_ex classad_syntax_ex( "a" );
file_ex file_ex( "a" );
invalidTimestamp_ex invalidTimestamp_ex( "a" );
soap_ex soap_ex( "a" );
soap_runtime_ex soap_runtime_ex( "a" );
BaseException baseException( "a", "b", "c", "d", 1 );
AuthorizationException authorizationException( "a", "b", "c", "d", 1 );
ConnectionTimeoutException connectionTimeoutException( "a" );
DelegationException delegationException( "a" );
GenericException genericException( "a", "b", "c", "d", 1 );
GridProxyDelegationException gridProxyDelegationException( "a", "b", "c", "d", 1 );
InternalException internalException( "a" );
InvalidArgumentException invalidArgumentException( "a", "b", "c", "d", 1 );
JobStatusInvalidException jobStatusInvalidException( "a", "b", "c", "d", 1 );
JobSubmissionDisabledException jobSubmissionDisabledException( "a", "b", "c", "d", 1 );
JobUnknownException jobUnknownException( "a", "b", "c", "d", 1 );
NoSuitableResourceException noSuitableResourceException( "a", "b", "c", "d", 1 );
OperationNotSupportedException operationNotSupportedException( "a", "b", "c", "d", 1 );
// STL
size = sizeof( stdPairLongLong );
size = sizeof( stdPairStringLong );
size = sizeof( stdPairStringString );
stdPairLongLong stdPairLongLong();
stdPairStringLong stdPairStringLong();
stdPairStringString stdPairStringString();
size = sizeof( stdMapStringString );
stdMapStringString stdMapStringString();
size = sizeof( stdVectorString );
stdVectorString stdVectorString();
size = sizeof( stdAllocatorChar );
stdAllocatorChar stdAllocatorChar();
// boost::tuple
size = sizeof( TupleJobIdWrapper );
size = sizeof( TupleJobStatusWrapper );
size = sizeof( TupleJobInfoWrapper );
TupleJobIdWrapper tupleJobIdWrapper();
TupleJobStatusWrapper tupleJobStatusWrapper();
TupleJobInfoWrapper tupleJobInfoWrapper();
size = sizeof( RegisterArrayResult );
size = sizeof( StatusArrayResult );
size = sizeof( InfoArrayResult );
size = sizeof( RegisterArrayRequest );
RegisterArrayResult registerArrayResult();
StatusArrayResult statusArrayResult();
InfoArrayResult infoArrayResult();
RegisterArrayRequest registerArrayRequest();
size = sizeof( stdVectorJobIdWrapper );
size = sizeof( stdVectorJobPropertyWrapper );
size = sizeof( stdVectorJobStatusWrapper );
stdVectorJobIdWrapper stdVectorJobIdWrapper();
stdVectorJobPropertyWrapper stdVectorJobPropertyWrapper();
stdVectorJobStatusWrapper stdVectorJobStatusWrapper();