ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/DBS/Servers/AppServer/interface/Python/dbsclient.i
Revision: 1.2
Committed: Tue Nov 29 17:37:34 2005 UTC (19 years, 5 months ago) by sekhri
Branch: MAIN
CVS Tags: before_message_removal, preXOverChanges
Changes since 1.1: +7 -7 lines
Log Message:
Integrated webservices with DBS

File Contents

# User Rev Content
1 afaq 1.1 //dbsclient.i - SWIG interface
2     %module dbsclient
3     %{
4     #include "../../include/common.hpp"
5     #include "../../include/DBSClient.hpp"
6     #include "../../include/ClientDataStructure.hpp"
7     #include "../../include/ClientAPIData.hpp"
8     %}
9    
10    
11     // Parse the original header file
12     %include "../../include/common.hpp"
13     %include "../../include/DBSClient.hpp"
14     %include "../../include/ClientDataStructure.hpp"
15     %include "../../include/ClientAPIData.hpp"
16     %include "std_vector.i"
17     %include "std_string.i"
18     %include "cpointer.i"
19    
20     using namespace std ;
21     %template(ACHR) VALUEDEF<char>;
22     %template(AINT) VALUEDEF<int>;
23     %template(ASTR) VALUEDEF<string>;
24     %template(AFLT) VALUEDEF<float>;
25    
26    
27     %pointer_functions(char, charp);
28     %pointer_functions(float, floatp);
29     %pointer_functions(int, intp);
30     %pointer_functions(string, stringp);
31    
32 sekhri 1.2 %template(EVCollVector) std::vector<Evcollview_ClientAPIData>;
33     %template(EVCollFileVector) std::vector<Fileview_ClientAPIData>;
34     %template(PriDSVector) std::vector<Primarydataset_ClientAPIData>;
35     %template(ProPathVector) std::vector<Processingpath_ClientAPIData>;
36     %template(DSProvParentVector) std::vector<Datasetprovenenceevparent_ClientAPIData>;
37     %template(DSProvChildVector) std::vector<Datasetprovenenceevchild_ClientAPIData>;
38     %template(CrabEvcollVector) std::vector<Crabevcollview_ClientAPIData>;
39 afaq 1.1
40    
41     %extend DBSClient {
42     static std::string str(char* s){
43     std::string mystr(s);
44     return mystr;
45     }
46     };
47