654 |
|
|
655 |
|
/* -------- TYPES TABLE (BEGIN) -------- */ |
656 |
|
|
657 |
< |
#define SWIGTYPE_p_BossSession swig_types[0] |
658 |
< |
#define SWIGTYPE_p_BossUserSession swig_types[1] |
659 |
< |
#define SWIGTYPE_p_BossAdministratorSession swig_types[2] |
660 |
< |
static swig_type_info *swig_types[4]; |
657 |
> |
#define SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t swig_types[0] |
658 |
> |
#define SWIGTYPE_p_XMLDoc swig_types[1] |
659 |
> |
#define SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator swig_types[2] |
660 |
> |
#define SWIGTYPE_p_BossProgramExec swig_types[3] |
661 |
> |
#define SWIGTYPE_p_std__vectorTBossTask_p_t swig_types[4] |
662 |
> |
#define SWIGTYPE_p_BossChain swig_types[5] |
663 |
> |
#define SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t swig_types[6] |
664 |
> |
#define SWIGTYPE_p_BossTask swig_types[7] |
665 |
> |
#define SWIGTYPE_p_BossTaskException swig_types[8] |
666 |
> |
#define SWIGTYPE_p_std__ostream swig_types[9] |
667 |
> |
#define SWIGTYPE_p_BossProgram swig_types[10] |
668 |
> |
#define SWIGTYPE_p_printOption swig_types[11] |
669 |
> |
#define SWIGTYPE_p_BossAttributeContainer swig_types[12] |
670 |
> |
#define SWIGTYPE_p_BossJob swig_types[13] |
671 |
> |
#define SWIGTYPE_p_BossDatabase swig_types[14] |
672 |
> |
#define SWIGTYPE_p_BossSession swig_types[15] |
673 |
> |
#define SWIGTYPE_p_std__vectorTstd__string_t swig_types[16] |
674 |
> |
#define SWIGTYPE_p_std__mapTstd__string_std__string_t swig_types[17] |
675 |
> |
#define SWIGTYPE_p_BossAdministratorSession swig_types[18] |
676 |
> |
#define SWIGTYPE_p_BossTask__job_iterator swig_types[19] |
677 |
> |
#define SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator swig_types[20] |
678 |
> |
#define SWIGTYPE_p_jobStates swig_types[21] |
679 |
> |
static swig_type_info *swig_types[23]; |
680 |
|
|
681 |
|
/* -------- TYPES TABLE (END) -------- */ |
682 |
|
|
688 |
|
|
689 |
|
#define SWIG_name "_BossSession" |
690 |
|
|
672 |
– |
#include "BossUserSession.h" |
673 |
– |
#include "BossAdministratorSession.h" |
674 |
– |
|
675 |
– |
|
691 |
|
#define SWIG_MemoryError 1 |
692 |
|
#define SWIG_IOError 2 |
693 |
|
#define SWIG_RuntimeError 3 |
775 |
|
#include <algorithm> |
776 |
|
#include <stdexcept> |
777 |
|
|
778 |
+ |
bool std_maplstd_stringcstd_string_g___nonzero_____(std::map<std::string,std::string > *self){ |
779 |
+ |
return !(self->empty()); |
780 |
+ |
} |
781 |
+ |
std::string std_maplstd_stringcstd_string_g___getitem_____(std::map<std::string,std::string > *self,std::string key){ |
782 |
+ |
std::map<std::string,std::string >::iterator i = self->find(key); |
783 |
+ |
if (i != self->end()) |
784 |
+ |
return i->second; |
785 |
+ |
else |
786 |
+ |
throw std::out_of_range("key not found"); |
787 |
+ |
} |
788 |
+ |
void std_maplstd_stringcstd_string_g___setitem_____(std::map<std::string,std::string > *self,std::string key,std::string x){ |
789 |
+ |
(*self)[key] = x; |
790 |
+ |
} |
791 |
+ |
void std_maplstd_stringcstd_string_g___delitem_____(std::map<std::string,std::string > *self,std::string key){ |
792 |
+ |
std::map<std::string,std::string >::iterator i = self->find(key); |
793 |
+ |
if (i != self->end()) |
794 |
+ |
self->erase(i); |
795 |
+ |
else |
796 |
+ |
throw std::out_of_range("key not found"); |
797 |
+ |
} |
798 |
+ |
bool std_maplstd_stringcstd_string_g_has_key___(std::map<std::string,std::string > *self,std::string key){ |
799 |
+ |
std::map<std::string,std::string >::iterator i = self->find(key); |
800 |
+ |
return i != self->end(); |
801 |
+ |
} |
802 |
+ |
PyObject *std_maplstd_stringcstd_string_g_keys___(std::map<std::string,std::string > *self){ |
803 |
+ |
PyObject* keyList = PyList_New(self->size()); |
804 |
+ |
std::map<std::string,std::string >::iterator i; |
805 |
+ |
unsigned int j; |
806 |
+ |
for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) { |
807 |
+ |
PyList_SetItem(keyList,j, |
808 |
+ |
SwigString_FromString(i->first)); |
809 |
+ |
} |
810 |
+ |
return keyList; |
811 |
+ |
} |
812 |
+ |
PyObject *std_maplstd_stringcstd_string_g_values___(std::map<std::string,std::string > *self){ |
813 |
+ |
PyObject* valueList = PyList_New(self->size()); |
814 |
+ |
std::map<std::string,std::string >::iterator i; |
815 |
+ |
unsigned int j; |
816 |
+ |
for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) { |
817 |
+ |
PyList_SetItem(valueList,j, |
818 |
+ |
SwigString_FromString(i->second)); |
819 |
+ |
} |
820 |
+ |
return valueList; |
821 |
+ |
} |
822 |
+ |
PyObject *std_maplstd_stringcstd_string_g_items___(std::map<std::string,std::string > *self){ |
823 |
+ |
PyObject* itemList = PyList_New(self->size()); |
824 |
+ |
std::map<std::string,std::string >::iterator i; |
825 |
+ |
unsigned int j; |
826 |
+ |
for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) { |
827 |
+ |
PyObject* item = PyTuple_New(2); |
828 |
+ |
PyTuple_SetItem(item,0, |
829 |
+ |
SwigString_FromString(i->first)); |
830 |
+ |
PyTuple_SetItem(item,1, |
831 |
+ |
SwigString_FromString(i->second)); |
832 |
+ |
PyList_SetItem(itemList,j,item); |
833 |
+ |
} |
834 |
+ |
return itemList; |
835 |
+ |
} |
836 |
+ |
bool std_maplstd_stringcstd_string_g___contains_____(std::map<std::string,std::string > *self,std::string key){ |
837 |
+ |
std::map<std::string,std::string >::iterator i = self->find(key); |
838 |
+ |
return i != self->end(); |
839 |
+ |
} |
840 |
+ |
PyObject *std_maplstd_stringcstd_string_g___iter_____(std::map<std::string,std::string > *self){ |
841 |
+ |
#if PY_VERSION_HEX >= 0x02020000 |
842 |
+ |
PyObject* keyList = PyList_New(self->size()); |
843 |
+ |
std::map<std::string,std::string >::iterator i; |
844 |
+ |
unsigned int j; |
845 |
+ |
for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) { |
846 |
+ |
PyList_SetItem(keyList,j, |
847 |
+ |
SwigString_FromString(i->first)); |
848 |
+ |
} |
849 |
+ |
PyObject* iter = PyObject_GetIter(keyList); |
850 |
+ |
Py_DECREF(keyList); |
851 |
+ |
return iter; |
852 |
+ |
#else |
853 |
+ |
throw std::runtime_error("Python 2.2 or later is needed" |
854 |
+ |
" for iterator support"); |
855 |
+ |
#endif |
856 |
+ |
} |
857 |
+ |
std::string std_vectorlstd_string_g_pop___(std::vector<std::string > *self){ |
858 |
+ |
if (self->size() == 0) |
859 |
+ |
throw std::out_of_range("pop from empty vector"); |
860 |
+ |
std::string x = self->back(); |
861 |
+ |
self->pop_back(); |
862 |
+ |
return x; |
863 |
+ |
} |
864 |
+ |
std::string std_vectorlstd_string_g___getitem_____(std::vector<std::string > *self,int i){ |
865 |
+ |
int size = int(self->size()); |
866 |
+ |
if (i<0) i += size; |
867 |
+ |
if (i>=0 && i<size) |
868 |
+ |
return (*self)[i]; |
869 |
+ |
else |
870 |
+ |
throw std::out_of_range("vector index out of range"); |
871 |
+ |
} |
872 |
+ |
std::vector<std::string > std_vectorlstd_string_g___getslice_____(std::vector<std::string > *self,int i,int j){ |
873 |
+ |
int size = int(self->size()); |
874 |
+ |
if (i<0) i = size+i; |
875 |
+ |
if (j<0) j = size+j; |
876 |
+ |
if (i<0) i = 0; |
877 |
+ |
if (j>size) j = size; |
878 |
+ |
std::vector<std::string > tmp(j-i); |
879 |
+ |
std::copy(self->begin()+i,self->begin()+j,tmp.begin()); |
880 |
+ |
return tmp; |
881 |
+ |
} |
882 |
+ |
void std_vectorlstd_string_g___setitem_____(std::vector<std::string > *self,int i,std::string x){ |
883 |
+ |
int size = int(self->size()); |
884 |
+ |
if (i<0) i+= size; |
885 |
+ |
if (i>=0 && i<size) |
886 |
+ |
(*self)[i] = x; |
887 |
+ |
else |
888 |
+ |
throw std::out_of_range("vector index out of range"); |
889 |
+ |
} |
890 |
+ |
void std_vectorlstd_string_g___setslice_____(std::vector<std::string > *self,int i,int j,std::vector<std::string > const &v){ |
891 |
+ |
int size = int(self->size()); |
892 |
+ |
if (i<0) i = size+i; |
893 |
+ |
if (j<0) j = size+j; |
894 |
+ |
if (i<0) i = 0; |
895 |
+ |
if (j>size) j = size; |
896 |
+ |
if (int(v.size()) == j-i) { |
897 |
+ |
std::copy(v.begin(),v.end(),self->begin()+i); |
898 |
+ |
} else { |
899 |
+ |
self->erase(self->begin()+i,self->begin()+j); |
900 |
+ |
if (i+1 <= int(self->size())) |
901 |
+ |
self->insert(self->begin()+i,v.begin(),v.end()); |
902 |
+ |
else |
903 |
+ |
self->insert(self->end(),v.begin(),v.end()); |
904 |
+ |
} |
905 |
+ |
} |
906 |
+ |
void std_vectorlstd_string_g___delitem_____(std::vector<std::string > *self,int i){ |
907 |
+ |
int size = int(self->size()); |
908 |
+ |
if (i<0) i+= size; |
909 |
+ |
if (i>=0 && i<size) |
910 |
+ |
self->erase(self->begin()+i); |
911 |
+ |
else |
912 |
+ |
throw std::out_of_range("vector index out of range"); |
913 |
+ |
} |
914 |
+ |
void std_vectorlstd_string_g___delslice_____(std::vector<std::string > *self,int i,int j){ |
915 |
+ |
int size = int(self->size()); |
916 |
+ |
if (i<0) i = size+i; |
917 |
+ |
if (j<0) j = size+j; |
918 |
+ |
if (i<0) i = 0; |
919 |
+ |
if (j>size) j = size; |
920 |
+ |
self->erase(self->begin()+i,self->begin()+j); |
921 |
+ |
} |
922 |
+ |
|
923 |
+ |
static PyObject * BossError; |
924 |
+ |
static PyObject * SchedulerError; |
925 |
+ |
#include "BossSession.h" |
926 |
+ |
#include "BossAdministratorSession.h" |
927 |
+ |
#include "BossTask.h" |
928 |
+ |
#include "BossJob.h" |
929 |
+ |
#include "BossChain.h" |
930 |
+ |
#include "BossTaskCore.h" |
931 |
+ |
#include "BossAttributeContainer.h" |
932 |
+ |
#include "BossDBObject.h" |
933 |
+ |
#include "BossProgram.h" |
934 |
+ |
#include "BossProgramExec.h" |
935 |
+ |
#include "BossDatabase.h" |
936 |
+ |
#include "BossScheduler.h" |
937 |
+ |
#include "BossDeclaration.h" |
938 |
+ |
|
939 |
+ |
PyObject *BossSession_show(BossSession *self,std::vector<std::string > &my_vec){ |
940 |
+ |
PyObject * my_list = PyList_New( my_vec.size()); |
941 |
+ |
unsigned int index = 0; |
942 |
+ |
for ( std::vector<std::string>::const_iterator it = my_vec.begin (); |
943 |
+ |
it != my_vec.end(); ++it, ++index) { |
944 |
+ |
PyList_SetItem( my_list, index, PyString_FromString( it->c_str() )); |
945 |
+ |
} |
946 |
+ |
return my_list; |
947 |
+ |
} |
948 |
+ |
PyObject *BossSession_CHTools(BossSession *self){ |
949 |
+ |
std::vector<std::string> my_vec = self->showCHTools(); |
950 |
+ |
return BossSession_show( self, my_vec ); |
951 |
+ |
} |
952 |
+ |
PyObject *BossSession_ProgramTypes(BossSession *self){ |
953 |
+ |
std::vector<std::string> my_vec = self->showProgramTypes(); |
954 |
+ |
return BossSession_show( self, my_vec ); |
955 |
+ |
} |
956 |
+ |
PyObject *BossSession_RTMons(BossSession *self){ |
957 |
+ |
std::vector<std::string> my_vec = self->showRTMon(); |
958 |
+ |
return BossSession_show( self, my_vec ); |
959 |
+ |
} |
960 |
+ |
PyObject *BossSession_schedulers(BossSession *self){ |
961 |
+ |
std::vector<std::string> my_vec = self->showSchedulers(); |
962 |
+ |
return BossSession_show( self, my_vec ); |
963 |
+ |
} |
964 |
+ |
PyObject *BossSession_schedListMatch(BossSession *self,std::string const &scheduler,std::string const &schclassad,std::string const &taskid,std::string const &jobid,unsigned int timeout,bool keepfile){ |
965 |
+ |
std::vector<std::string> my_vec = self->listMatch( scheduler, |
966 |
+ |
schclassad, |
967 |
+ |
keepfile, |
968 |
+ |
taskid, |
969 |
+ |
jobid, |
970 |
+ |
timeout); |
971 |
+ |
return BossSession_show( self, my_vec ); |
972 |
+ |
} |
973 |
+ |
PyObject *BossSession_queryTasks(BossSession *self,std::string const &taskName,std::string const &taskRange,std::string after,std::string before,std::string user){ |
974 |
+ |
PyObject * task_list = PyList_New(0); |
975 |
+ |
std::vector <std::string> taskList; |
976 |
+ |
if ( taskName.empty() ) { |
977 |
+ |
taskList = self->selectTasks( taskRange, before, after, user); |
978 |
+ |
} else { |
979 |
+ |
taskList = self->selectTasksByName( taskName ); |
980 |
+ |
} |
981 |
+ |
for ( std::vector <std::string>::const_iterator it= taskList.begin(); |
982 |
+ |
it!= taskList.end(); ++it ) { |
983 |
+ |
PyList_Append( task_list, PyString_FromString(it->c_str() ) ); |
984 |
+ |
} |
985 |
+ |
return task_list; |
986 |
+ |
} |
987 |
+ |
void BossTask_appendToPyDict(BossTask const *self,PyObject *dict,BossAttributeContainer const &obj){ |
988 |
+ |
std::string tmp; |
989 |
+ |
BossAttributeContainer::const_iterator it_end = obj.end (); |
990 |
+ |
for (BossAttributeContainer::const_iterator it = obj.begin (); |
991 |
+ |
it != it_end; ++it) { |
992 |
+ |
|
993 |
+ |
PyObject * key = PyString_FromString( (it->first.name()).c_str() ); |
994 |
+ |
PyObject * val = PyString_FromString( (*it).second.value ().c_str() ); |
995 |
+ |
PyDict_SetItem( dict, key, val); |
996 |
+ |
Py_DECREF(key); |
997 |
+ |
Py_DECREF(val); |
998 |
+ |
} |
999 |
+ |
return; |
1000 |
+ |
} |
1001 |
+ |
void BossTask_jobDict(BossTask const *self,BossJob const *jobH,PyObject *job_dict){ |
1002 |
+ |
|
1003 |
+ |
// PyObject * job_dict = PyDict_New(); |
1004 |
+ |
std::string tmp; |
1005 |
+ |
|
1006 |
+ |
BossAttributeContainer obj = jobH->getTableEntries("JOB"); |
1007 |
+ |
BossTask_appendToPyDict ( self, job_dict, obj ); |
1008 |
+ |
|
1009 |
+ |
std::set<std::string> sch = jobH->getSchedulerElements(); |
1010 |
+ |
std::set<std::string>::const_iterator sch_end = sch.end(); |
1011 |
+ |
for (std::set<std::string>::const_iterator it =sch.begin(); |
1012 |
+ |
it != sch_end; ++ it ) { |
1013 |
+ |
|
1014 |
+ |
tmp = (*jobH)["JOB_SCHED_INFO."+(*it)]; |
1015 |
+ |
PyObject * key = PyString_FromString( it->c_str() ); |
1016 |
+ |
PyObject * val = PyString_FromString( tmp.c_str() ); |
1017 |
+ |
PyDict_SetItem( job_dict, key, val); |
1018 |
+ |
Py_DECREF(key); |
1019 |
+ |
Py_DECREF(val); |
1020 |
+ |
} |
1021 |
+ |
return; |
1022 |
+ |
} |
1023 |
+ |
PyObject *BossTask_jobsDict(BossTask *self){ |
1024 |
+ |
|
1025 |
+ |
PyObject * job_dict = PyDict_New(); |
1026 |
+ |
if ( self->job_begin () == self->job_end ()) self->load(ALL); |
1027 |
+ |
for (BossTask::job_iterator jit = self->job_begin (); |
1028 |
+ |
jit != self->job_end (); ++jit) { |
1029 |
+ |
PyObject * id = PyString_FromString( ((*jit)->chainId()).c_str() ); |
1030 |
+ |
PyObject * tmp_dict = PyDict_New(); |
1031 |
+ |
BossTask_jobDict( self, *jit, tmp_dict ); |
1032 |
+ |
PyDict_SetItem( job_dict, id, tmp_dict ); |
1033 |
+ |
Py_DECREF(id); |
1034 |
+ |
Py_DECREF(tmp_dict); |
1035 |
+ |
} |
1036 |
+ |
return job_dict; |
1037 |
+ |
} |
1038 |
+ |
PyObject *BossTask_job(BossTask *self,std::string const &jobid){ |
1039 |
+ |
|
1040 |
+ |
PyObject * job_dict = PyDict_New(); |
1041 |
+ |
self->load( ALL, jobid ); |
1042 |
+ |
BossTask_jobDict( self, &(*self)[ atoi(jobid.c_str()) ], job_dict ); |
1043 |
+ |
return job_dict; |
1044 |
+ |
} |
1045 |
+ |
PyObject *BossTask_Chain(BossTask *self,std::string const &jobid){ |
1046 |
+ |
|
1047 |
+ |
PyObject * chain_dict = PyDict_New(); |
1048 |
+ |
BossAttributeContainer obj = |
1049 |
+ |
self->chain( jobid ).getTableEntries("CHAIN"); |
1050 |
+ |
BossTask_appendToPyDict ( self, chain_dict, obj ); |
1051 |
+ |
return chain_dict; |
1052 |
+ |
} |
1053 |
+ |
PyObject *BossTask_jobStates(BossTask *self){ |
1054 |
+ |
|
1055 |
+ |
PyObject * job_dict = PyDict_New(); |
1056 |
+ |
if ( self->job_begin () == self->job_end ()) self->load(ALL); |
1057 |
+ |
for (BossTask::job_iterator jit = self->job_begin (); |
1058 |
+ |
jit != self->job_end (); ++jit) { |
1059 |
+ |
PyObject * id = PyString_FromString( ((*jit)->chainId()).c_str() ); |
1060 |
+ |
PyObject * status = PyString_FromString( ((**jit)["JOB.STATUS"]).c_str() ); |
1061 |
+ |
PyDict_SetItem( job_dict, id, status ); |
1062 |
+ |
Py_DECREF(id); |
1063 |
+ |
Py_DECREF(status); |
1064 |
+ |
} |
1065 |
+ |
return job_dict; |
1066 |
+ |
} |
1067 |
+ |
PyObject *BossTask_jobStatistic(BossTask *self){ |
1068 |
+ |
|
1069 |
+ |
PyObject * job_dict = PyDict_New(); |
1070 |
+ |
if ( self->job_begin () == self->job_end ()) self->load(ALL); |
1071 |
+ |
std::map< std::string, int > states; |
1072 |
+ |
for (BossTask::job_iterator jit = self->job_begin (); |
1073 |
+ |
jit != self->job_end (); ++jit) { |
1074 |
+ |
++states[(**jit)["JOB.STATUS"]]; |
1075 |
+ |
} |
1076 |
+ |
|
1077 |
+ |
std::map< std::string, int >::const_iterator end = states.end (); |
1078 |
+ |
for (std::map< std::string, int >::const_iterator it = states.begin (); |
1079 |
+ |
it != end; ++it) { |
1080 |
+ |
PyObject * status = PyString_FromString( (it->first).c_str() ); |
1081 |
+ |
PyObject * jobs = PyString_FromFormat( "%d", it->second ); |
1082 |
+ |
PyDict_SetItem( job_dict, status, jobs ); |
1083 |
+ |
Py_DECREF(jobs); |
1084 |
+ |
Py_DECREF(status); |
1085 |
+ |
} |
1086 |
+ |
return job_dict; |
1087 |
+ |
} |
1088 |
+ |
PyObject *BossTask_progDict(BossTask const *self,std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator &programs_it){ |
1089 |
+ |
|
1090 |
+ |
PyObject * job_dict = PyDict_New(); |
1091 |
+ |
|
1092 |
+ |
std::string tmp; |
1093 |
+ |
|
1094 |
+ |
// PROGRAM |
1095 |
+ |
BossAttributeContainer obj = |
1096 |
+ |
(programs_it->first).getTableEntries("PROGRAM"); |
1097 |
+ |
BossTask_appendToPyDict ( self, job_dict, obj ); |
1098 |
+ |
|
1099 |
+ |
// PROGRAM_EXEC |
1100 |
+ |
obj.clear(); |
1101 |
+ |
obj = (programs_it->second).getTableEntries("PROGRAM_EXEC"); |
1102 |
+ |
BossTask_appendToPyDict ( self, job_dict, obj ); |
1103 |
+ |
|
1104 |
+ |
// SPECIFICS |
1105 |
+ |
std::vector < BossAttributeContainer >::const_iterator it; |
1106 |
+ |
std::vector < BossAttributeContainer >::const_iterator it_end = (programs_it->second).specEnd (); |
1107 |
+ |
for ( it = (programs_it->second).specBegin (); it != it_end; ++it) { |
1108 |
+ |
BossTask_appendToPyDict ( self, job_dict, *it ); |
1109 |
+ |
} |
1110 |
+ |
return job_dict; |
1111 |
+ |
} |
1112 |
+ |
PyObject *BossTask_jobPrograms(BossTask const *self,std::string const &jobid){ |
1113 |
+ |
|
1114 |
+ |
const BossJob * jH = &((*self)[atoi( jobid.c_str() )]); |
1115 |
+ |
std::map< std::string, std::map< std::string, std::string > > ret_val; |
1116 |
+ |
std::vector< std::pair<BossProgram, BossProgramExec > > |
1117 |
+ |
programs = self->queryJobPrograms ( jH ); |
1118 |
+ |
std::vector< std::pair<BossProgram, BossProgramExec > >::const_iterator |
1119 |
+ |
programs_it_end = programs.end(); |
1120 |
+ |
std::vector< std::pair<BossProgram, BossProgramExec > >::const_iterator |
1121 |
+ |
programs_it; |
1122 |
+ |
|
1123 |
+ |
|
1124 |
+ |
PyObject * job_dict = PyDict_New(); |
1125 |
+ |
|
1126 |
+ |
for ( programs_it = programs.begin(); programs_it != programs_it_end; |
1127 |
+ |
++programs_it ) { |
1128 |
+ |
std::string id = (programs_it->first)["PROGRAM.ID"]; |
1129 |
+ |
PyObject * tmp_dict = BossTask_progDict( self, programs_it ); |
1130 |
+ |
PyObject * myid = PyString_FromString(id.c_str() ); |
1131 |
+ |
PyDict_SetItem( job_dict, myid, tmp_dict ); |
1132 |
+ |
Py_DECREF(myid); |
1133 |
+ |
Py_DECREF(tmp_dict); |
1134 |
+ |
} |
1135 |
+ |
return job_dict; |
1136 |
+ |
} |
1137 |
+ |
PyObject *BossTask_program(BossTask *self,std::string const &jobid,std::string const &programId){ |
1138 |
+ |
|
1139 |
+ |
PyObject * job_dict = PyDict_New(); |
1140 |
+ |
|
1141 |
+ |
const BossJob * jH = &((*self)[atoi( jobid.c_str() )]); |
1142 |
+ |
BossAttributeContainer obj = |
1143 |
+ |
self->queryProgram( jH, programId ).getTableEntries("PROGRAM"); |
1144 |
+ |
BossTask_appendToPyDict ( self, job_dict, obj ); |
1145 |
+ |
return job_dict; |
1146 |
+ |
} |
1147 |
+ |
PyObject *BossTask_programExec(BossTask *self,std::string const &jobid,std::string const &programId){ |
1148 |
+ |
|
1149 |
+ |
PyObject * job_dict = PyDict_New(); |
1150 |
+ |
|
1151 |
+ |
const BossJob * jH = &((*self)[atoi( jobid.c_str() )]); |
1152 |
+ |
|
1153 |
+ |
// PROGRAM_EXEC |
1154 |
+ |
BossProgramExec programExec = self->queryProgramExec( jH, programId ); |
1155 |
+ |
BossAttributeContainer obj = programExec.getTableEntries("PROGRAM_EXEC"); |
1156 |
+ |
BossTask_appendToPyDict ( self, job_dict, obj ); |
1157 |
+ |
|
1158 |
+ |
// SPECIFICS |
1159 |
+ |
std::vector < BossAttributeContainer >::const_iterator it; |
1160 |
+ |
std::vector < BossAttributeContainer >::const_iterator it_end = programExec.specEnd (); |
1161 |
+ |
for ( it = programExec.specBegin (); it != it_end; ++it) { |
1162 |
+ |
BossTask_appendToPyDict ( self, job_dict, *it ); |
1163 |
+ |
} |
1164 |
+ |
return job_dict; |
1165 |
+ |
} |
1166 |
+ |
PyObject *BossTask_specific(BossTask *self,std::string const &jobid,std::string const &programId){ |
1167 |
+ |
|
1168 |
+ |
PyObject * job_dict = PyDict_New(); |
1169 |
+ |
|
1170 |
+ |
const BossJob * jH = &((*self)[atoi( jobid.c_str() )]); |
1171 |
+ |
BossProgramExec programExec = self->queryProgramExec( jH, programId ); |
1172 |
+ |
BossAttributeContainer obj = programExec.getKeys (); |
1173 |
+ |
BossTask_appendToPyDict ( self, job_dict, obj ); |
1174 |
+ |
|
1175 |
+ |
std::vector < BossAttributeContainer >::const_iterator it; |
1176 |
+ |
std::vector < BossAttributeContainer >::const_iterator it_end = programExec.specEnd (); |
1177 |
+ |
for ( it = programExec.specBegin (); it != it_end; ++it) { |
1178 |
+ |
BossTask_appendToPyDict ( self, job_dict, *it ); |
1179 |
+ |
} |
1180 |
+ |
return job_dict; |
1181 |
+ |
} |
1182 |
|
#ifdef __cplusplus |
1183 |
|
extern "C" { |
1184 |
|
#endif |
1185 |
< |
static PyObject *_wrap_new_BossSession(PyObject *self, PyObject *args) { |
1185 |
> |
static PyObject *_wrap_new_objectMap__SWIG_0(PyObject *self, PyObject *args) { |
1186 |
|
PyObject *resultobj; |
1187 |
< |
BossSession *result; |
1187 |
> |
std::map<std::string,std::string > *result; |
1188 |
|
|
1189 |
< |
if(!PyArg_ParseTuple(args,(char *)":new_BossSession")) goto fail; |
1190 |
< |
result = (BossSession *)new BossSession(); |
1189 |
> |
if(!PyArg_ParseTuple(args,(char *)":new_objectMap")) goto fail; |
1190 |
> |
{ |
1191 |
> |
try { |
1192 |
> |
result = (std::map<std::string,std::string > *)new std::map<std::string,std::string >(); |
1193 |
> |
|
1194 |
> |
}catch (const BossSchedFailure & e) { |
1195 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1196 |
> |
return NULL; |
1197 |
> |
}catch (const std::exception& e) { |
1198 |
> |
PyErr_SetString ( BossError, e.what() ); |
1199 |
> |
return NULL; |
1200 |
> |
} |
1201 |
> |
} |
1202 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__mapTstd__string_std__string_t, 1); |
1203 |
> |
return resultobj; |
1204 |
> |
fail: |
1205 |
> |
return NULL; |
1206 |
> |
} |
1207 |
> |
|
1208 |
> |
|
1209 |
> |
static PyObject *_wrap_new_objectMap__SWIG_1(PyObject *self, PyObject *args) { |
1210 |
> |
PyObject *resultobj; |
1211 |
> |
std::map<std::string,std::string > *arg1 = 0 ; |
1212 |
> |
std::map<std::string,std::string > *result; |
1213 |
> |
std::map<std::string,std::string > temp1 ; |
1214 |
> |
std::map<std::string,std::string > *m1 ; |
1215 |
> |
PyObject * obj0 = 0 ; |
1216 |
|
|
1217 |
< |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossSession, 1); |
1217 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:new_objectMap",&obj0)) goto fail; |
1218 |
> |
{ |
1219 |
> |
if (PyDict_Check(obj0)) { |
1220 |
> |
PyObject* items = PyMapping_Items(obj0); |
1221 |
> |
unsigned int size = PyList_Size(items); |
1222 |
> |
temp1 = std::map<std::string,std::string >(); |
1223 |
> |
arg1 = &temp1; |
1224 |
> |
for (unsigned int i=0; i<size; i++) { |
1225 |
> |
PyObject* pair = PySequence_GetItem(items,i); |
1226 |
> |
PyObject* key = PySequence_GetItem(pair,0); |
1227 |
> |
PyObject* o = PySequence_GetItem(pair,1); |
1228 |
> |
if (PyString_Check(key) && PyString_Check(o)) { |
1229 |
> |
temp1[SwigString_AsString(key)] = SwigString_AsString(o); |
1230 |
> |
Py_DECREF(key); |
1231 |
> |
Py_DECREF(o); |
1232 |
> |
Py_DECREF(pair); |
1233 |
> |
}else { |
1234 |
> |
Py_DECREF(key); |
1235 |
> |
Py_DECREF(o); |
1236 |
> |
Py_DECREF(pair); |
1237 |
> |
Py_DECREF(items); |
1238 |
> |
PyErr_SetString(PyExc_TypeError, |
1239 |
> |
"map<""std::string"",""std::string""> expected"); |
1240 |
> |
SWIG_fail; |
1241 |
> |
} |
1242 |
> |
} |
1243 |
> |
Py_DECREF(items); |
1244 |
> |
}else if (SWIG_ConvertPtr(obj0,(void **) &m1, |
1245 |
> |
SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1) { |
1246 |
> |
arg1 = m1; |
1247 |
> |
}else { |
1248 |
> |
PyErr_SetString(PyExc_TypeError, |
1249 |
> |
"map<""std::string"",""std::string""> expected"); |
1250 |
> |
SWIG_fail; |
1251 |
> |
} |
1252 |
> |
} |
1253 |
> |
{ |
1254 |
> |
try { |
1255 |
> |
result = (std::map<std::string,std::string > *)new std::map<std::string,std::string >((std::map<std::string,std::string > const &)*arg1); |
1256 |
> |
|
1257 |
> |
}catch (const BossSchedFailure & e) { |
1258 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1259 |
> |
return NULL; |
1260 |
> |
}catch (const std::exception& e) { |
1261 |
> |
PyErr_SetString ( BossError, e.what() ); |
1262 |
> |
return NULL; |
1263 |
> |
} |
1264 |
> |
} |
1265 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__mapTstd__string_std__string_t, 1); |
1266 |
|
return resultobj; |
1267 |
|
fail: |
1268 |
|
return NULL; |
1269 |
|
} |
1270 |
|
|
1271 |
|
|
1272 |
< |
static PyObject *_wrap_delete_BossSession(PyObject *self, PyObject *args) { |
1272 |
> |
static PyObject *_wrap_new_objectMap(PyObject *self, PyObject *args) { |
1273 |
> |
int argc; |
1274 |
> |
PyObject *argv[2]; |
1275 |
> |
int ii; |
1276 |
> |
|
1277 |
> |
argc = PyObject_Length(args); |
1278 |
> |
for (ii = 0; (ii < argc) && (ii < 1); ii++) { |
1279 |
> |
argv[ii] = PyTuple_GetItem(args,ii); |
1280 |
> |
} |
1281 |
> |
if (argc == 0) { |
1282 |
> |
return _wrap_new_objectMap__SWIG_0(self,args); |
1283 |
> |
} |
1284 |
> |
if (argc == 1) { |
1285 |
> |
int _v; |
1286 |
> |
{ |
1287 |
> |
/* native sequence? */ |
1288 |
> |
if (PyDict_Check(argv[0])) { |
1289 |
> |
PyObject* items = PyMapping_Items(argv[0]); |
1290 |
> |
unsigned int size = PyList_Size(items); |
1291 |
> |
if (size == 0) { |
1292 |
> |
/* an empty dictionary can be of any type */ |
1293 |
> |
_v = 1; |
1294 |
> |
}else { |
1295 |
> |
/* check the first element only */ |
1296 |
> |
PyObject* pair = PySequence_GetItem(items,0); |
1297 |
> |
PyObject* key = PySequence_GetItem(pair,0); |
1298 |
> |
PyObject* o = PySequence_GetItem(pair,1); |
1299 |
> |
if (PyString_Check(key) && PyString_Check(o)) |
1300 |
> |
_v = 1; |
1301 |
> |
else |
1302 |
> |
_v = 0; |
1303 |
> |
Py_DECREF(key); |
1304 |
> |
Py_DECREF(o); |
1305 |
> |
Py_DECREF(pair); |
1306 |
> |
} |
1307 |
> |
Py_DECREF(items); |
1308 |
> |
}else { |
1309 |
> |
/* wrapped map? */ |
1310 |
> |
std::map<std::string,std::string >* m; |
1311 |
> |
if (SWIG_ConvertPtr(argv[0],(void **) &m, |
1312 |
> |
SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1) |
1313 |
> |
_v = 1; |
1314 |
> |
else |
1315 |
> |
_v = 0; |
1316 |
> |
} |
1317 |
> |
} |
1318 |
> |
if (_v) { |
1319 |
> |
return _wrap_new_objectMap__SWIG_1(self,args); |
1320 |
> |
} |
1321 |
> |
} |
1322 |
> |
|
1323 |
> |
PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_objectMap'"); |
1324 |
> |
return NULL; |
1325 |
> |
} |
1326 |
> |
|
1327 |
> |
|
1328 |
> |
static PyObject *_wrap_objectMap___len__(PyObject *self, PyObject *args) { |
1329 |
|
PyObject *resultobj; |
1330 |
< |
BossSession *arg1 = (BossSession *) 0 ; |
1330 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1331 |
> |
unsigned int result; |
1332 |
> |
std::map<std::string,std::string > temp1 ; |
1333 |
> |
std::map<std::string,std::string > *m1 ; |
1334 |
|
PyObject * obj0 = 0 ; |
1335 |
|
|
1336 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:delete_BossSession",&obj0)) goto fail; |
1337 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1338 |
< |
delete arg1; |
1336 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:objectMap___len__",&obj0)) goto fail; |
1337 |
> |
{ |
1338 |
> |
if (PyDict_Check(obj0)) { |
1339 |
> |
PyObject* items = PyMapping_Items(obj0); |
1340 |
> |
unsigned int size = PyList_Size(items); |
1341 |
> |
temp1 = std::map<std::string,std::string >(); |
1342 |
> |
arg1 = &temp1; |
1343 |
> |
for (unsigned int i=0; i<size; i++) { |
1344 |
> |
PyObject* pair = PySequence_GetItem(items,i); |
1345 |
> |
PyObject* key = PySequence_GetItem(pair,0); |
1346 |
> |
PyObject* o = PySequence_GetItem(pair,1); |
1347 |
> |
if (PyString_Check(key) && PyString_Check(o)) { |
1348 |
> |
temp1[SwigString_AsString(key)] = SwigString_AsString(o); |
1349 |
> |
Py_DECREF(key); |
1350 |
> |
Py_DECREF(o); |
1351 |
> |
Py_DECREF(pair); |
1352 |
> |
}else { |
1353 |
> |
Py_DECREF(key); |
1354 |
> |
Py_DECREF(o); |
1355 |
> |
Py_DECREF(pair); |
1356 |
> |
Py_DECREF(items); |
1357 |
> |
PyErr_SetString(PyExc_TypeError, |
1358 |
> |
"map<""std::string"",""std::string""> expected"); |
1359 |
> |
SWIG_fail; |
1360 |
> |
} |
1361 |
> |
} |
1362 |
> |
Py_DECREF(items); |
1363 |
> |
}else if (SWIG_ConvertPtr(obj0,(void **) &m1, |
1364 |
> |
SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1) { |
1365 |
> |
arg1 = m1; |
1366 |
> |
}else { |
1367 |
> |
PyErr_SetString(PyExc_TypeError, |
1368 |
> |
"map<""std::string"",""std::string""> expected"); |
1369 |
> |
SWIG_fail; |
1370 |
> |
} |
1371 |
> |
} |
1372 |
> |
{ |
1373 |
> |
try { |
1374 |
> |
result = (unsigned int)((std::map<std::string,std::string > const *)arg1)->size(); |
1375 |
> |
|
1376 |
> |
}catch (const BossSchedFailure & e) { |
1377 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1378 |
> |
return NULL; |
1379 |
> |
}catch (const std::exception& e) { |
1380 |
> |
PyErr_SetString ( BossError, e.what() ); |
1381 |
> |
return NULL; |
1382 |
> |
} |
1383 |
> |
} |
1384 |
> |
resultobj = PyInt_FromLong((long)result); |
1385 |
> |
return resultobj; |
1386 |
> |
fail: |
1387 |
> |
return NULL; |
1388 |
> |
} |
1389 |
> |
|
1390 |
> |
|
1391 |
> |
static PyObject *_wrap_objectMap_clear(PyObject *self, PyObject *args) { |
1392 |
> |
PyObject *resultobj; |
1393 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1394 |
> |
PyObject * obj0 = 0 ; |
1395 |
|
|
1396 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:objectMap_clear",&obj0)) goto fail; |
1397 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1398 |
+ |
{ |
1399 |
+ |
try { |
1400 |
+ |
(arg1)->clear(); |
1401 |
+ |
|
1402 |
+ |
}catch (const BossSchedFailure & e) { |
1403 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
1404 |
+ |
return NULL; |
1405 |
+ |
}catch (const std::exception& e) { |
1406 |
+ |
PyErr_SetString ( BossError, e.what() ); |
1407 |
+ |
return NULL; |
1408 |
+ |
} |
1409 |
+ |
} |
1410 |
|
Py_INCREF(Py_None); resultobj = Py_None; |
1411 |
|
return resultobj; |
1412 |
|
fail: |
1414 |
|
} |
1415 |
|
|
1416 |
|
|
1417 |
< |
static PyObject * BossSession_swigregister(PyObject *self, PyObject *args) { |
1418 |
< |
PyObject *obj; |
1419 |
< |
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
1420 |
< |
SWIG_TypeClientData(SWIGTYPE_p_BossSession, obj); |
1421 |
< |
Py_INCREF(obj); |
1422 |
< |
return Py_BuildValue((char *)""); |
1417 |
> |
static PyObject *_wrap_objectMap___nonzero__(PyObject *self, PyObject *args) { |
1418 |
> |
PyObject *resultobj; |
1419 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1420 |
> |
bool result; |
1421 |
> |
PyObject * obj0 = 0 ; |
1422 |
> |
|
1423 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:objectMap___nonzero__",&obj0)) goto fail; |
1424 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1425 |
> |
{ |
1426 |
> |
try { |
1427 |
> |
result = (bool)std_maplstd_stringcstd_string_g___nonzero_____(arg1); |
1428 |
> |
|
1429 |
> |
}catch (const BossSchedFailure & e) { |
1430 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1431 |
> |
return NULL; |
1432 |
> |
}catch (const std::exception& e) { |
1433 |
> |
PyErr_SetString ( BossError, e.what() ); |
1434 |
> |
return NULL; |
1435 |
> |
} |
1436 |
> |
} |
1437 |
> |
resultobj = PyInt_FromLong((long)result); |
1438 |
> |
return resultobj; |
1439 |
> |
fail: |
1440 |
> |
return NULL; |
1441 |
> |
} |
1442 |
> |
|
1443 |
> |
|
1444 |
> |
static PyObject *_wrap_objectMap___getitem__(PyObject *self, PyObject *args) { |
1445 |
> |
PyObject *resultobj; |
1446 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1447 |
> |
std::string arg2 ; |
1448 |
> |
std::string result; |
1449 |
> |
PyObject * obj0 = 0 ; |
1450 |
> |
PyObject * obj1 = 0 ; |
1451 |
> |
|
1452 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___getitem__",&obj0,&obj1)) goto fail; |
1453 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1454 |
> |
{ |
1455 |
> |
if (PyString_Check(obj1)) |
1456 |
> |
arg2 = std::string(PyString_AsString(obj1)); |
1457 |
> |
else |
1458 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
1459 |
> |
} |
1460 |
> |
{ |
1461 |
> |
try { |
1462 |
> |
result = std_maplstd_stringcstd_string_g___getitem_____(arg1,arg2); |
1463 |
> |
|
1464 |
> |
}catch (std::out_of_range& e) { |
1465 |
> |
PyErr_SetString(PyExc_KeyError,const_cast<char*>(e.what())); |
1466 |
> |
SWIG_fail; |
1467 |
> |
} |
1468 |
> |
} |
1469 |
> |
{ |
1470 |
> |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
1471 |
> |
} |
1472 |
> |
return resultobj; |
1473 |
> |
fail: |
1474 |
> |
return NULL; |
1475 |
> |
} |
1476 |
> |
|
1477 |
> |
|
1478 |
> |
static PyObject *_wrap_objectMap___setitem__(PyObject *self, PyObject *args) { |
1479 |
> |
PyObject *resultobj; |
1480 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1481 |
> |
std::string arg2 ; |
1482 |
> |
std::string arg3 ; |
1483 |
> |
PyObject * obj0 = 0 ; |
1484 |
> |
PyObject * obj1 = 0 ; |
1485 |
> |
PyObject * obj2 = 0 ; |
1486 |
> |
|
1487 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO:objectMap___setitem__",&obj0,&obj1,&obj2)) goto fail; |
1488 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1489 |
> |
{ |
1490 |
> |
if (PyString_Check(obj1)) |
1491 |
> |
arg2 = std::string(PyString_AsString(obj1)); |
1492 |
> |
else |
1493 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
1494 |
> |
} |
1495 |
> |
{ |
1496 |
> |
if (PyString_Check(obj2)) |
1497 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
1498 |
> |
else |
1499 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
1500 |
> |
} |
1501 |
> |
{ |
1502 |
> |
try { |
1503 |
> |
std_maplstd_stringcstd_string_g___setitem_____(arg1,arg2,arg3); |
1504 |
> |
|
1505 |
> |
}catch (const BossSchedFailure & e) { |
1506 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1507 |
> |
return NULL; |
1508 |
> |
}catch (const std::exception& e) { |
1509 |
> |
PyErr_SetString ( BossError, e.what() ); |
1510 |
> |
return NULL; |
1511 |
> |
} |
1512 |
> |
} |
1513 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
1514 |
> |
return resultobj; |
1515 |
> |
fail: |
1516 |
> |
return NULL; |
1517 |
|
} |
1518 |
< |
static PyObject *_wrap_new_BossUserSession(PyObject *self, PyObject *args) { |
1518 |
> |
|
1519 |
> |
|
1520 |
> |
static PyObject *_wrap_objectMap___delitem__(PyObject *self, PyObject *args) { |
1521 |
|
PyObject *resultobj; |
1522 |
< |
std::string arg1 ; |
1523 |
< |
BossUserSession *result; |
1522 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1523 |
> |
std::string arg2 ; |
1524 |
|
PyObject * obj0 = 0 ; |
1525 |
+ |
PyObject * obj1 = 0 ; |
1526 |
|
|
1527 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:new_BossUserSession",&obj0)) goto fail; |
1527 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___delitem__",&obj0,&obj1)) goto fail; |
1528 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1529 |
|
{ |
1530 |
< |
if (PyString_Check(obj0)) |
1531 |
< |
arg1 = std::string(PyString_AsString(obj0)); |
1530 |
> |
if (PyString_Check(obj1)) |
1531 |
> |
arg2 = std::string(PyString_AsString(obj1)); |
1532 |
|
else |
1533 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
1534 |
|
} |
1535 |
< |
result = (BossUserSession *)new BossUserSession(arg1); |
1535 |
> |
{ |
1536 |
> |
try { |
1537 |
> |
std_maplstd_stringcstd_string_g___delitem_____(arg1,arg2); |
1538 |
> |
|
1539 |
> |
}catch (std::out_of_range& e) { |
1540 |
> |
PyErr_SetString(PyExc_KeyError,const_cast<char*>(e.what())); |
1541 |
> |
SWIG_fail; |
1542 |
> |
} |
1543 |
> |
} |
1544 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
1545 |
> |
return resultobj; |
1546 |
> |
fail: |
1547 |
> |
return NULL; |
1548 |
> |
} |
1549 |
> |
|
1550 |
> |
|
1551 |
> |
static PyObject *_wrap_objectMap_has_key(PyObject *self, PyObject *args) { |
1552 |
> |
PyObject *resultobj; |
1553 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1554 |
> |
std::string arg2 ; |
1555 |
> |
bool result; |
1556 |
> |
PyObject * obj0 = 0 ; |
1557 |
> |
PyObject * obj1 = 0 ; |
1558 |
|
|
1559 |
< |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossUserSession, 1); |
1559 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:objectMap_has_key",&obj0,&obj1)) goto fail; |
1560 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1561 |
> |
{ |
1562 |
> |
if (PyString_Check(obj1)) |
1563 |
> |
arg2 = std::string(PyString_AsString(obj1)); |
1564 |
> |
else |
1565 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
1566 |
> |
} |
1567 |
> |
{ |
1568 |
> |
try { |
1569 |
> |
result = (bool)std_maplstd_stringcstd_string_g_has_key___(arg1,arg2); |
1570 |
> |
|
1571 |
> |
}catch (const BossSchedFailure & e) { |
1572 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1573 |
> |
return NULL; |
1574 |
> |
}catch (const std::exception& e) { |
1575 |
> |
PyErr_SetString ( BossError, e.what() ); |
1576 |
> |
return NULL; |
1577 |
> |
} |
1578 |
> |
} |
1579 |
> |
resultobj = PyInt_FromLong((long)result); |
1580 |
> |
return resultobj; |
1581 |
> |
fail: |
1582 |
> |
return NULL; |
1583 |
> |
} |
1584 |
> |
|
1585 |
> |
|
1586 |
> |
static PyObject *_wrap_objectMap_keys(PyObject *self, PyObject *args) { |
1587 |
> |
PyObject *resultobj; |
1588 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1589 |
> |
PyObject *result; |
1590 |
> |
PyObject * obj0 = 0 ; |
1591 |
> |
|
1592 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:objectMap_keys",&obj0)) goto fail; |
1593 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1594 |
> |
{ |
1595 |
> |
try { |
1596 |
> |
result = (PyObject *)std_maplstd_stringcstd_string_g_keys___(arg1); |
1597 |
> |
|
1598 |
> |
}catch (const BossSchedFailure & e) { |
1599 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1600 |
> |
return NULL; |
1601 |
> |
}catch (const std::exception& e) { |
1602 |
> |
PyErr_SetString ( BossError, e.what() ); |
1603 |
> |
return NULL; |
1604 |
> |
} |
1605 |
> |
} |
1606 |
> |
resultobj = result; |
1607 |
|
return resultobj; |
1608 |
|
fail: |
1609 |
|
return NULL; |
1610 |
|
} |
1611 |
|
|
1612 |
|
|
1613 |
< |
static PyObject *_wrap_delete_BossUserSession(PyObject *self, PyObject *args) { |
1613 |
> |
static PyObject *_wrap_objectMap_values(PyObject *self, PyObject *args) { |
1614 |
|
PyObject *resultobj; |
1615 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
1615 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1616 |
> |
PyObject *result; |
1617 |
|
PyObject * obj0 = 0 ; |
1618 |
|
|
1619 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:delete_BossUserSession",&obj0)) goto fail; |
1620 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1621 |
< |
delete arg1; |
1619 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:objectMap_values",&obj0)) goto fail; |
1620 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1621 |
> |
{ |
1622 |
> |
try { |
1623 |
> |
result = (PyObject *)std_maplstd_stringcstd_string_g_values___(arg1); |
1624 |
> |
|
1625 |
> |
}catch (const BossSchedFailure & e) { |
1626 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1627 |
> |
return NULL; |
1628 |
> |
}catch (const std::exception& e) { |
1629 |
> |
PyErr_SetString ( BossError, e.what() ); |
1630 |
> |
return NULL; |
1631 |
> |
} |
1632 |
> |
} |
1633 |
> |
resultobj = result; |
1634 |
> |
return resultobj; |
1635 |
> |
fail: |
1636 |
> |
return NULL; |
1637 |
> |
} |
1638 |
> |
|
1639 |
> |
|
1640 |
> |
static PyObject *_wrap_objectMap_items(PyObject *self, PyObject *args) { |
1641 |
> |
PyObject *resultobj; |
1642 |
> |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1643 |
> |
PyObject *result; |
1644 |
> |
PyObject * obj0 = 0 ; |
1645 |
|
|
1646 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:objectMap_items",&obj0)) goto fail; |
1647 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1648 |
+ |
{ |
1649 |
+ |
try { |
1650 |
+ |
result = (PyObject *)std_maplstd_stringcstd_string_g_items___(arg1); |
1651 |
+ |
|
1652 |
+ |
}catch (const BossSchedFailure & e) { |
1653 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
1654 |
+ |
return NULL; |
1655 |
+ |
}catch (const std::exception& e) { |
1656 |
+ |
PyErr_SetString ( BossError, e.what() ); |
1657 |
+ |
return NULL; |
1658 |
+ |
} |
1659 |
+ |
} |
1660 |
+ |
resultobj = result; |
1661 |
+ |
return resultobj; |
1662 |
+ |
fail: |
1663 |
+ |
return NULL; |
1664 |
+ |
} |
1665 |
+ |
|
1666 |
+ |
|
1667 |
+ |
static PyObject *_wrap_objectMap___contains__(PyObject *self, PyObject *args) { |
1668 |
+ |
PyObject *resultobj; |
1669 |
+ |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1670 |
+ |
std::string arg2 ; |
1671 |
+ |
bool result; |
1672 |
+ |
PyObject * obj0 = 0 ; |
1673 |
+ |
PyObject * obj1 = 0 ; |
1674 |
+ |
|
1675 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___contains__",&obj0,&obj1)) goto fail; |
1676 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1677 |
+ |
{ |
1678 |
+ |
if (PyString_Check(obj1)) |
1679 |
+ |
arg2 = std::string(PyString_AsString(obj1)); |
1680 |
+ |
else |
1681 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
1682 |
+ |
} |
1683 |
+ |
{ |
1684 |
+ |
try { |
1685 |
+ |
result = (bool)std_maplstd_stringcstd_string_g___contains_____(arg1,arg2); |
1686 |
+ |
|
1687 |
+ |
}catch (const BossSchedFailure & e) { |
1688 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
1689 |
+ |
return NULL; |
1690 |
+ |
}catch (const std::exception& e) { |
1691 |
+ |
PyErr_SetString ( BossError, e.what() ); |
1692 |
+ |
return NULL; |
1693 |
+ |
} |
1694 |
+ |
} |
1695 |
+ |
resultobj = PyInt_FromLong((long)result); |
1696 |
+ |
return resultobj; |
1697 |
+ |
fail: |
1698 |
+ |
return NULL; |
1699 |
+ |
} |
1700 |
+ |
|
1701 |
+ |
|
1702 |
+ |
static PyObject *_wrap_objectMap___iter__(PyObject *self, PyObject *args) { |
1703 |
+ |
PyObject *resultobj; |
1704 |
+ |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1705 |
+ |
PyObject *result; |
1706 |
+ |
PyObject * obj0 = 0 ; |
1707 |
+ |
|
1708 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:objectMap___iter__",&obj0)) goto fail; |
1709 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1710 |
+ |
{ |
1711 |
+ |
try { |
1712 |
+ |
result = (PyObject *)std_maplstd_stringcstd_string_g___iter_____(arg1); |
1713 |
+ |
|
1714 |
+ |
}catch (std::runtime_error& e) { |
1715 |
+ |
PyErr_SetString(PyExc_RuntimeError,const_cast<char*>(e.what())); |
1716 |
+ |
SWIG_fail; |
1717 |
+ |
} |
1718 |
+ |
} |
1719 |
+ |
resultobj = result; |
1720 |
+ |
return resultobj; |
1721 |
+ |
fail: |
1722 |
+ |
return NULL; |
1723 |
+ |
} |
1724 |
+ |
|
1725 |
+ |
|
1726 |
+ |
static PyObject *_wrap_delete_objectMap(PyObject *self, PyObject *args) { |
1727 |
+ |
PyObject *resultobj; |
1728 |
+ |
std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ; |
1729 |
+ |
PyObject * obj0 = 0 ; |
1730 |
+ |
|
1731 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:delete_objectMap",&obj0)) goto fail; |
1732 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1733 |
+ |
{ |
1734 |
+ |
try { |
1735 |
+ |
delete arg1; |
1736 |
+ |
|
1737 |
+ |
}catch (const BossSchedFailure & e) { |
1738 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
1739 |
+ |
return NULL; |
1740 |
+ |
}catch (const std::exception& e) { |
1741 |
+ |
PyErr_SetString ( BossError, e.what() ); |
1742 |
+ |
return NULL; |
1743 |
+ |
} |
1744 |
+ |
} |
1745 |
|
Py_INCREF(Py_None); resultobj = Py_None; |
1746 |
|
return resultobj; |
1747 |
|
fail: |
1749 |
|
} |
1750 |
|
|
1751 |
|
|
1752 |
< |
static PyObject *_wrap_BossUserSession_exitCode(PyObject *self, PyObject *args) { |
1752 |
> |
static PyObject * objectMap_swigregister(PyObject *self, PyObject *args) { |
1753 |
> |
PyObject *obj; |
1754 |
> |
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
1755 |
> |
SWIG_TypeClientData(SWIGTYPE_p_std__mapTstd__string_std__string_t, obj); |
1756 |
> |
Py_INCREF(obj); |
1757 |
> |
return Py_BuildValue((char *)""); |
1758 |
> |
} |
1759 |
> |
static PyObject *_wrap_new_vector_string__SWIG_0(PyObject *self, PyObject *args) { |
1760 |
|
PyObject *resultobj; |
1761 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
1762 |
< |
int result; |
1761 |
> |
unsigned int arg1 = (unsigned int) 0 ; |
1762 |
> |
std::vector<std::string > *result; |
1763 |
> |
PyObject * obj0 = 0 ; |
1764 |
> |
|
1765 |
> |
if(!PyArg_ParseTuple(args,(char *)"|O:new_vector_string",&obj0)) goto fail; |
1766 |
> |
if (obj0) { |
1767 |
> |
arg1 = (unsigned int) PyInt_AsLong(obj0); |
1768 |
> |
if (PyErr_Occurred()) SWIG_fail; |
1769 |
> |
} |
1770 |
> |
{ |
1771 |
> |
try { |
1772 |
> |
result = (std::vector<std::string > *)new std::vector<std::string >(arg1); |
1773 |
> |
|
1774 |
> |
}catch (const BossSchedFailure & e) { |
1775 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1776 |
> |
return NULL; |
1777 |
> |
}catch (const std::exception& e) { |
1778 |
> |
PyErr_SetString ( BossError, e.what() ); |
1779 |
> |
return NULL; |
1780 |
> |
} |
1781 |
> |
} |
1782 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1); |
1783 |
> |
return resultobj; |
1784 |
> |
fail: |
1785 |
> |
return NULL; |
1786 |
> |
} |
1787 |
> |
|
1788 |
> |
|
1789 |
> |
static PyObject *_wrap_new_vector_string__SWIG_1(PyObject *self, PyObject *args) { |
1790 |
> |
PyObject *resultobj; |
1791 |
> |
unsigned int arg1 ; |
1792 |
> |
std::string *arg2 = 0 ; |
1793 |
> |
std::vector<std::string > *result; |
1794 |
> |
std::string temp2 ; |
1795 |
> |
PyObject * obj0 = 0 ; |
1796 |
> |
PyObject * obj1 = 0 ; |
1797 |
> |
|
1798 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:new_vector_string",&obj0,&obj1)) goto fail; |
1799 |
> |
arg1 = (unsigned int) PyInt_AsLong(obj0); |
1800 |
> |
if (PyErr_Occurred()) SWIG_fail; |
1801 |
> |
{ |
1802 |
> |
if (PyString_Check(obj1)) { |
1803 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
1804 |
> |
arg2 = &temp2; |
1805 |
> |
}else { |
1806 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
1807 |
> |
} |
1808 |
> |
} |
1809 |
> |
{ |
1810 |
> |
try { |
1811 |
> |
result = (std::vector<std::string > *)new std::vector<std::string >(arg1,(std::string const &)*arg2); |
1812 |
> |
|
1813 |
> |
}catch (const BossSchedFailure & e) { |
1814 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1815 |
> |
return NULL; |
1816 |
> |
}catch (const std::exception& e) { |
1817 |
> |
PyErr_SetString ( BossError, e.what() ); |
1818 |
> |
return NULL; |
1819 |
> |
} |
1820 |
> |
} |
1821 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1); |
1822 |
> |
return resultobj; |
1823 |
> |
fail: |
1824 |
> |
return NULL; |
1825 |
> |
} |
1826 |
> |
|
1827 |
> |
|
1828 |
> |
static PyObject *_wrap_new_vector_string__SWIG_2(PyObject *self, PyObject *args) { |
1829 |
> |
PyObject *resultobj; |
1830 |
> |
std::vector<std::string > *arg1 = 0 ; |
1831 |
> |
std::vector<std::string > *result; |
1832 |
> |
std::vector<std::string > temp1 ; |
1833 |
> |
std::vector<std::string > *v1 ; |
1834 |
|
PyObject * obj0 = 0 ; |
1835 |
|
|
1836 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:BossUserSession_exitCode",&obj0)) goto fail; |
1837 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1838 |
< |
result = (int)(arg1)->exitCode(); |
1836 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:new_vector_string",&obj0)) goto fail; |
1837 |
> |
{ |
1838 |
> |
if (PyTuple_Check(obj0) || PyList_Check(obj0)) { |
1839 |
> |
unsigned int size = (PyTuple_Check(obj0) ? |
1840 |
> |
PyTuple_Size(obj0) : |
1841 |
> |
PyList_Size(obj0)); |
1842 |
> |
temp1 = std::vector<std::string >(size); |
1843 |
> |
arg1 = &temp1; |
1844 |
> |
for (unsigned int i=0; i<size; i++) { |
1845 |
> |
PyObject* o = PySequence_GetItem(obj0,i); |
1846 |
> |
if (PyString_Check(o)) { |
1847 |
> |
temp1[i] = (std::string)(\ |
1848 |
> |
SwigString_AsString(o)); |
1849 |
> |
Py_DECREF(o); |
1850 |
> |
}else { |
1851 |
> |
Py_DECREF(o); |
1852 |
> |
PyErr_SetString(PyExc_TypeError, |
1853 |
> |
"vector<""std::string""> expected"); |
1854 |
> |
SWIG_fail; |
1855 |
> |
} |
1856 |
> |
} |
1857 |
> |
}else if (SWIG_ConvertPtr(obj0,(void **) &v1, |
1858 |
> |
SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){ |
1859 |
> |
arg1 = v1; |
1860 |
> |
}else { |
1861 |
> |
PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected"); |
1862 |
> |
SWIG_fail; |
1863 |
> |
} |
1864 |
> |
} |
1865 |
> |
{ |
1866 |
> |
try { |
1867 |
> |
result = (std::vector<std::string > *)new std::vector<std::string >((std::vector<std::string > const &)*arg1); |
1868 |
> |
|
1869 |
> |
}catch (const BossSchedFailure & e) { |
1870 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
1871 |
> |
return NULL; |
1872 |
> |
}catch (const std::exception& e) { |
1873 |
> |
PyErr_SetString ( BossError, e.what() ); |
1874 |
> |
return NULL; |
1875 |
> |
} |
1876 |
> |
} |
1877 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1); |
1878 |
> |
return resultobj; |
1879 |
> |
fail: |
1880 |
> |
return NULL; |
1881 |
> |
} |
1882 |
> |
|
1883 |
> |
|
1884 |
> |
static PyObject *_wrap_new_vector_string(PyObject *self, PyObject *args) { |
1885 |
> |
int argc; |
1886 |
> |
PyObject *argv[3]; |
1887 |
> |
int ii; |
1888 |
> |
|
1889 |
> |
argc = PyObject_Length(args); |
1890 |
> |
for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
1891 |
> |
argv[ii] = PyTuple_GetItem(args,ii); |
1892 |
> |
} |
1893 |
> |
if ((argc >= 0) && (argc <= 1)) { |
1894 |
> |
int _v; |
1895 |
> |
if (argc <= 0) { |
1896 |
> |
return _wrap_new_vector_string__SWIG_0(self,args); |
1897 |
> |
} |
1898 |
> |
{ |
1899 |
> |
_v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0; |
1900 |
> |
} |
1901 |
> |
if (_v) { |
1902 |
> |
return _wrap_new_vector_string__SWIG_0(self,args); |
1903 |
> |
} |
1904 |
> |
} |
1905 |
> |
if (argc == 1) { |
1906 |
> |
int _v; |
1907 |
> |
{ |
1908 |
> |
/* native sequence? */ |
1909 |
> |
if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) { |
1910 |
> |
unsigned int size = (PyTuple_Check(argv[0]) ? |
1911 |
> |
PyTuple_Size(argv[0]) : |
1912 |
> |
PyList_Size(argv[0])); |
1913 |
> |
if (size == 0) { |
1914 |
> |
/* an empty sequence can be of any type */ |
1915 |
> |
_v = 1; |
1916 |
> |
}else { |
1917 |
> |
/* check the first element only */ |
1918 |
> |
PyObject* o = PySequence_GetItem(argv[0],0); |
1919 |
> |
if (PyString_Check(o)) |
1920 |
> |
_v = 1; |
1921 |
> |
else |
1922 |
> |
_v = 0; |
1923 |
> |
Py_DECREF(o); |
1924 |
> |
} |
1925 |
> |
}else { |
1926 |
> |
/* wrapped vector? */ |
1927 |
> |
std::vector<std::string >* v; |
1928 |
> |
if (SWIG_ConvertPtr(argv[0],(void **) &v, |
1929 |
> |
SWIGTYPE_p_std__vectorTstd__string_t,0) != -1) |
1930 |
> |
_v = 1; |
1931 |
> |
else |
1932 |
> |
_v = 0; |
1933 |
> |
} |
1934 |
> |
} |
1935 |
> |
if (_v) { |
1936 |
> |
return _wrap_new_vector_string__SWIG_2(self,args); |
1937 |
> |
} |
1938 |
> |
} |
1939 |
> |
if (argc == 2) { |
1940 |
> |
int _v; |
1941 |
> |
{ |
1942 |
> |
_v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0; |
1943 |
> |
} |
1944 |
> |
if (_v) { |
1945 |
> |
{ |
1946 |
> |
_v = PyString_Check(argv[1]) ? 1 : 0; |
1947 |
> |
} |
1948 |
> |
if (_v) { |
1949 |
> |
return _wrap_new_vector_string__SWIG_1(self,args); |
1950 |
> |
} |
1951 |
> |
} |
1952 |
> |
} |
1953 |
|
|
1954 |
+ |
PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_vector_string'"); |
1955 |
+ |
return NULL; |
1956 |
+ |
} |
1957 |
+ |
|
1958 |
+ |
|
1959 |
+ |
static PyObject *_wrap_vector_string___len__(PyObject *self, PyObject *args) { |
1960 |
+ |
PyObject *resultobj; |
1961 |
+ |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
1962 |
+ |
unsigned int result; |
1963 |
+ |
std::vector<std::string > temp1 ; |
1964 |
+ |
std::vector<std::string > *v1 ; |
1965 |
+ |
PyObject * obj0 = 0 ; |
1966 |
+ |
|
1967 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:vector_string___len__",&obj0)) goto fail; |
1968 |
+ |
{ |
1969 |
+ |
if (PyTuple_Check(obj0) || PyList_Check(obj0)) { |
1970 |
+ |
unsigned int size = (PyTuple_Check(obj0) ? |
1971 |
+ |
PyTuple_Size(obj0) : |
1972 |
+ |
PyList_Size(obj0)); |
1973 |
+ |
temp1 = std::vector<std::string >(size); |
1974 |
+ |
arg1 = &temp1; |
1975 |
+ |
for (unsigned int i=0; i<size; i++) { |
1976 |
+ |
PyObject* o = PySequence_GetItem(obj0,i); |
1977 |
+ |
if (PyString_Check(o)) { |
1978 |
+ |
temp1[i] = (std::string)(\ |
1979 |
+ |
SwigString_AsString(o)); |
1980 |
+ |
Py_DECREF(o); |
1981 |
+ |
}else { |
1982 |
+ |
Py_DECREF(o); |
1983 |
+ |
PyErr_SetString(PyExc_TypeError, |
1984 |
+ |
"vector<""std::string""> expected"); |
1985 |
+ |
SWIG_fail; |
1986 |
+ |
} |
1987 |
+ |
} |
1988 |
+ |
}else if (SWIG_ConvertPtr(obj0,(void **) &v1, |
1989 |
+ |
SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){ |
1990 |
+ |
arg1 = v1; |
1991 |
+ |
}else { |
1992 |
+ |
PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected"); |
1993 |
+ |
SWIG_fail; |
1994 |
+ |
} |
1995 |
+ |
} |
1996 |
+ |
{ |
1997 |
+ |
try { |
1998 |
+ |
result = (unsigned int)((std::vector<std::string > const *)arg1)->size(); |
1999 |
+ |
|
2000 |
+ |
}catch (const BossSchedFailure & e) { |
2001 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2002 |
+ |
return NULL; |
2003 |
+ |
}catch (const std::exception& e) { |
2004 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2005 |
+ |
return NULL; |
2006 |
+ |
} |
2007 |
+ |
} |
2008 |
|
resultobj = PyInt_FromLong((long)result); |
2009 |
|
return resultobj; |
2010 |
|
fail: |
2012 |
|
} |
2013 |
|
|
2014 |
|
|
2015 |
< |
static PyObject *_wrap_BossUserSession_out(PyObject *self, PyObject *args) { |
2015 |
> |
static PyObject *_wrap_vector_string___nonzero__(PyObject *self, PyObject *args) { |
2016 |
|
PyObject *resultobj; |
2017 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
2018 |
< |
std::string result; |
2017 |
> |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2018 |
> |
bool result; |
2019 |
> |
std::vector<std::string > temp1 ; |
2020 |
> |
std::vector<std::string > *v1 ; |
2021 |
|
PyObject * obj0 = 0 ; |
2022 |
|
|
2023 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:BossUserSession_out",&obj0)) goto fail; |
2024 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2025 |
< |
result = (arg1)->out(); |
2023 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:vector_string___nonzero__",&obj0)) goto fail; |
2024 |
> |
{ |
2025 |
> |
if (PyTuple_Check(obj0) || PyList_Check(obj0)) { |
2026 |
> |
unsigned int size = (PyTuple_Check(obj0) ? |
2027 |
> |
PyTuple_Size(obj0) : |
2028 |
> |
PyList_Size(obj0)); |
2029 |
> |
temp1 = std::vector<std::string >(size); |
2030 |
> |
arg1 = &temp1; |
2031 |
> |
for (unsigned int i=0; i<size; i++) { |
2032 |
> |
PyObject* o = PySequence_GetItem(obj0,i); |
2033 |
> |
if (PyString_Check(o)) { |
2034 |
> |
temp1[i] = (std::string)(\ |
2035 |
> |
SwigString_AsString(o)); |
2036 |
> |
Py_DECREF(o); |
2037 |
> |
}else { |
2038 |
> |
Py_DECREF(o); |
2039 |
> |
PyErr_SetString(PyExc_TypeError, |
2040 |
> |
"vector<""std::string""> expected"); |
2041 |
> |
SWIG_fail; |
2042 |
> |
} |
2043 |
> |
} |
2044 |
> |
}else if (SWIG_ConvertPtr(obj0,(void **) &v1, |
2045 |
> |
SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){ |
2046 |
> |
arg1 = v1; |
2047 |
> |
}else { |
2048 |
> |
PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected"); |
2049 |
> |
SWIG_fail; |
2050 |
> |
} |
2051 |
> |
} |
2052 |
> |
{ |
2053 |
> |
try { |
2054 |
> |
result = (bool)((std::vector<std::string > const *)arg1)->empty(); |
2055 |
> |
|
2056 |
> |
}catch (const BossSchedFailure & e) { |
2057 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2058 |
> |
return NULL; |
2059 |
> |
}catch (const std::exception& e) { |
2060 |
> |
PyErr_SetString ( BossError, e.what() ); |
2061 |
> |
return NULL; |
2062 |
> |
} |
2063 |
> |
} |
2064 |
> |
resultobj = PyInt_FromLong((long)result); |
2065 |
> |
return resultobj; |
2066 |
> |
fail: |
2067 |
> |
return NULL; |
2068 |
> |
} |
2069 |
> |
|
2070 |
> |
|
2071 |
> |
static PyObject *_wrap_vector_string_clear(PyObject *self, PyObject *args) { |
2072 |
> |
PyObject *resultobj; |
2073 |
> |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2074 |
> |
PyObject * obj0 = 0 ; |
2075 |
|
|
2076 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:vector_string_clear",&obj0)) goto fail; |
2077 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2078 |
|
{ |
2079 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2079 |
> |
try { |
2080 |
> |
(arg1)->clear(); |
2081 |
> |
|
2082 |
> |
}catch (const BossSchedFailure & e) { |
2083 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2084 |
> |
return NULL; |
2085 |
> |
}catch (const std::exception& e) { |
2086 |
> |
PyErr_SetString ( BossError, e.what() ); |
2087 |
> |
return NULL; |
2088 |
> |
} |
2089 |
|
} |
2090 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
2091 |
|
return resultobj; |
2092 |
|
fail: |
2093 |
|
return NULL; |
2094 |
|
} |
2095 |
|
|
2096 |
|
|
2097 |
< |
static PyObject *_wrap_BossUserSession_err(PyObject *self, PyObject *args) { |
2097 |
> |
static PyObject *_wrap_vector_string_append(PyObject *self, PyObject *args) { |
2098 |
|
PyObject *resultobj; |
2099 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
2100 |
< |
std::string result; |
2099 |
> |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2100 |
> |
std::string arg2 ; |
2101 |
|
PyObject * obj0 = 0 ; |
2102 |
+ |
PyObject * obj1 = 0 ; |
2103 |
|
|
2104 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:BossUserSession_err",&obj0)) goto fail; |
2105 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2106 |
< |
result = (arg1)->err(); |
2104 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:vector_string_append",&obj0,&obj1)) goto fail; |
2105 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2106 |
> |
{ |
2107 |
> |
if (PyString_Check(obj1)) |
2108 |
> |
arg2 = std::string(PyString_AsString(obj1)); |
2109 |
> |
else |
2110 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
2111 |
> |
} |
2112 |
> |
{ |
2113 |
> |
try { |
2114 |
> |
(arg1)->push_back(arg2); |
2115 |
> |
|
2116 |
> |
}catch (const BossSchedFailure & e) { |
2117 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2118 |
> |
return NULL; |
2119 |
> |
}catch (const std::exception& e) { |
2120 |
> |
PyErr_SetString ( BossError, e.what() ); |
2121 |
> |
return NULL; |
2122 |
> |
} |
2123 |
> |
} |
2124 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
2125 |
> |
return resultobj; |
2126 |
> |
fail: |
2127 |
> |
return NULL; |
2128 |
> |
} |
2129 |
> |
|
2130 |
> |
|
2131 |
> |
static PyObject *_wrap_vector_string_pop(PyObject *self, PyObject *args) { |
2132 |
> |
PyObject *resultobj; |
2133 |
> |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2134 |
> |
std::string result; |
2135 |
> |
PyObject * obj0 = 0 ; |
2136 |
|
|
2137 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:vector_string_pop",&obj0)) goto fail; |
2138 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2139 |
+ |
{ |
2140 |
+ |
try { |
2141 |
+ |
result = std_vectorlstd_string_g_pop___(arg1); |
2142 |
+ |
|
2143 |
+ |
}catch (std::out_of_range& e) { |
2144 |
+ |
SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what())); |
2145 |
+ |
} |
2146 |
+ |
} |
2147 |
|
{ |
2148 |
|
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2149 |
|
} |
2153 |
|
} |
2154 |
|
|
2155 |
|
|
2156 |
< |
static PyObject *_wrap_BossUserSession_help(PyObject *self, PyObject *args) { |
2156 |
> |
static PyObject *_wrap_vector_string___getitem__(PyObject *self, PyObject *args) { |
2157 |
|
PyObject *resultobj; |
2158 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
2159 |
< |
std::string arg2 = (std::string) "NONE" ; |
2158 |
> |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2159 |
> |
int arg2 ; |
2160 |
|
std::string result; |
2161 |
|
PyObject * obj0 = 0 ; |
2162 |
+ |
|
2163 |
+ |
if(!PyArg_ParseTuple(args,(char *)"Oi:vector_string___getitem__",&obj0,&arg2)) goto fail; |
2164 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2165 |
+ |
{ |
2166 |
+ |
try { |
2167 |
+ |
result = std_vectorlstd_string_g___getitem_____(arg1,arg2); |
2168 |
+ |
|
2169 |
+ |
}catch (std::out_of_range& e) { |
2170 |
+ |
SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what())); |
2171 |
+ |
} |
2172 |
+ |
} |
2173 |
+ |
{ |
2174 |
+ |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2175 |
+ |
} |
2176 |
+ |
return resultobj; |
2177 |
+ |
fail: |
2178 |
+ |
return NULL; |
2179 |
+ |
} |
2180 |
+ |
|
2181 |
+ |
|
2182 |
+ |
static PyObject *_wrap_vector_string___getslice__(PyObject *self, PyObject *args) { |
2183 |
+ |
PyObject *resultobj; |
2184 |
+ |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2185 |
+ |
int arg2 ; |
2186 |
+ |
int arg3 ; |
2187 |
+ |
std::vector<std::string > result; |
2188 |
+ |
PyObject * obj0 = 0 ; |
2189 |
+ |
|
2190 |
+ |
if(!PyArg_ParseTuple(args,(char *)"Oii:vector_string___getslice__",&obj0,&arg2,&arg3)) goto fail; |
2191 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2192 |
+ |
{ |
2193 |
+ |
try { |
2194 |
+ |
result = std_vectorlstd_string_g___getslice_____(arg1,arg2,arg3); |
2195 |
+ |
|
2196 |
+ |
}catch (const BossSchedFailure & e) { |
2197 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2198 |
+ |
return NULL; |
2199 |
+ |
}catch (const std::exception& e) { |
2200 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2201 |
+ |
return NULL; |
2202 |
+ |
} |
2203 |
+ |
} |
2204 |
+ |
{ |
2205 |
+ |
resultobj = PyTuple_New((&result)->size()); |
2206 |
+ |
for (unsigned int i=0; i<(&result)->size(); i++) |
2207 |
+ |
PyTuple_SetItem(resultobj,i, |
2208 |
+ |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
2209 |
+ |
} |
2210 |
+ |
return resultobj; |
2211 |
+ |
fail: |
2212 |
+ |
return NULL; |
2213 |
+ |
} |
2214 |
+ |
|
2215 |
+ |
|
2216 |
+ |
static PyObject *_wrap_vector_string___setitem__(PyObject *self, PyObject *args) { |
2217 |
+ |
PyObject *resultobj; |
2218 |
+ |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2219 |
+ |
int arg2 ; |
2220 |
+ |
std::string arg3 ; |
2221 |
+ |
PyObject * obj0 = 0 ; |
2222 |
+ |
PyObject * obj2 = 0 ; |
2223 |
+ |
|
2224 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OiO:vector_string___setitem__",&obj0,&arg2,&obj2)) goto fail; |
2225 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2226 |
+ |
{ |
2227 |
+ |
if (PyString_Check(obj2)) |
2228 |
+ |
arg3 = std::string(PyString_AsString(obj2)); |
2229 |
+ |
else |
2230 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
2231 |
+ |
} |
2232 |
+ |
{ |
2233 |
+ |
try { |
2234 |
+ |
std_vectorlstd_string_g___setitem_____(arg1,arg2,arg3); |
2235 |
+ |
|
2236 |
+ |
}catch (std::out_of_range& e) { |
2237 |
+ |
SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what())); |
2238 |
+ |
} |
2239 |
+ |
} |
2240 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
2241 |
+ |
return resultobj; |
2242 |
+ |
fail: |
2243 |
+ |
return NULL; |
2244 |
+ |
} |
2245 |
+ |
|
2246 |
+ |
|
2247 |
+ |
static PyObject *_wrap_vector_string___setslice__(PyObject *self, PyObject *args) { |
2248 |
+ |
PyObject *resultobj; |
2249 |
+ |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2250 |
+ |
int arg2 ; |
2251 |
+ |
int arg3 ; |
2252 |
+ |
std::vector<std::string > *arg4 = 0 ; |
2253 |
+ |
std::vector<std::string > temp4 ; |
2254 |
+ |
std::vector<std::string > *v4 ; |
2255 |
+ |
PyObject * obj0 = 0 ; |
2256 |
+ |
PyObject * obj3 = 0 ; |
2257 |
+ |
|
2258 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OiiO:vector_string___setslice__",&obj0,&arg2,&arg3,&obj3)) goto fail; |
2259 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2260 |
+ |
{ |
2261 |
+ |
if (PyTuple_Check(obj3) || PyList_Check(obj3)) { |
2262 |
+ |
unsigned int size = (PyTuple_Check(obj3) ? |
2263 |
+ |
PyTuple_Size(obj3) : |
2264 |
+ |
PyList_Size(obj3)); |
2265 |
+ |
temp4 = std::vector<std::string >(size); |
2266 |
+ |
arg4 = &temp4; |
2267 |
+ |
for (unsigned int i=0; i<size; i++) { |
2268 |
+ |
PyObject* o = PySequence_GetItem(obj3,i); |
2269 |
+ |
if (PyString_Check(o)) { |
2270 |
+ |
temp4[i] = (std::string)(\ |
2271 |
+ |
SwigString_AsString(o)); |
2272 |
+ |
Py_DECREF(o); |
2273 |
+ |
}else { |
2274 |
+ |
Py_DECREF(o); |
2275 |
+ |
PyErr_SetString(PyExc_TypeError, |
2276 |
+ |
"vector<""std::string""> expected"); |
2277 |
+ |
SWIG_fail; |
2278 |
+ |
} |
2279 |
+ |
} |
2280 |
+ |
}else if (SWIG_ConvertPtr(obj3,(void **) &v4, |
2281 |
+ |
SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){ |
2282 |
+ |
arg4 = v4; |
2283 |
+ |
}else { |
2284 |
+ |
PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected"); |
2285 |
+ |
SWIG_fail; |
2286 |
+ |
} |
2287 |
+ |
} |
2288 |
+ |
{ |
2289 |
+ |
try { |
2290 |
+ |
std_vectorlstd_string_g___setslice_____(arg1,arg2,arg3,(std::vector<std::string > const &)*arg4); |
2291 |
+ |
|
2292 |
+ |
}catch (const BossSchedFailure & e) { |
2293 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2294 |
+ |
return NULL; |
2295 |
+ |
}catch (const std::exception& e) { |
2296 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2297 |
+ |
return NULL; |
2298 |
+ |
} |
2299 |
+ |
} |
2300 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
2301 |
+ |
return resultobj; |
2302 |
+ |
fail: |
2303 |
+ |
return NULL; |
2304 |
+ |
} |
2305 |
+ |
|
2306 |
+ |
|
2307 |
+ |
static PyObject *_wrap_vector_string___delitem__(PyObject *self, PyObject *args) { |
2308 |
+ |
PyObject *resultobj; |
2309 |
+ |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2310 |
+ |
int arg2 ; |
2311 |
+ |
PyObject * obj0 = 0 ; |
2312 |
+ |
|
2313 |
+ |
if(!PyArg_ParseTuple(args,(char *)"Oi:vector_string___delitem__",&obj0,&arg2)) goto fail; |
2314 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2315 |
+ |
{ |
2316 |
+ |
try { |
2317 |
+ |
std_vectorlstd_string_g___delitem_____(arg1,arg2); |
2318 |
+ |
|
2319 |
+ |
}catch (std::out_of_range& e) { |
2320 |
+ |
SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what())); |
2321 |
+ |
} |
2322 |
+ |
} |
2323 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
2324 |
+ |
return resultobj; |
2325 |
+ |
fail: |
2326 |
+ |
return NULL; |
2327 |
+ |
} |
2328 |
+ |
|
2329 |
+ |
|
2330 |
+ |
static PyObject *_wrap_vector_string___delslice__(PyObject *self, PyObject *args) { |
2331 |
+ |
PyObject *resultobj; |
2332 |
+ |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2333 |
+ |
int arg2 ; |
2334 |
+ |
int arg3 ; |
2335 |
+ |
PyObject * obj0 = 0 ; |
2336 |
+ |
|
2337 |
+ |
if(!PyArg_ParseTuple(args,(char *)"Oii:vector_string___delslice__",&obj0,&arg2,&arg3)) goto fail; |
2338 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2339 |
+ |
{ |
2340 |
+ |
try { |
2341 |
+ |
std_vectorlstd_string_g___delslice_____(arg1,arg2,arg3); |
2342 |
+ |
|
2343 |
+ |
}catch (const BossSchedFailure & e) { |
2344 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2345 |
+ |
return NULL; |
2346 |
+ |
}catch (const std::exception& e) { |
2347 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2348 |
+ |
return NULL; |
2349 |
+ |
} |
2350 |
+ |
} |
2351 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
2352 |
+ |
return resultobj; |
2353 |
+ |
fail: |
2354 |
+ |
return NULL; |
2355 |
+ |
} |
2356 |
+ |
|
2357 |
+ |
|
2358 |
+ |
static PyObject *_wrap_delete_vector_string(PyObject *self, PyObject *args) { |
2359 |
+ |
PyObject *resultobj; |
2360 |
+ |
std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ; |
2361 |
+ |
PyObject * obj0 = 0 ; |
2362 |
+ |
|
2363 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:delete_vector_string",&obj0)) goto fail; |
2364 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2365 |
+ |
{ |
2366 |
+ |
try { |
2367 |
+ |
delete arg1; |
2368 |
+ |
|
2369 |
+ |
}catch (const BossSchedFailure & e) { |
2370 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2371 |
+ |
return NULL; |
2372 |
+ |
}catch (const std::exception& e) { |
2373 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2374 |
+ |
return NULL; |
2375 |
+ |
} |
2376 |
+ |
} |
2377 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
2378 |
+ |
return resultobj; |
2379 |
+ |
fail: |
2380 |
+ |
return NULL; |
2381 |
+ |
} |
2382 |
+ |
|
2383 |
+ |
|
2384 |
+ |
static PyObject * vector_string_swigregister(PyObject *self, PyObject *args) { |
2385 |
+ |
PyObject *obj; |
2386 |
+ |
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
2387 |
+ |
SWIG_TypeClientData(SWIGTYPE_p_std__vectorTstd__string_t, obj); |
2388 |
+ |
Py_INCREF(obj); |
2389 |
+ |
return Py_BuildValue((char *)""); |
2390 |
+ |
} |
2391 |
+ |
static PyObject *_wrap_new_BossSession(PyObject *self, PyObject *args) { |
2392 |
+ |
PyObject *resultobj; |
2393 |
+ |
std::string arg1 = (std::string) "" ; |
2394 |
+ |
std::string arg2 = (std::string) "2" ; |
2395 |
+ |
std::string arg3 = (std::string) "" ; |
2396 |
+ |
std::string arg4 = (std::string) "" ; |
2397 |
+ |
BossSession *result; |
2398 |
+ |
PyObject * obj0 = 0 ; |
2399 |
|
PyObject * obj1 = 0 ; |
2400 |
+ |
PyObject * obj2 = 0 ; |
2401 |
+ |
PyObject * obj3 = 0 ; |
2402 |
|
|
2403 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_help",&obj0,&obj1)) goto fail; |
2404 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2403 |
> |
if(!PyArg_ParseTuple(args,(char *)"|OOOO:new_BossSession",&obj0,&obj1,&obj2,&obj3)) goto fail; |
2404 |
> |
if (obj0) { |
2405 |
> |
{ |
2406 |
> |
if (PyString_Check(obj0)) |
2407 |
> |
arg1 = std::string(PyString_AsString(obj0)); |
2408 |
> |
else |
2409 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
2410 |
> |
} |
2411 |
> |
} |
2412 |
|
if (obj1) { |
2413 |
|
{ |
2414 |
|
if (PyString_Check(obj1)) |
2417 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
2418 |
|
} |
2419 |
|
} |
2420 |
< |
result = (arg1)->help(arg2); |
2420 |
> |
if (obj2) { |
2421 |
> |
{ |
2422 |
> |
if (PyString_Check(obj2)) |
2423 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
2424 |
> |
else |
2425 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
2426 |
> |
} |
2427 |
> |
} |
2428 |
> |
if (obj3) { |
2429 |
> |
{ |
2430 |
> |
if (PyString_Check(obj3)) |
2431 |
> |
arg4 = std::string(PyString_AsString(obj3)); |
2432 |
> |
else |
2433 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
2434 |
> |
} |
2435 |
> |
} |
2436 |
> |
{ |
2437 |
> |
try { |
2438 |
> |
result = (BossSession *)new BossSession(arg1,arg2,arg3,arg4); |
2439 |
> |
|
2440 |
> |
}catch (const BossSchedFailure & e) { |
2441 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2442 |
> |
return NULL; |
2443 |
> |
}catch (const std::exception& e) { |
2444 |
> |
PyErr_SetString ( BossError, e.what() ); |
2445 |
> |
return NULL; |
2446 |
> |
} |
2447 |
> |
} |
2448 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossSession, 1); |
2449 |
> |
return resultobj; |
2450 |
> |
fail: |
2451 |
> |
return NULL; |
2452 |
> |
} |
2453 |
> |
|
2454 |
> |
|
2455 |
> |
static PyObject *_wrap_delete_BossSession(PyObject *self, PyObject *args) { |
2456 |
> |
PyObject *resultobj; |
2457 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2458 |
> |
PyObject * obj0 = 0 ; |
2459 |
|
|
2460 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:delete_BossSession",&obj0)) goto fail; |
2461 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2462 |
|
{ |
2463 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2463 |
> |
try { |
2464 |
> |
delete arg1; |
2465 |
> |
|
2466 |
> |
}catch (const BossSchedFailure & e) { |
2467 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2468 |
> |
return NULL; |
2469 |
> |
}catch (const std::exception& e) { |
2470 |
> |
PyErr_SetString ( BossError, e.what() ); |
2471 |
> |
return NULL; |
2472 |
> |
} |
2473 |
|
} |
2474 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
2475 |
|
return resultobj; |
2476 |
|
fail: |
2477 |
|
return NULL; |
2478 |
|
} |
2479 |
|
|
2480 |
|
|
2481 |
< |
static PyObject *_wrap_BossUserSession_RTupdate(PyObject *self, PyObject *args) { |
2481 |
> |
static PyObject *_wrap_BossSession_resetDB(PyObject *self, PyObject *args) { |
2482 |
|
PyObject *resultobj; |
2483 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
2484 |
< |
std::string arg2 = (std::string) "NONE" ; |
2485 |
< |
std::string result; |
2483 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2484 |
> |
PyObject * obj0 = 0 ; |
2485 |
> |
|
2486 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_resetDB",&obj0)) goto fail; |
2487 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2488 |
> |
{ |
2489 |
> |
try { |
2490 |
> |
(arg1)->resetDB(); |
2491 |
> |
|
2492 |
> |
}catch (const BossSchedFailure & e) { |
2493 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2494 |
> |
return NULL; |
2495 |
> |
}catch (const std::exception& e) { |
2496 |
> |
PyErr_SetString ( BossError, e.what() ); |
2497 |
> |
return NULL; |
2498 |
> |
} |
2499 |
> |
} |
2500 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
2501 |
> |
return resultobj; |
2502 |
> |
fail: |
2503 |
> |
return NULL; |
2504 |
> |
} |
2505 |
> |
|
2506 |
> |
|
2507 |
> |
static PyObject *_wrap_BossSession_clear(PyObject *self, PyObject *args) { |
2508 |
> |
PyObject *resultobj; |
2509 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2510 |
> |
PyObject * obj0 = 0 ; |
2511 |
> |
|
2512 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clear",&obj0)) goto fail; |
2513 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2514 |
> |
{ |
2515 |
> |
try { |
2516 |
> |
(arg1)->clear(); |
2517 |
> |
|
2518 |
> |
}catch (const BossSchedFailure & e) { |
2519 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2520 |
> |
return NULL; |
2521 |
> |
}catch (const std::exception& e) { |
2522 |
> |
PyErr_SetString ( BossError, e.what() ); |
2523 |
> |
return NULL; |
2524 |
> |
} |
2525 |
> |
} |
2526 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
2527 |
> |
return resultobj; |
2528 |
> |
fail: |
2529 |
> |
return NULL; |
2530 |
> |
} |
2531 |
> |
|
2532 |
> |
|
2533 |
> |
static PyObject *_wrap_BossSession_makeBossTask(PyObject *self, PyObject *args) { |
2534 |
> |
PyObject *resultobj; |
2535 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2536 |
> |
std::string const &arg2_defvalue = "" ; |
2537 |
> |
std::string *arg2 = (std::string *) &arg2_defvalue ; |
2538 |
> |
BossTask *result; |
2539 |
> |
std::string temp2 ; |
2540 |
|
PyObject * obj0 = 0 ; |
2541 |
|
PyObject * obj1 = 0 ; |
2542 |
|
|
2543 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_RTupdate",&obj0,&obj1)) goto fail; |
2544 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2543 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_makeBossTask",&obj0,&obj1)) goto fail; |
2544 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2545 |
|
if (obj1) { |
2546 |
|
{ |
2547 |
< |
if (PyString_Check(obj1)) |
2548 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
2549 |
< |
else |
2550 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
2547 |
> |
if (PyString_Check(obj1)) { |
2548 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
2549 |
> |
arg2 = &temp2; |
2550 |
> |
}else { |
2551 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
2552 |
> |
} |
2553 |
> |
} |
2554 |
> |
} |
2555 |
> |
{ |
2556 |
> |
try { |
2557 |
> |
result = (BossTask *)(arg1)->makeBossTask((std::string const &)*arg2); |
2558 |
> |
|
2559 |
> |
}catch (const BossSchedFailure & e) { |
2560 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2561 |
> |
return NULL; |
2562 |
> |
}catch (const std::exception& e) { |
2563 |
> |
PyErr_SetString ( BossError, e.what() ); |
2564 |
> |
return NULL; |
2565 |
> |
} |
2566 |
> |
} |
2567 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0); |
2568 |
> |
return resultobj; |
2569 |
> |
fail: |
2570 |
> |
return NULL; |
2571 |
> |
} |
2572 |
> |
|
2573 |
> |
|
2574 |
> |
static PyObject *_wrap_BossSession_destroyBossTask(PyObject *self, PyObject *args) { |
2575 |
> |
PyObject *resultobj; |
2576 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2577 |
> |
BossTask *arg2 = (BossTask *) 0 ; |
2578 |
> |
PyObject * obj0 = 0 ; |
2579 |
> |
PyObject * obj1 = 0 ; |
2580 |
> |
|
2581 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_destroyBossTask",&obj0,&obj1)) goto fail; |
2582 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2583 |
> |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2584 |
> |
{ |
2585 |
> |
try { |
2586 |
> |
(arg1)->destroyBossTask(arg2); |
2587 |
> |
|
2588 |
> |
}catch (const BossSchedFailure & e) { |
2589 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2590 |
> |
return NULL; |
2591 |
> |
}catch (const std::exception& e) { |
2592 |
> |
PyErr_SetString ( BossError, e.what() ); |
2593 |
> |
return NULL; |
2594 |
|
} |
2595 |
|
} |
2596 |
< |
result = (arg1)->RTupdate(arg2); |
2596 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
2597 |
> |
return resultobj; |
2598 |
> |
fail: |
2599 |
> |
return NULL; |
2600 |
> |
} |
2601 |
> |
|
2602 |
> |
|
2603 |
> |
static PyObject *_wrap_BossSession_showCHTools(PyObject *self, PyObject *args) { |
2604 |
> |
PyObject *resultobj; |
2605 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2606 |
> |
std::vector<std::string > result; |
2607 |
> |
PyObject * obj0 = 0 ; |
2608 |
|
|
2609 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showCHTools",&obj0)) goto fail; |
2610 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2611 |
+ |
{ |
2612 |
+ |
try { |
2613 |
+ |
result = (arg1)->showCHTools(); |
2614 |
+ |
|
2615 |
+ |
}catch (const BossSchedFailure & e) { |
2616 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2617 |
+ |
return NULL; |
2618 |
+ |
}catch (const std::exception& e) { |
2619 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2620 |
+ |
return NULL; |
2621 |
+ |
} |
2622 |
+ |
} |
2623 |
+ |
{ |
2624 |
+ |
resultobj = PyTuple_New((&result)->size()); |
2625 |
+ |
for (unsigned int i=0; i<(&result)->size(); i++) |
2626 |
+ |
PyTuple_SetItem(resultobj,i, |
2627 |
+ |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
2628 |
+ |
} |
2629 |
+ |
return resultobj; |
2630 |
+ |
fail: |
2631 |
+ |
return NULL; |
2632 |
+ |
} |
2633 |
+ |
|
2634 |
+ |
|
2635 |
+ |
static PyObject *_wrap_BossSession_showProgramTypes(PyObject *self, PyObject *args) { |
2636 |
+ |
PyObject *resultobj; |
2637 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2638 |
+ |
std::vector<std::string > result; |
2639 |
+ |
PyObject * obj0 = 0 ; |
2640 |
+ |
|
2641 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showProgramTypes",&obj0)) goto fail; |
2642 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2643 |
+ |
{ |
2644 |
+ |
try { |
2645 |
+ |
result = (arg1)->showProgramTypes(); |
2646 |
+ |
|
2647 |
+ |
}catch (const BossSchedFailure & e) { |
2648 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2649 |
+ |
return NULL; |
2650 |
+ |
}catch (const std::exception& e) { |
2651 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2652 |
+ |
return NULL; |
2653 |
+ |
} |
2654 |
+ |
} |
2655 |
+ |
{ |
2656 |
+ |
resultobj = PyTuple_New((&result)->size()); |
2657 |
+ |
for (unsigned int i=0; i<(&result)->size(); i++) |
2658 |
+ |
PyTuple_SetItem(resultobj,i, |
2659 |
+ |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
2660 |
+ |
} |
2661 |
+ |
return resultobj; |
2662 |
+ |
fail: |
2663 |
+ |
return NULL; |
2664 |
+ |
} |
2665 |
+ |
|
2666 |
+ |
|
2667 |
+ |
static PyObject *_wrap_BossSession_showRTMon(PyObject *self, PyObject *args) { |
2668 |
+ |
PyObject *resultobj; |
2669 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2670 |
+ |
std::vector<std::string > result; |
2671 |
+ |
PyObject * obj0 = 0 ; |
2672 |
+ |
|
2673 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showRTMon",&obj0)) goto fail; |
2674 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2675 |
+ |
{ |
2676 |
+ |
try { |
2677 |
+ |
result = (arg1)->showRTMon(); |
2678 |
+ |
|
2679 |
+ |
}catch (const BossSchedFailure & e) { |
2680 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2681 |
+ |
return NULL; |
2682 |
+ |
}catch (const std::exception& e) { |
2683 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2684 |
+ |
return NULL; |
2685 |
+ |
} |
2686 |
+ |
} |
2687 |
+ |
{ |
2688 |
+ |
resultobj = PyTuple_New((&result)->size()); |
2689 |
+ |
for (unsigned int i=0; i<(&result)->size(); i++) |
2690 |
+ |
PyTuple_SetItem(resultobj,i, |
2691 |
+ |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
2692 |
+ |
} |
2693 |
+ |
return resultobj; |
2694 |
+ |
fail: |
2695 |
+ |
return NULL; |
2696 |
+ |
} |
2697 |
+ |
|
2698 |
+ |
|
2699 |
+ |
static PyObject *_wrap_BossSession_showSchedulers(PyObject *self, PyObject *args) { |
2700 |
+ |
PyObject *resultobj; |
2701 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2702 |
+ |
std::vector<std::string > result; |
2703 |
+ |
PyObject * obj0 = 0 ; |
2704 |
+ |
|
2705 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showSchedulers",&obj0)) goto fail; |
2706 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2707 |
+ |
{ |
2708 |
+ |
try { |
2709 |
+ |
result = (arg1)->showSchedulers(); |
2710 |
+ |
|
2711 |
+ |
}catch (const BossSchedFailure & e) { |
2712 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2713 |
+ |
return NULL; |
2714 |
+ |
}catch (const std::exception& e) { |
2715 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2716 |
+ |
return NULL; |
2717 |
+ |
} |
2718 |
+ |
} |
2719 |
+ |
{ |
2720 |
+ |
resultobj = PyTuple_New((&result)->size()); |
2721 |
+ |
for (unsigned int i=0; i<(&result)->size(); i++) |
2722 |
+ |
PyTuple_SetItem(resultobj,i, |
2723 |
+ |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
2724 |
+ |
} |
2725 |
+ |
return resultobj; |
2726 |
+ |
fail: |
2727 |
+ |
return NULL; |
2728 |
+ |
} |
2729 |
+ |
|
2730 |
+ |
|
2731 |
+ |
static PyObject *_wrap_BossSession_defaultCHTool(PyObject *self, PyObject *args) { |
2732 |
+ |
PyObject *resultobj; |
2733 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2734 |
+ |
std::string result; |
2735 |
+ |
PyObject * obj0 = 0 ; |
2736 |
+ |
|
2737 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultCHTool",&obj0)) goto fail; |
2738 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2739 |
+ |
{ |
2740 |
+ |
try { |
2741 |
+ |
result = (arg1)->defaultCHTool(); |
2742 |
+ |
|
2743 |
+ |
}catch (const BossSchedFailure & e) { |
2744 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2745 |
+ |
return NULL; |
2746 |
+ |
}catch (const std::exception& e) { |
2747 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2748 |
+ |
return NULL; |
2749 |
+ |
} |
2750 |
+ |
} |
2751 |
|
{ |
2752 |
|
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2753 |
|
} |
2757 |
|
} |
2758 |
|
|
2759 |
|
|
2760 |
< |
static PyObject *_wrap_BossUserSession_archive(PyObject *self, PyObject *args) { |
2760 |
> |
static PyObject *_wrap_BossSession_defaultProgramType(PyObject *self, PyObject *args) { |
2761 |
|
PyObject *resultobj; |
2762 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
957 |
< |
std::string arg2 = (std::string) "NONE" ; |
2762 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2763 |
|
std::string result; |
2764 |
|
PyObject * obj0 = 0 ; |
960 |
– |
PyObject * obj1 = 0 ; |
2765 |
|
|
2766 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_archive",&obj0,&obj1)) goto fail; |
2767 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2768 |
< |
if (obj1) { |
2769 |
< |
{ |
2770 |
< |
if (PyString_Check(obj1)) |
2771 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
2772 |
< |
else |
2773 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
2766 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultProgramType",&obj0)) goto fail; |
2767 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2768 |
> |
{ |
2769 |
> |
try { |
2770 |
> |
result = (arg1)->defaultProgramType(); |
2771 |
> |
|
2772 |
> |
}catch (const BossSchedFailure & e) { |
2773 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2774 |
> |
return NULL; |
2775 |
> |
}catch (const std::exception& e) { |
2776 |
> |
PyErr_SetString ( BossError, e.what() ); |
2777 |
> |
return NULL; |
2778 |
|
} |
2779 |
|
} |
2780 |
< |
result = (arg1)->archive(arg2); |
2780 |
> |
{ |
2781 |
> |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2782 |
> |
} |
2783 |
> |
return resultobj; |
2784 |
> |
fail: |
2785 |
> |
return NULL; |
2786 |
> |
} |
2787 |
> |
|
2788 |
> |
|
2789 |
> |
static PyObject *_wrap_BossSession_defaultRTMon(PyObject *self, PyObject *args) { |
2790 |
> |
PyObject *resultobj; |
2791 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2792 |
> |
std::string result; |
2793 |
> |
PyObject * obj0 = 0 ; |
2794 |
|
|
2795 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultRTMon",&obj0)) goto fail; |
2796 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2797 |
+ |
{ |
2798 |
+ |
try { |
2799 |
+ |
result = (arg1)->defaultRTMon(); |
2800 |
+ |
|
2801 |
+ |
}catch (const BossSchedFailure & e) { |
2802 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2803 |
+ |
return NULL; |
2804 |
+ |
}catch (const std::exception& e) { |
2805 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2806 |
+ |
return NULL; |
2807 |
+ |
} |
2808 |
+ |
} |
2809 |
|
{ |
2810 |
|
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2811 |
|
} |
2815 |
|
} |
2816 |
|
|
2817 |
|
|
2818 |
< |
static PyObject *_wrap_BossUserSession_clientID(PyObject *self, PyObject *args) { |
2818 |
> |
static PyObject *_wrap_BossSession_defaultScheduler(PyObject *self, PyObject *args) { |
2819 |
|
PyObject *resultobj; |
2820 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
986 |
< |
std::string arg2 = (std::string) "NONE" ; |
2820 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2821 |
|
std::string result; |
2822 |
|
PyObject * obj0 = 0 ; |
989 |
– |
PyObject * obj1 = 0 ; |
2823 |
|
|
2824 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_clientID",&obj0,&obj1)) goto fail; |
2825 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2826 |
< |
if (obj1) { |
2827 |
< |
{ |
2828 |
< |
if (PyString_Check(obj1)) |
2829 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
2830 |
< |
else |
2831 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
2824 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultScheduler",&obj0)) goto fail; |
2825 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2826 |
> |
{ |
2827 |
> |
try { |
2828 |
> |
result = (arg1)->defaultScheduler(); |
2829 |
> |
|
2830 |
> |
}catch (const BossSchedFailure & e) { |
2831 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2832 |
> |
return NULL; |
2833 |
> |
}catch (const std::exception& e) { |
2834 |
> |
PyErr_SetString ( BossError, e.what() ); |
2835 |
> |
return NULL; |
2836 |
|
} |
2837 |
|
} |
2838 |
< |
result = (arg1)->clientID(arg2); |
2838 |
> |
{ |
2839 |
> |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2840 |
> |
} |
2841 |
> |
return resultobj; |
2842 |
> |
fail: |
2843 |
> |
return NULL; |
2844 |
> |
} |
2845 |
> |
|
2846 |
> |
|
2847 |
> |
static PyObject *_wrap_BossSession_version(PyObject *self, PyObject *args) { |
2848 |
> |
PyObject *resultobj; |
2849 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2850 |
> |
std::string result; |
2851 |
> |
PyObject * obj0 = 0 ; |
2852 |
|
|
2853 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_version",&obj0)) goto fail; |
2854 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2855 |
+ |
{ |
2856 |
+ |
try { |
2857 |
+ |
result = (arg1)->version(); |
2858 |
+ |
|
2859 |
+ |
}catch (const BossSchedFailure & e) { |
2860 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2861 |
+ |
return NULL; |
2862 |
+ |
}catch (const std::exception& e) { |
2863 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2864 |
+ |
return NULL; |
2865 |
+ |
} |
2866 |
+ |
} |
2867 |
|
{ |
2868 |
|
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2869 |
|
} |
2873 |
|
} |
2874 |
|
|
2875 |
|
|
2876 |
< |
static PyObject *_wrap_BossUserSession_declare(PyObject *self, PyObject *args) { |
2876 |
> |
static PyObject *_wrap_BossSession_clientID(PyObject *self, PyObject *args) { |
2877 |
|
PyObject *resultobj; |
2878 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
1015 |
< |
std::string arg2 = (std::string) "NONE" ; |
2878 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2879 |
|
std::string result; |
2880 |
|
PyObject * obj0 = 0 ; |
2881 |
+ |
|
2882 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clientID",&obj0)) goto fail; |
2883 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2884 |
+ |
{ |
2885 |
+ |
try { |
2886 |
+ |
result = (arg1)->clientID(); |
2887 |
+ |
|
2888 |
+ |
}catch (const BossSchedFailure & e) { |
2889 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2890 |
+ |
return NULL; |
2891 |
+ |
}catch (const std::exception& e) { |
2892 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2893 |
+ |
return NULL; |
2894 |
+ |
} |
2895 |
+ |
} |
2896 |
+ |
{ |
2897 |
+ |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2898 |
+ |
} |
2899 |
+ |
return resultobj; |
2900 |
+ |
fail: |
2901 |
+ |
return NULL; |
2902 |
+ |
} |
2903 |
+ |
|
2904 |
+ |
|
2905 |
+ |
static PyObject *_wrap_BossSession_showConfigs(PyObject *self, PyObject *args) { |
2906 |
+ |
PyObject *resultobj; |
2907 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2908 |
+ |
bool arg2 = (bool) false ; |
2909 |
+ |
int result; |
2910 |
+ |
PyObject * obj0 = 0 ; |
2911 |
|
PyObject * obj1 = 0 ; |
2912 |
|
|
2913 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_declare",&obj0,&obj1)) goto fail; |
2914 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2913 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_showConfigs",&obj0,&obj1)) goto fail; |
2914 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2915 |
> |
if (obj1) { |
2916 |
> |
arg2 = PyInt_AsLong(obj1) ? true : false; |
2917 |
> |
if (PyErr_Occurred()) SWIG_fail; |
2918 |
> |
} |
2919 |
> |
{ |
2920 |
> |
try { |
2921 |
> |
result = (int)(arg1)->showConfigs(arg2); |
2922 |
> |
|
2923 |
> |
}catch (const BossSchedFailure & e) { |
2924 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2925 |
> |
return NULL; |
2926 |
> |
}catch (const std::exception& e) { |
2927 |
> |
PyErr_SetString ( BossError, e.what() ); |
2928 |
> |
return NULL; |
2929 |
> |
} |
2930 |
> |
} |
2931 |
> |
resultobj = PyInt_FromLong((long)result); |
2932 |
> |
return resultobj; |
2933 |
> |
fail: |
2934 |
> |
return NULL; |
2935 |
> |
} |
2936 |
> |
|
2937 |
> |
|
2938 |
> |
static PyObject *_wrap_BossSession_RTupdate(PyObject *self, PyObject *args) { |
2939 |
> |
PyObject *resultobj; |
2940 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2941 |
> |
std::string arg2 = (std::string) "all" ; |
2942 |
> |
std::string arg3 = (std::string) "all" ; |
2943 |
> |
std::string arg4 = (std::string) "" ; |
2944 |
> |
int result; |
2945 |
> |
PyObject * obj0 = 0 ; |
2946 |
> |
PyObject * obj1 = 0 ; |
2947 |
> |
PyObject * obj2 = 0 ; |
2948 |
> |
PyObject * obj3 = 0 ; |
2949 |
> |
|
2950 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OOO:BossSession_RTupdate",&obj0,&obj1,&obj2,&obj3)) goto fail; |
2951 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2952 |
|
if (obj1) { |
2953 |
|
{ |
2954 |
|
if (PyString_Check(obj1)) |
2957 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
2958 |
|
} |
2959 |
|
} |
2960 |
< |
result = (arg1)->declare(arg2); |
2961 |
< |
|
2960 |
> |
if (obj2) { |
2961 |
> |
{ |
2962 |
> |
if (PyString_Check(obj2)) |
2963 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
2964 |
> |
else |
2965 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
2966 |
> |
} |
2967 |
> |
} |
2968 |
> |
if (obj3) { |
2969 |
> |
{ |
2970 |
> |
if (PyString_Check(obj3)) |
2971 |
> |
arg4 = std::string(PyString_AsString(obj3)); |
2972 |
> |
else |
2973 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
2974 |
> |
} |
2975 |
> |
} |
2976 |
|
{ |
2977 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
2977 |
> |
try { |
2978 |
> |
result = (int)(arg1)->RTupdate(arg2,arg3,arg4); |
2979 |
> |
|
2980 |
> |
}catch (const BossSchedFailure & e) { |
2981 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
2982 |
> |
return NULL; |
2983 |
> |
}catch (const std::exception& e) { |
2984 |
> |
PyErr_SetString ( BossError, e.what() ); |
2985 |
> |
return NULL; |
2986 |
> |
} |
2987 |
|
} |
2988 |
+ |
resultobj = PyInt_FromLong((long)result); |
2989 |
|
return resultobj; |
2990 |
|
fail: |
2991 |
|
return NULL; |
2992 |
|
} |
2993 |
|
|
2994 |
|
|
2995 |
< |
static PyObject *_wrap_BossUserSession_deleteTask(PyObject *self, PyObject *args) { |
2995 |
> |
static PyObject *_wrap_BossSession_listMatch(PyObject *self, PyObject *args) { |
2996 |
|
PyObject *resultobj; |
2997 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
2998 |
< |
std::string arg2 = (std::string) "NONE" ; |
2999 |
< |
std::string result; |
2997 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
2998 |
> |
std::string *arg2 = 0 ; |
2999 |
> |
std::string *arg3 = 0 ; |
3000 |
> |
bool arg4 = (bool) false ; |
3001 |
> |
std::string const &arg5_defvalue = "" ; |
3002 |
> |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3003 |
> |
std::string const &arg6_defvalue = "" ; |
3004 |
> |
std::string *arg6 = (std::string *) &arg6_defvalue ; |
3005 |
> |
unsigned int arg7 = (unsigned int) 0 ; |
3006 |
> |
std::vector<std::string > result; |
3007 |
> |
std::string temp2 ; |
3008 |
> |
std::string temp3 ; |
3009 |
> |
std::string temp5 ; |
3010 |
> |
std::string temp6 ; |
3011 |
|
PyObject * obj0 = 0 ; |
3012 |
|
PyObject * obj1 = 0 ; |
3013 |
+ |
PyObject * obj2 = 0 ; |
3014 |
+ |
PyObject * obj3 = 0 ; |
3015 |
+ |
PyObject * obj4 = 0 ; |
3016 |
+ |
PyObject * obj5 = 0 ; |
3017 |
+ |
PyObject * obj6 = 0 ; |
3018 |
|
|
3019 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_deleteTask",&obj0,&obj1)) goto fail; |
3020 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3021 |
< |
if (obj1) { |
3019 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
3020 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3021 |
> |
{ |
3022 |
> |
if (PyString_Check(obj1)) { |
3023 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
3024 |
> |
arg2 = &temp2; |
3025 |
> |
}else { |
3026 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3027 |
> |
} |
3028 |
> |
} |
3029 |
> |
{ |
3030 |
> |
if (PyString_Check(obj2)) { |
3031 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
3032 |
> |
arg3 = &temp3; |
3033 |
> |
}else { |
3034 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3035 |
> |
} |
3036 |
> |
} |
3037 |
> |
if (obj3) { |
3038 |
> |
arg4 = PyInt_AsLong(obj3) ? true : false; |
3039 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3040 |
> |
} |
3041 |
> |
if (obj4) { |
3042 |
|
{ |
3043 |
< |
if (PyString_Check(obj1)) |
3044 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
3043 |
> |
if (PyString_Check(obj4)) { |
3044 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
3045 |
> |
arg5 = &temp5; |
3046 |
> |
}else { |
3047 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3048 |
> |
} |
3049 |
> |
} |
3050 |
> |
} |
3051 |
> |
if (obj5) { |
3052 |
> |
{ |
3053 |
> |
if (PyString_Check(obj5)) { |
3054 |
> |
temp6 = std::string(PyString_AsString(obj5)); |
3055 |
> |
arg6 = &temp6; |
3056 |
> |
}else { |
3057 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3058 |
> |
} |
3059 |
> |
} |
3060 |
> |
} |
3061 |
> |
if (obj6) { |
3062 |
> |
arg7 = (unsigned int) PyInt_AsLong(obj6); |
3063 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3064 |
> |
} |
3065 |
> |
{ |
3066 |
> |
try { |
3067 |
> |
result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7); |
3068 |
> |
|
3069 |
> |
}catch (const BossSchedFailure & e) { |
3070 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3071 |
> |
return NULL; |
3072 |
> |
}catch (const std::exception& e) { |
3073 |
> |
PyErr_SetString ( BossError, e.what() ); |
3074 |
> |
return NULL; |
3075 |
> |
} |
3076 |
> |
} |
3077 |
> |
{ |
3078 |
> |
resultobj = PyTuple_New((&result)->size()); |
3079 |
> |
for (unsigned int i=0; i<(&result)->size(); i++) |
3080 |
> |
PyTuple_SetItem(resultobj,i, |
3081 |
> |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
3082 |
> |
} |
3083 |
> |
return resultobj; |
3084 |
> |
fail: |
3085 |
> |
return NULL; |
3086 |
> |
} |
3087 |
> |
|
3088 |
> |
|
3089 |
> |
static PyObject *_wrap_BossSession_schedulerQuery(PyObject *self, PyObject *args) { |
3090 |
> |
PyObject *resultobj; |
3091 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3092 |
> |
int arg2 = (int) SCHEDULED ; |
3093 |
> |
std::string const &arg3_defvalue = "all" ; |
3094 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
3095 |
> |
std::string const &arg4_defvalue = "all" ; |
3096 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3097 |
> |
std::string const &arg5_defvalue = "" ; |
3098 |
> |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3099 |
> |
std::string arg6 = (std::string) "" ; |
3100 |
> |
std::string arg7 = (std::string) "" ; |
3101 |
> |
std::string arg8 = (std::string) "" ; |
3102 |
> |
std::string arg9 = (std::string) "" ; |
3103 |
> |
unsigned int arg10 = (unsigned int) 0 ; |
3104 |
> |
std::string temp3 ; |
3105 |
> |
std::string temp4 ; |
3106 |
> |
std::string temp5 ; |
3107 |
> |
PyObject * obj0 = 0 ; |
3108 |
> |
PyObject * obj2 = 0 ; |
3109 |
> |
PyObject * obj3 = 0 ; |
3110 |
> |
PyObject * obj4 = 0 ; |
3111 |
> |
PyObject * obj5 = 0 ; |
3112 |
> |
PyObject * obj6 = 0 ; |
3113 |
> |
PyObject * obj7 = 0 ; |
3114 |
> |
PyObject * obj8 = 0 ; |
3115 |
> |
PyObject * obj9 = 0 ; |
3116 |
> |
|
3117 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
3118 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3119 |
> |
if (obj2) { |
3120 |
> |
{ |
3121 |
> |
if (PyString_Check(obj2)) { |
3122 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
3123 |
> |
arg3 = &temp3; |
3124 |
> |
}else { |
3125 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3126 |
> |
} |
3127 |
> |
} |
3128 |
> |
} |
3129 |
> |
if (obj3) { |
3130 |
> |
{ |
3131 |
> |
if (PyString_Check(obj3)) { |
3132 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
3133 |
> |
arg4 = &temp4; |
3134 |
> |
}else { |
3135 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3136 |
> |
} |
3137 |
> |
} |
3138 |
> |
} |
3139 |
> |
if (obj4) { |
3140 |
> |
{ |
3141 |
> |
if (PyString_Check(obj4)) { |
3142 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
3143 |
> |
arg5 = &temp5; |
3144 |
> |
}else { |
3145 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3146 |
> |
} |
3147 |
> |
} |
3148 |
> |
} |
3149 |
> |
if (obj5) { |
3150 |
> |
{ |
3151 |
> |
if (PyString_Check(obj5)) |
3152 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
3153 |
|
else |
3154 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3155 |
|
} |
3156 |
|
} |
3157 |
< |
result = (arg1)->deleteTask(arg2); |
3158 |
< |
|
3157 |
> |
if (obj6) { |
3158 |
> |
{ |
3159 |
> |
if (PyString_Check(obj6)) |
3160 |
> |
arg7 = std::string(PyString_AsString(obj6)); |
3161 |
> |
else |
3162 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3163 |
> |
} |
3164 |
> |
} |
3165 |
> |
if (obj7) { |
3166 |
> |
{ |
3167 |
> |
if (PyString_Check(obj7)) |
3168 |
> |
arg8 = std::string(PyString_AsString(obj7)); |
3169 |
> |
else |
3170 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3171 |
> |
} |
3172 |
> |
} |
3173 |
> |
if (obj8) { |
3174 |
> |
{ |
3175 |
> |
if (PyString_Check(obj8)) |
3176 |
> |
arg9 = std::string(PyString_AsString(obj8)); |
3177 |
> |
else |
3178 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3179 |
> |
} |
3180 |
> |
} |
3181 |
> |
if (obj9) { |
3182 |
> |
arg10 = (unsigned int) PyInt_AsLong(obj9); |
3183 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3184 |
> |
} |
3185 |
|
{ |
3186 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
3186 |
> |
try { |
3187 |
> |
(arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10); |
3188 |
> |
|
3189 |
> |
}catch (const BossSchedFailure & e) { |
3190 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3191 |
> |
return NULL; |
3192 |
> |
}catch (const std::exception& e) { |
3193 |
> |
PyErr_SetString ( BossError, e.what() ); |
3194 |
> |
return NULL; |
3195 |
> |
} |
3196 |
|
} |
3197 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
3198 |
|
return resultobj; |
3199 |
|
fail: |
3200 |
|
return NULL; |
3201 |
|
} |
3202 |
|
|
3203 |
|
|
3204 |
< |
static PyObject *_wrap_BossUserSession_getOutput(PyObject *self, PyObject *args) { |
3204 |
> |
static PyObject *_wrap_BossSession_selectTasks(PyObject *self, PyObject *args) { |
3205 |
|
PyObject *resultobj; |
3206 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
3207 |
< |
std::string arg2 = (std::string) "NONE" ; |
3208 |
< |
std::string result; |
3206 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3207 |
> |
std::string const &arg2_defvalue = "all" ; |
3208 |
> |
std::string *arg2 = (std::string *) &arg2_defvalue ; |
3209 |
> |
std::string const &arg3_defvalue = "" ; |
3210 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
3211 |
> |
std::string const &arg4_defvalue = "" ; |
3212 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3213 |
> |
std::string const &arg5_defvalue = "" ; |
3214 |
> |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3215 |
> |
std::vector<std::string > result; |
3216 |
> |
std::string temp2 ; |
3217 |
> |
std::string temp3 ; |
3218 |
> |
std::string temp4 ; |
3219 |
> |
std::string temp5 ; |
3220 |
|
PyObject * obj0 = 0 ; |
3221 |
|
PyObject * obj1 = 0 ; |
3222 |
+ |
PyObject * obj2 = 0 ; |
3223 |
+ |
PyObject * obj3 = 0 ; |
3224 |
+ |
PyObject * obj4 = 0 ; |
3225 |
|
|
3226 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_getOutput",&obj0,&obj1)) goto fail; |
3227 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3226 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossSession_selectTasks",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
3227 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3228 |
|
if (obj1) { |
3229 |
|
{ |
3230 |
< |
if (PyString_Check(obj1)) |
3231 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
3232 |
< |
else |
3233 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3230 |
> |
if (PyString_Check(obj1)) { |
3231 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
3232 |
> |
arg2 = &temp2; |
3233 |
> |
}else { |
3234 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3235 |
> |
} |
3236 |
> |
} |
3237 |
> |
} |
3238 |
> |
if (obj2) { |
3239 |
> |
{ |
3240 |
> |
if (PyString_Check(obj2)) { |
3241 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
3242 |
> |
arg3 = &temp3; |
3243 |
> |
}else { |
3244 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3245 |
> |
} |
3246 |
> |
} |
3247 |
> |
} |
3248 |
> |
if (obj3) { |
3249 |
> |
{ |
3250 |
> |
if (PyString_Check(obj3)) { |
3251 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
3252 |
> |
arg4 = &temp4; |
3253 |
> |
}else { |
3254 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3255 |
> |
} |
3256 |
> |
} |
3257 |
> |
} |
3258 |
> |
if (obj4) { |
3259 |
> |
{ |
3260 |
> |
if (PyString_Check(obj4)) { |
3261 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
3262 |
> |
arg5 = &temp5; |
3263 |
> |
}else { |
3264 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3265 |
> |
} |
3266 |
|
} |
3267 |
|
} |
1088 |
– |
result = (arg1)->getOutput(arg2); |
1089 |
– |
|
3268 |
|
{ |
3269 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
3269 |
> |
try { |
3270 |
> |
result = (arg1)->selectTasks((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5); |
3271 |
> |
|
3272 |
> |
}catch (const BossSchedFailure & e) { |
3273 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3274 |
> |
return NULL; |
3275 |
> |
}catch (const std::exception& e) { |
3276 |
> |
PyErr_SetString ( BossError, e.what() ); |
3277 |
> |
return NULL; |
3278 |
> |
} |
3279 |
> |
} |
3280 |
> |
{ |
3281 |
> |
resultobj = PyTuple_New((&result)->size()); |
3282 |
> |
for (unsigned int i=0; i<(&result)->size(); i++) |
3283 |
> |
PyTuple_SetItem(resultobj,i, |
3284 |
> |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
3285 |
|
} |
3286 |
|
return resultobj; |
3287 |
|
fail: |
3289 |
|
} |
3290 |
|
|
3291 |
|
|
3292 |
< |
static PyObject *_wrap_BossUserSession_kill(PyObject *self, PyObject *args) { |
3292 |
> |
static PyObject *_wrap_BossSession_selectTasksByName(PyObject *self, PyObject *args) { |
3293 |
|
PyObject *resultobj; |
3294 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
3295 |
< |
std::string arg2 = (std::string) "NONE" ; |
3296 |
< |
std::string result; |
3294 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3295 |
> |
std::string *arg2 = 0 ; |
3296 |
> |
std::vector<std::string > result; |
3297 |
> |
std::string temp2 ; |
3298 |
|
PyObject * obj0 = 0 ; |
3299 |
|
PyObject * obj1 = 0 ; |
3300 |
|
|
3301 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_kill",&obj0,&obj1)) goto fail; |
3302 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3303 |
< |
if (obj1) { |
3301 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_selectTasksByName",&obj0,&obj1)) goto fail; |
3302 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3303 |
> |
{ |
3304 |
> |
if (PyString_Check(obj1)) { |
3305 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
3306 |
> |
arg2 = &temp2; |
3307 |
> |
}else { |
3308 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3309 |
> |
} |
3310 |
> |
} |
3311 |
> |
{ |
3312 |
> |
try { |
3313 |
> |
result = (arg1)->selectTasksByName((std::string const &)*arg2); |
3314 |
> |
|
3315 |
> |
}catch (const BossSchedFailure & e) { |
3316 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3317 |
> |
return NULL; |
3318 |
> |
}catch (const std::exception& e) { |
3319 |
> |
PyErr_SetString ( BossError, e.what() ); |
3320 |
> |
return NULL; |
3321 |
> |
} |
3322 |
> |
} |
3323 |
> |
{ |
3324 |
> |
resultobj = PyTuple_New((&result)->size()); |
3325 |
> |
for (unsigned int i=0; i<(&result)->size(); i++) |
3326 |
> |
PyTuple_SetItem(resultobj,i, |
3327 |
> |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
3328 |
> |
} |
3329 |
> |
return resultobj; |
3330 |
> |
fail: |
3331 |
> |
return NULL; |
3332 |
> |
} |
3333 |
> |
|
3334 |
> |
|
3335 |
> |
static PyObject *_wrap_BossSession_query(PyObject *self, PyObject *args) { |
3336 |
> |
PyObject *resultobj; |
3337 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3338 |
> |
int arg2 = (int) SCHEDULED ; |
3339 |
> |
std::string const &arg3_defvalue = "all" ; |
3340 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
3341 |
> |
std::string const &arg4_defvalue = "all" ; |
3342 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3343 |
> |
std::string const &arg5_defvalue = "" ; |
3344 |
> |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3345 |
> |
std::string arg6 = (std::string) "" ; |
3346 |
> |
std::string arg7 = (std::string) "" ; |
3347 |
> |
std::string arg8 = (std::string) "" ; |
3348 |
> |
std::string arg9 = (std::string) "" ; |
3349 |
> |
unsigned int arg10 = (unsigned int) 0 ; |
3350 |
> |
bool arg11 = (bool) false ; |
3351 |
> |
SwigValueWrapper< std::vector<BossTask * > > result; |
3352 |
> |
std::string temp3 ; |
3353 |
> |
std::string temp4 ; |
3354 |
> |
std::string temp5 ; |
3355 |
> |
PyObject * obj0 = 0 ; |
3356 |
> |
PyObject * obj2 = 0 ; |
3357 |
> |
PyObject * obj3 = 0 ; |
3358 |
> |
PyObject * obj4 = 0 ; |
3359 |
> |
PyObject * obj5 = 0 ; |
3360 |
> |
PyObject * obj6 = 0 ; |
3361 |
> |
PyObject * obj7 = 0 ; |
3362 |
> |
PyObject * obj8 = 0 ; |
3363 |
> |
PyObject * obj9 = 0 ; |
3364 |
> |
PyObject * obj10 = 0 ; |
3365 |
> |
|
3366 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
3367 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3368 |
> |
if (obj2) { |
3369 |
|
{ |
3370 |
< |
if (PyString_Check(obj1)) |
3371 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
3370 |
> |
if (PyString_Check(obj2)) { |
3371 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
3372 |
> |
arg3 = &temp3; |
3373 |
> |
}else { |
3374 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3375 |
> |
} |
3376 |
> |
} |
3377 |
> |
} |
3378 |
> |
if (obj3) { |
3379 |
> |
{ |
3380 |
> |
if (PyString_Check(obj3)) { |
3381 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
3382 |
> |
arg4 = &temp4; |
3383 |
> |
}else { |
3384 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3385 |
> |
} |
3386 |
> |
} |
3387 |
> |
} |
3388 |
> |
if (obj4) { |
3389 |
> |
{ |
3390 |
> |
if (PyString_Check(obj4)) { |
3391 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
3392 |
> |
arg5 = &temp5; |
3393 |
> |
}else { |
3394 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3395 |
> |
} |
3396 |
> |
} |
3397 |
> |
} |
3398 |
> |
if (obj5) { |
3399 |
> |
{ |
3400 |
> |
if (PyString_Check(obj5)) |
3401 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
3402 |
> |
else |
3403 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3404 |
> |
} |
3405 |
> |
} |
3406 |
> |
if (obj6) { |
3407 |
> |
{ |
3408 |
> |
if (PyString_Check(obj6)) |
3409 |
> |
arg7 = std::string(PyString_AsString(obj6)); |
3410 |
> |
else |
3411 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3412 |
> |
} |
3413 |
> |
} |
3414 |
> |
if (obj7) { |
3415 |
> |
{ |
3416 |
> |
if (PyString_Check(obj7)) |
3417 |
> |
arg8 = std::string(PyString_AsString(obj7)); |
3418 |
|
else |
3419 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3420 |
|
} |
3421 |
|
} |
3422 |
< |
result = (arg1)->kill(arg2); |
3422 |
> |
if (obj8) { |
3423 |
> |
{ |
3424 |
> |
if (PyString_Check(obj8)) |
3425 |
> |
arg9 = std::string(PyString_AsString(obj8)); |
3426 |
> |
else |
3427 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3428 |
> |
} |
3429 |
> |
} |
3430 |
> |
if (obj9) { |
3431 |
> |
arg10 = (unsigned int) PyInt_AsLong(obj9); |
3432 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3433 |
> |
} |
3434 |
> |
if (obj10) { |
3435 |
> |
arg11 = PyInt_AsLong(obj10) ? true : false; |
3436 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3437 |
> |
} |
3438 |
> |
{ |
3439 |
> |
try { |
3440 |
> |
result = (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11); |
3441 |
> |
|
3442 |
> |
}catch (const BossSchedFailure & e) { |
3443 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3444 |
> |
return NULL; |
3445 |
> |
}catch (const std::exception& e) { |
3446 |
> |
PyErr_SetString ( BossError, e.what() ); |
3447 |
> |
return NULL; |
3448 |
> |
} |
3449 |
> |
} |
3450 |
> |
{ |
3451 |
> |
std::vector<BossTask * > * resultptr; |
3452 |
> |
resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result); |
3453 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1); |
3454 |
> |
} |
3455 |
> |
return resultobj; |
3456 |
> |
fail: |
3457 |
> |
return NULL; |
3458 |
> |
} |
3459 |
> |
|
3460 |
> |
|
3461 |
> |
static PyObject *_wrap_BossSession_getTasksByName(PyObject *self, PyObject *args) { |
3462 |
> |
PyObject *resultobj; |
3463 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3464 |
> |
std::string *arg2 = 0 ; |
3465 |
> |
SwigValueWrapper< std::vector<BossTask * > > result; |
3466 |
> |
std::string temp2 ; |
3467 |
> |
PyObject * obj0 = 0 ; |
3468 |
> |
PyObject * obj1 = 0 ; |
3469 |
|
|
3470 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByName",&obj0,&obj1)) goto fail; |
3471 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3472 |
|
{ |
3473 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
3473 |
> |
if (PyString_Check(obj1)) { |
3474 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
3475 |
> |
arg2 = &temp2; |
3476 |
> |
}else { |
3477 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3478 |
> |
} |
3479 |
> |
} |
3480 |
> |
{ |
3481 |
> |
try { |
3482 |
> |
result = (arg1)->getTasksByName((std::string const &)*arg2); |
3483 |
> |
|
3484 |
> |
}catch (const BossSchedFailure & e) { |
3485 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3486 |
> |
return NULL; |
3487 |
> |
}catch (const std::exception& e) { |
3488 |
> |
PyErr_SetString ( BossError, e.what() ); |
3489 |
> |
return NULL; |
3490 |
> |
} |
3491 |
> |
} |
3492 |
> |
{ |
3493 |
> |
std::vector<BossTask * > * resultptr; |
3494 |
> |
resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result); |
3495 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1); |
3496 |
|
} |
3497 |
|
return resultobj; |
3498 |
|
fail: |
3500 |
|
} |
3501 |
|
|
3502 |
|
|
3503 |
< |
static PyObject *_wrap_BossUserSession_listMatch(PyObject *self, PyObject *args) { |
3503 |
> |
static PyObject *_wrap_BossSession_getTasksByJobName(PyObject *self, PyObject *args) { |
3504 |
|
PyObject *resultobj; |
3505 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
3506 |
< |
std::string arg2 = (std::string) "NONE" ; |
3507 |
< |
std::string result; |
3505 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3506 |
> |
std::string *arg2 = 0 ; |
3507 |
> |
SwigValueWrapper< std::vector<BossTask * > > result; |
3508 |
> |
std::string temp2 ; |
3509 |
|
PyObject * obj0 = 0 ; |
3510 |
|
PyObject * obj1 = 0 ; |
3511 |
|
|
3512 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_listMatch",&obj0,&obj1)) goto fail; |
3513 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3514 |
< |
if (obj1) { |
3515 |
< |
{ |
3516 |
< |
if (PyString_Check(obj1)) |
3517 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
3518 |
< |
else |
3512 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByJobName",&obj0,&obj1)) goto fail; |
3513 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3514 |
> |
{ |
3515 |
> |
if (PyString_Check(obj1)) { |
3516 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
3517 |
> |
arg2 = &temp2; |
3518 |
> |
}else { |
3519 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3520 |
|
} |
3521 |
|
} |
3522 |
< |
result = (arg1)->listMatch(arg2); |
3522 |
> |
{ |
3523 |
> |
try { |
3524 |
> |
result = (arg1)->getTasksByJobName((std::string const &)*arg2); |
3525 |
> |
|
3526 |
> |
}catch (const BossSchedFailure & e) { |
3527 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3528 |
> |
return NULL; |
3529 |
> |
}catch (const std::exception& e) { |
3530 |
> |
PyErr_SetString ( BossError, e.what() ); |
3531 |
> |
return NULL; |
3532 |
> |
} |
3533 |
> |
} |
3534 |
> |
{ |
3535 |
> |
std::vector<BossTask * > * resultptr; |
3536 |
> |
resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result); |
3537 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1); |
3538 |
> |
} |
3539 |
> |
return resultobj; |
3540 |
> |
fail: |
3541 |
> |
return NULL; |
3542 |
> |
} |
3543 |
> |
|
3544 |
> |
|
3545 |
> |
static PyObject *_wrap_BossSession_tasksInMemory(PyObject *self, PyObject *args) { |
3546 |
> |
PyObject *resultobj; |
3547 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3548 |
> |
unsigned int result; |
3549 |
> |
PyObject * obj0 = 0 ; |
3550 |
> |
|
3551 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_tasksInMemory",&obj0)) goto fail; |
3552 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3553 |
> |
{ |
3554 |
> |
try { |
3555 |
> |
result = (unsigned int)(arg1)->tasksInMemory(); |
3556 |
> |
|
3557 |
> |
}catch (const BossSchedFailure & e) { |
3558 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3559 |
> |
return NULL; |
3560 |
> |
}catch (const std::exception& e) { |
3561 |
> |
PyErr_SetString ( BossError, e.what() ); |
3562 |
> |
return NULL; |
3563 |
> |
} |
3564 |
> |
} |
3565 |
> |
resultobj = PyInt_FromLong((long)result); |
3566 |
> |
return resultobj; |
3567 |
> |
fail: |
3568 |
> |
return NULL; |
3569 |
> |
} |
3570 |
> |
|
3571 |
> |
|
3572 |
> |
static PyObject *_wrap_BossSession_locate(PyObject *self, PyObject *args) { |
3573 |
> |
PyObject *resultobj; |
3574 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3575 |
> |
unsigned int arg2 ; |
3576 |
> |
BossTask *result; |
3577 |
> |
PyObject * obj0 = 0 ; |
3578 |
> |
PyObject * obj1 = 0 ; |
3579 |
|
|
3580 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_locate",&obj0,&obj1)) goto fail; |
3581 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3582 |
+ |
arg2 = (unsigned int) PyInt_AsLong(obj1); |
3583 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
3584 |
|
{ |
3585 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
3585 |
> |
try { |
3586 |
> |
result = (BossTask *)(arg1)->locate(arg2); |
3587 |
> |
|
3588 |
> |
}catch (const BossSchedFailure & e) { |
3589 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3590 |
> |
return NULL; |
3591 |
> |
}catch (const std::exception& e) { |
3592 |
> |
PyErr_SetString ( BossError, e.what() ); |
3593 |
> |
return NULL; |
3594 |
> |
} |
3595 |
|
} |
3596 |
+ |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0); |
3597 |
|
return resultobj; |
3598 |
|
fail: |
3599 |
|
return NULL; |
3600 |
|
} |
3601 |
|
|
3602 |
|
|
3603 |
< |
static PyObject *_wrap_BossUserSession_query(PyObject *self, PyObject *args) { |
3603 |
> |
static PyObject *_wrap_BossSession_show(PyObject *self, PyObject *args) { |
3604 |
|
PyObject *resultobj; |
3605 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
3606 |
< |
std::string arg2 = (std::string) "NONE" ; |
3607 |
< |
std::string result; |
3605 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3606 |
> |
std::vector<std::string > *arg2 = 0 ; |
3607 |
> |
PyObject *result; |
3608 |
> |
PyObject * obj0 = 0 ; |
3609 |
> |
PyObject * obj1 = 0 ; |
3610 |
> |
|
3611 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_show",&obj0,&obj1)) goto fail; |
3612 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3613 |
> |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3614 |
> |
if (arg2 == NULL) { |
3615 |
> |
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
3616 |
> |
} |
3617 |
> |
{ |
3618 |
> |
try { |
3619 |
> |
result = (PyObject *)BossSession_show(arg1,*arg2); |
3620 |
> |
|
3621 |
> |
}catch (const BossSchedFailure & e) { |
3622 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3623 |
> |
return NULL; |
3624 |
> |
}catch (const std::exception& e) { |
3625 |
> |
PyErr_SetString ( BossError, e.what() ); |
3626 |
> |
return NULL; |
3627 |
> |
} |
3628 |
> |
} |
3629 |
> |
resultobj = result; |
3630 |
> |
return resultobj; |
3631 |
> |
fail: |
3632 |
> |
return NULL; |
3633 |
> |
} |
3634 |
> |
|
3635 |
> |
|
3636 |
> |
static PyObject *_wrap_BossSession_CHTools(PyObject *self, PyObject *args) { |
3637 |
> |
PyObject *resultobj; |
3638 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3639 |
> |
PyObject *result; |
3640 |
> |
PyObject * obj0 = 0 ; |
3641 |
> |
|
3642 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_CHTools",&obj0)) goto fail; |
3643 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3644 |
> |
{ |
3645 |
> |
try { |
3646 |
> |
result = (PyObject *)BossSession_CHTools(arg1); |
3647 |
> |
|
3648 |
> |
}catch (const BossSchedFailure & e) { |
3649 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3650 |
> |
return NULL; |
3651 |
> |
}catch (const std::exception& e) { |
3652 |
> |
PyErr_SetString ( BossError, e.what() ); |
3653 |
> |
return NULL; |
3654 |
> |
} |
3655 |
> |
} |
3656 |
> |
resultobj = result; |
3657 |
> |
return resultobj; |
3658 |
> |
fail: |
3659 |
> |
return NULL; |
3660 |
> |
} |
3661 |
> |
|
3662 |
> |
|
3663 |
> |
static PyObject *_wrap_BossSession_ProgramTypes(PyObject *self, PyObject *args) { |
3664 |
> |
PyObject *resultobj; |
3665 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3666 |
> |
PyObject *result; |
3667 |
> |
PyObject * obj0 = 0 ; |
3668 |
> |
|
3669 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_ProgramTypes",&obj0)) goto fail; |
3670 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3671 |
> |
{ |
3672 |
> |
try { |
3673 |
> |
result = (PyObject *)BossSession_ProgramTypes(arg1); |
3674 |
> |
|
3675 |
> |
}catch (const BossSchedFailure & e) { |
3676 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3677 |
> |
return NULL; |
3678 |
> |
}catch (const std::exception& e) { |
3679 |
> |
PyErr_SetString ( BossError, e.what() ); |
3680 |
> |
return NULL; |
3681 |
> |
} |
3682 |
> |
} |
3683 |
> |
resultobj = result; |
3684 |
> |
return resultobj; |
3685 |
> |
fail: |
3686 |
> |
return NULL; |
3687 |
> |
} |
3688 |
> |
|
3689 |
> |
|
3690 |
> |
static PyObject *_wrap_BossSession_RTMons(PyObject *self, PyObject *args) { |
3691 |
> |
PyObject *resultobj; |
3692 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3693 |
> |
PyObject *result; |
3694 |
> |
PyObject * obj0 = 0 ; |
3695 |
> |
|
3696 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_RTMons",&obj0)) goto fail; |
3697 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3698 |
> |
{ |
3699 |
> |
try { |
3700 |
> |
result = (PyObject *)BossSession_RTMons(arg1); |
3701 |
> |
|
3702 |
> |
}catch (const BossSchedFailure & e) { |
3703 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3704 |
> |
return NULL; |
3705 |
> |
}catch (const std::exception& e) { |
3706 |
> |
PyErr_SetString ( BossError, e.what() ); |
3707 |
> |
return NULL; |
3708 |
> |
} |
3709 |
> |
} |
3710 |
> |
resultobj = result; |
3711 |
> |
return resultobj; |
3712 |
> |
fail: |
3713 |
> |
return NULL; |
3714 |
> |
} |
3715 |
> |
|
3716 |
> |
|
3717 |
> |
static PyObject *_wrap_BossSession_schedulers(PyObject *self, PyObject *args) { |
3718 |
> |
PyObject *resultobj; |
3719 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3720 |
> |
PyObject *result; |
3721 |
> |
PyObject * obj0 = 0 ; |
3722 |
> |
|
3723 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_schedulers",&obj0)) goto fail; |
3724 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3725 |
> |
{ |
3726 |
> |
try { |
3727 |
> |
result = (PyObject *)BossSession_schedulers(arg1); |
3728 |
> |
|
3729 |
> |
}catch (const BossSchedFailure & e) { |
3730 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3731 |
> |
return NULL; |
3732 |
> |
}catch (const std::exception& e) { |
3733 |
> |
PyErr_SetString ( BossError, e.what() ); |
3734 |
> |
return NULL; |
3735 |
> |
} |
3736 |
> |
} |
3737 |
> |
resultobj = result; |
3738 |
> |
return resultobj; |
3739 |
> |
fail: |
3740 |
> |
return NULL; |
3741 |
> |
} |
3742 |
> |
|
3743 |
> |
|
3744 |
> |
static PyObject *_wrap_BossSession_schedListMatch(PyObject *self, PyObject *args) { |
3745 |
> |
PyObject *resultobj; |
3746 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3747 |
> |
std::string *arg2 = 0 ; |
3748 |
> |
std::string *arg3 = 0 ; |
3749 |
> |
std::string const &arg4_defvalue = "" ; |
3750 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3751 |
> |
std::string const &arg5_defvalue = "" ; |
3752 |
> |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3753 |
> |
unsigned int arg6 = (unsigned int) 0 ; |
3754 |
> |
bool arg7 = (bool) false ; |
3755 |
> |
PyObject *result; |
3756 |
> |
std::string temp2 ; |
3757 |
> |
std::string temp3 ; |
3758 |
> |
std::string temp4 ; |
3759 |
> |
std::string temp5 ; |
3760 |
|
PyObject * obj0 = 0 ; |
3761 |
|
PyObject * obj1 = 0 ; |
3762 |
+ |
PyObject * obj2 = 0 ; |
3763 |
+ |
PyObject * obj3 = 0 ; |
3764 |
+ |
PyObject * obj4 = 0 ; |
3765 |
+ |
PyObject * obj5 = 0 ; |
3766 |
+ |
PyObject * obj6 = 0 ; |
3767 |
|
|
3768 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_query",&obj0,&obj1)) goto fail; |
3769 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3768 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
3769 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3770 |
> |
{ |
3771 |
> |
if (PyString_Check(obj1)) { |
3772 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
3773 |
> |
arg2 = &temp2; |
3774 |
> |
}else { |
3775 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3776 |
> |
} |
3777 |
> |
} |
3778 |
> |
{ |
3779 |
> |
if (PyString_Check(obj2)) { |
3780 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
3781 |
> |
arg3 = &temp3; |
3782 |
> |
}else { |
3783 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3784 |
> |
} |
3785 |
> |
} |
3786 |
> |
if (obj3) { |
3787 |
> |
{ |
3788 |
> |
if (PyString_Check(obj3)) { |
3789 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
3790 |
> |
arg4 = &temp4; |
3791 |
> |
}else { |
3792 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3793 |
> |
} |
3794 |
> |
} |
3795 |
> |
} |
3796 |
> |
if (obj4) { |
3797 |
> |
{ |
3798 |
> |
if (PyString_Check(obj4)) { |
3799 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
3800 |
> |
arg5 = &temp5; |
3801 |
> |
}else { |
3802 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3803 |
> |
} |
3804 |
> |
} |
3805 |
> |
} |
3806 |
> |
if (obj5) { |
3807 |
> |
arg6 = (unsigned int) PyInt_AsLong(obj5); |
3808 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3809 |
> |
} |
3810 |
> |
if (obj6) { |
3811 |
> |
arg7 = PyInt_AsLong(obj6) ? true : false; |
3812 |
> |
if (PyErr_Occurred()) SWIG_fail; |
3813 |
> |
} |
3814 |
> |
{ |
3815 |
> |
try { |
3816 |
> |
result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7); |
3817 |
> |
|
3818 |
> |
}catch (const BossSchedFailure & e) { |
3819 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3820 |
> |
return NULL; |
3821 |
> |
}catch (const std::exception& e) { |
3822 |
> |
PyErr_SetString ( BossError, e.what() ); |
3823 |
> |
return NULL; |
3824 |
> |
} |
3825 |
> |
} |
3826 |
> |
resultobj = result; |
3827 |
> |
return resultobj; |
3828 |
> |
fail: |
3829 |
> |
return NULL; |
3830 |
> |
} |
3831 |
> |
|
3832 |
> |
|
3833 |
> |
static PyObject *_wrap_BossSession_queryTasks(PyObject *self, PyObject *args) { |
3834 |
> |
PyObject *resultobj; |
3835 |
> |
BossSession *arg1 = (BossSession *) 0 ; |
3836 |
> |
std::string const &arg2_defvalue = "" ; |
3837 |
> |
std::string *arg2 = (std::string *) &arg2_defvalue ; |
3838 |
> |
std::string const &arg3_defvalue = "all" ; |
3839 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
3840 |
> |
std::string arg4 = (std::string) "" ; |
3841 |
> |
std::string arg5 = (std::string) "" ; |
3842 |
> |
std::string arg6 = (std::string) "" ; |
3843 |
> |
PyObject *result; |
3844 |
> |
std::string temp2 ; |
3845 |
> |
std::string temp3 ; |
3846 |
> |
PyObject * obj0 = 0 ; |
3847 |
> |
PyObject * obj1 = 0 ; |
3848 |
> |
PyObject * obj2 = 0 ; |
3849 |
> |
PyObject * obj3 = 0 ; |
3850 |
> |
PyObject * obj4 = 0 ; |
3851 |
> |
PyObject * obj5 = 0 ; |
3852 |
> |
|
3853 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OOOOO:BossSession_queryTasks",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
3854 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3855 |
|
if (obj1) { |
3856 |
|
{ |
3857 |
< |
if (PyString_Check(obj1)) |
3858 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
3857 |
> |
if (PyString_Check(obj1)) { |
3858 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
3859 |
> |
arg2 = &temp2; |
3860 |
> |
}else { |
3861 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3862 |
> |
} |
3863 |
> |
} |
3864 |
> |
} |
3865 |
> |
if (obj2) { |
3866 |
> |
{ |
3867 |
> |
if (PyString_Check(obj2)) { |
3868 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
3869 |
> |
arg3 = &temp3; |
3870 |
> |
}else { |
3871 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3872 |
> |
} |
3873 |
> |
} |
3874 |
> |
} |
3875 |
> |
if (obj3) { |
3876 |
> |
{ |
3877 |
> |
if (PyString_Check(obj3)) |
3878 |
> |
arg4 = std::string(PyString_AsString(obj3)); |
3879 |
|
else |
3880 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3881 |
|
} |
3882 |
|
} |
3883 |
< |
result = (arg1)->query(arg2); |
3883 |
> |
if (obj4) { |
3884 |
> |
{ |
3885 |
> |
if (PyString_Check(obj4)) |
3886 |
> |
arg5 = std::string(PyString_AsString(obj4)); |
3887 |
> |
else |
3888 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3889 |
> |
} |
3890 |
> |
} |
3891 |
> |
if (obj5) { |
3892 |
> |
{ |
3893 |
> |
if (PyString_Check(obj5)) |
3894 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
3895 |
> |
else |
3896 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3897 |
> |
} |
3898 |
> |
} |
3899 |
> |
{ |
3900 |
> |
try { |
3901 |
> |
result = (PyObject *)BossSession_queryTasks(arg1,(std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6); |
3902 |
> |
|
3903 |
> |
}catch (const BossSchedFailure & e) { |
3904 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3905 |
> |
return NULL; |
3906 |
> |
}catch (const std::exception& e) { |
3907 |
> |
PyErr_SetString ( BossError, e.what() ); |
3908 |
> |
return NULL; |
3909 |
> |
} |
3910 |
> |
} |
3911 |
> |
resultobj = result; |
3912 |
> |
return resultobj; |
3913 |
> |
fail: |
3914 |
> |
return NULL; |
3915 |
> |
} |
3916 |
> |
|
3917 |
> |
|
3918 |
> |
static PyObject * BossSession_swigregister(PyObject *self, PyObject *args) { |
3919 |
> |
PyObject *obj; |
3920 |
> |
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
3921 |
> |
SWIG_TypeClientData(SWIGTYPE_p_BossSession, obj); |
3922 |
> |
Py_INCREF(obj); |
3923 |
> |
return Py_BuildValue((char *)""); |
3924 |
> |
} |
3925 |
> |
static PyObject *_wrap_new_BossTaskException(PyObject *self, PyObject *args) { |
3926 |
> |
PyObject *resultobj; |
3927 |
> |
char *arg1 ; |
3928 |
> |
BossTaskException *result; |
3929 |
|
|
3930 |
+ |
if(!PyArg_ParseTuple(args,(char *)"s:new_BossTaskException",&arg1)) goto fail; |
3931 |
|
{ |
3932 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
3932 |
> |
try { |
3933 |
> |
result = (BossTaskException *)new BossTaskException((char const *)arg1); |
3934 |
> |
|
3935 |
> |
}catch (const BossSchedFailure & e) { |
3936 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3937 |
> |
return NULL; |
3938 |
> |
}catch (const std::exception& e) { |
3939 |
> |
PyErr_SetString ( BossError, e.what() ); |
3940 |
> |
return NULL; |
3941 |
> |
} |
3942 |
|
} |
3943 |
+ |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTaskException, 1); |
3944 |
|
return resultobj; |
3945 |
|
fail: |
3946 |
|
return NULL; |
3947 |
|
} |
3948 |
|
|
3949 |
|
|
3950 |
< |
static PyObject *_wrap_BossUserSession_showCHTools(PyObject *self, PyObject *args) { |
3950 |
> |
static PyObject *_wrap_delete_BossTaskException(PyObject *self, PyObject *args) { |
3951 |
|
PyObject *resultobj; |
3952 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
3953 |
< |
std::string arg2 = (std::string) "NONE" ; |
3954 |
< |
std::string result; |
3952 |
> |
BossTaskException *arg1 = (BossTaskException *) 0 ; |
3953 |
> |
PyObject * obj0 = 0 ; |
3954 |
> |
|
3955 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTaskException",&obj0)) goto fail; |
3956 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3957 |
> |
{ |
3958 |
> |
try { |
3959 |
> |
delete arg1; |
3960 |
> |
|
3961 |
> |
}catch (const BossSchedFailure & e) { |
3962 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3963 |
> |
return NULL; |
3964 |
> |
}catch (const std::exception& e) { |
3965 |
> |
PyErr_SetString ( BossError, e.what() ); |
3966 |
> |
return NULL; |
3967 |
> |
} |
3968 |
> |
} |
3969 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
3970 |
> |
return resultobj; |
3971 |
> |
fail: |
3972 |
> |
return NULL; |
3973 |
> |
} |
3974 |
> |
|
3975 |
> |
|
3976 |
> |
static PyObject * BossTaskException_swigregister(PyObject *self, PyObject *args) { |
3977 |
> |
PyObject *obj; |
3978 |
> |
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
3979 |
> |
SWIG_TypeClientData(SWIGTYPE_p_BossTaskException, obj); |
3980 |
> |
Py_INCREF(obj); |
3981 |
> |
return Py_BuildValue((char *)""); |
3982 |
> |
} |
3983 |
> |
static PyObject *_wrap_BossTask_job_begin(PyObject *self, PyObject *args) { |
3984 |
> |
PyObject *resultobj; |
3985 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
3986 |
> |
BossTask::job_iterator result; |
3987 |
> |
PyObject * obj0 = 0 ; |
3988 |
> |
|
3989 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_job_begin",&obj0)) goto fail; |
3990 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3991 |
> |
{ |
3992 |
> |
try { |
3993 |
> |
result = ((BossTask const *)arg1)->job_begin(); |
3994 |
> |
|
3995 |
> |
}catch (const BossSchedFailure & e) { |
3996 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
3997 |
> |
return NULL; |
3998 |
> |
}catch (const std::exception& e) { |
3999 |
> |
PyErr_SetString ( BossError, e.what() ); |
4000 |
> |
return NULL; |
4001 |
> |
} |
4002 |
> |
} |
4003 |
> |
{ |
4004 |
> |
BossTask::job_iterator * resultptr; |
4005 |
> |
resultptr = new BossTask::job_iterator((BossTask::job_iterator &) result); |
4006 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossTask__job_iterator, 1); |
4007 |
> |
} |
4008 |
> |
return resultobj; |
4009 |
> |
fail: |
4010 |
> |
return NULL; |
4011 |
> |
} |
4012 |
> |
|
4013 |
> |
|
4014 |
> |
static PyObject *_wrap_BossTask_job_end(PyObject *self, PyObject *args) { |
4015 |
> |
PyObject *resultobj; |
4016 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4017 |
> |
BossTask::job_iterator result; |
4018 |
> |
PyObject * obj0 = 0 ; |
4019 |
> |
|
4020 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_job_end",&obj0)) goto fail; |
4021 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4022 |
> |
{ |
4023 |
> |
try { |
4024 |
> |
result = ((BossTask const *)arg1)->job_end(); |
4025 |
> |
|
4026 |
> |
}catch (const BossSchedFailure & e) { |
4027 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4028 |
> |
return NULL; |
4029 |
> |
}catch (const std::exception& e) { |
4030 |
> |
PyErr_SetString ( BossError, e.what() ); |
4031 |
> |
return NULL; |
4032 |
> |
} |
4033 |
> |
} |
4034 |
> |
{ |
4035 |
> |
BossTask::job_iterator * resultptr; |
4036 |
> |
resultptr = new BossTask::job_iterator((BossTask::job_iterator &) result); |
4037 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossTask__job_iterator, 1); |
4038 |
> |
} |
4039 |
> |
return resultobj; |
4040 |
> |
fail: |
4041 |
> |
return NULL; |
4042 |
> |
} |
4043 |
> |
|
4044 |
> |
|
4045 |
> |
static PyObject *_wrap_BossTask_queryJobPrograms(PyObject *self, PyObject *args) { |
4046 |
> |
PyObject *resultobj; |
4047 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4048 |
> |
BossJob *arg2 = (BossJob *) 0 ; |
4049 |
> |
SwigValueWrapper< std::vector<std::pair<BossProgram,BossProgramExec > > > result; |
4050 |
|
PyObject * obj0 = 0 ; |
4051 |
|
PyObject * obj1 = 0 ; |
4052 |
|
|
4053 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_showCHTools",&obj0,&obj1)) goto fail; |
4054 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4055 |
< |
if (obj1) { |
4056 |
< |
{ |
4057 |
< |
if (PyString_Check(obj1)) |
4058 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
4059 |
< |
else |
4053 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_queryJobPrograms",&obj0,&obj1)) goto fail; |
4054 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4055 |
> |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4056 |
> |
{ |
4057 |
> |
try { |
4058 |
> |
result = ((BossTask const *)arg1)->queryJobPrograms((BossJob const *)arg2); |
4059 |
> |
|
4060 |
> |
}catch (const BossSchedFailure & e) { |
4061 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4062 |
> |
return NULL; |
4063 |
> |
}catch (const std::exception& e) { |
4064 |
> |
PyErr_SetString ( BossError, e.what() ); |
4065 |
> |
return NULL; |
4066 |
> |
} |
4067 |
> |
} |
4068 |
> |
{ |
4069 |
> |
std::vector<std::pair<BossProgram,BossProgramExec > > * resultptr; |
4070 |
> |
resultptr = new std::vector<std::pair<BossProgram,BossProgramExec > >((std::vector<std::pair<BossProgram,BossProgramExec > > &) result); |
4071 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t, 1); |
4072 |
> |
} |
4073 |
> |
return resultobj; |
4074 |
> |
fail: |
4075 |
> |
return NULL; |
4076 |
> |
} |
4077 |
> |
|
4078 |
> |
|
4079 |
> |
static PyObject *_wrap_BossTask_queryProgram(PyObject *self, PyObject *args) { |
4080 |
> |
PyObject *resultobj; |
4081 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4082 |
> |
BossJob *arg2 = (BossJob *) 0 ; |
4083 |
> |
std::string *arg3 = 0 ; |
4084 |
> |
BossProgram result; |
4085 |
> |
std::string temp3 ; |
4086 |
> |
PyObject * obj0 = 0 ; |
4087 |
> |
PyObject * obj1 = 0 ; |
4088 |
> |
PyObject * obj2 = 0 ; |
4089 |
> |
|
4090 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_queryProgram",&obj0,&obj1,&obj2)) goto fail; |
4091 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4092 |
> |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4093 |
> |
{ |
4094 |
> |
if (PyString_Check(obj2)) { |
4095 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
4096 |
> |
arg3 = &temp3; |
4097 |
> |
}else { |
4098 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
4099 |
|
} |
4100 |
|
} |
4101 |
< |
result = (arg1)->showCHTools(arg2); |
4101 |
> |
{ |
4102 |
> |
try { |
4103 |
> |
result = ((BossTask const *)arg1)->queryProgram((BossJob const *)arg2,(std::string const &)*arg3); |
4104 |
> |
|
4105 |
> |
}catch (const BossSchedFailure & e) { |
4106 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4107 |
> |
return NULL; |
4108 |
> |
}catch (const std::exception& e) { |
4109 |
> |
PyErr_SetString ( BossError, e.what() ); |
4110 |
> |
return NULL; |
4111 |
> |
} |
4112 |
> |
} |
4113 |
> |
{ |
4114 |
> |
BossProgram * resultptr; |
4115 |
> |
resultptr = new BossProgram((BossProgram &) result); |
4116 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossProgram, 1); |
4117 |
> |
} |
4118 |
> |
return resultobj; |
4119 |
> |
fail: |
4120 |
> |
return NULL; |
4121 |
> |
} |
4122 |
> |
|
4123 |
> |
|
4124 |
> |
static PyObject *_wrap_BossTask_queryProgramExec(PyObject *self, PyObject *args) { |
4125 |
> |
PyObject *resultobj; |
4126 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4127 |
> |
BossJob *arg2 = (BossJob *) 0 ; |
4128 |
> |
std::string *arg3 = 0 ; |
4129 |
> |
BossProgramExec result; |
4130 |
> |
std::string temp3 ; |
4131 |
> |
PyObject * obj0 = 0 ; |
4132 |
> |
PyObject * obj1 = 0 ; |
4133 |
> |
PyObject * obj2 = 0 ; |
4134 |
|
|
4135 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_queryProgramExec",&obj0,&obj1,&obj2)) goto fail; |
4136 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4137 |
+ |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4138 |
|
{ |
4139 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
4139 |
> |
if (PyString_Check(obj2)) { |
4140 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
4141 |
> |
arg3 = &temp3; |
4142 |
> |
}else { |
4143 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
4144 |
> |
} |
4145 |
> |
} |
4146 |
> |
{ |
4147 |
> |
try { |
4148 |
> |
result = ((BossTask const *)arg1)->queryProgramExec((BossJob const *)arg2,(std::string const &)*arg3); |
4149 |
> |
|
4150 |
> |
}catch (const BossSchedFailure & e) { |
4151 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4152 |
> |
return NULL; |
4153 |
> |
}catch (const std::exception& e) { |
4154 |
> |
PyErr_SetString ( BossError, e.what() ); |
4155 |
> |
return NULL; |
4156 |
> |
} |
4157 |
> |
} |
4158 |
> |
{ |
4159 |
> |
BossProgramExec * resultptr; |
4160 |
> |
resultptr = new BossProgramExec((BossProgramExec &) result); |
4161 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossProgramExec, 1); |
4162 |
|
} |
4163 |
|
return resultobj; |
4164 |
|
fail: |
4166 |
|
} |
4167 |
|
|
4168 |
|
|
4169 |
< |
static PyObject *_wrap_BossUserSession_showConfig(PyObject *self, PyObject *args) { |
4169 |
> |
static PyObject *_wrap_new_BossTask__SWIG_0(PyObject *self, PyObject *args) { |
4170 |
|
PyObject *resultobj; |
4171 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
4172 |
< |
std::string arg2 = (std::string) "NONE" ; |
4173 |
< |
std::string result; |
4171 |
> |
BossDatabase *arg1 = (BossDatabase *) 0 ; |
4172 |
> |
BossTask *result; |
4173 |
> |
PyObject * obj0 = 0 ; |
4174 |
> |
|
4175 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:new_BossTask",&obj0)) goto fail; |
4176 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4177 |
> |
{ |
4178 |
> |
try { |
4179 |
> |
result = (BossTask *)new BossTask(arg1); |
4180 |
> |
|
4181 |
> |
}catch (const BossSchedFailure & e) { |
4182 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4183 |
> |
return NULL; |
4184 |
> |
}catch (const std::exception& e) { |
4185 |
> |
PyErr_SetString ( BossError, e.what() ); |
4186 |
> |
return NULL; |
4187 |
> |
} |
4188 |
> |
} |
4189 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1); |
4190 |
> |
return resultobj; |
4191 |
> |
fail: |
4192 |
> |
return NULL; |
4193 |
> |
} |
4194 |
> |
|
4195 |
> |
|
4196 |
> |
static PyObject *_wrap_new_BossTask__SWIG_1(PyObject *self, PyObject *args) { |
4197 |
> |
PyObject *resultobj; |
4198 |
> |
BossDatabase *arg1 = (BossDatabase *) 0 ; |
4199 |
> |
std::string *arg2 = 0 ; |
4200 |
> |
BossTask *result; |
4201 |
> |
std::string temp2 ; |
4202 |
|
PyObject * obj0 = 0 ; |
4203 |
|
PyObject * obj1 = 0 ; |
4204 |
|
|
4205 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_showConfig",&obj0,&obj1)) goto fail; |
4206 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4207 |
< |
if (obj1) { |
4205 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:new_BossTask",&obj0,&obj1)) goto fail; |
4206 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4207 |
> |
{ |
4208 |
> |
if (PyString_Check(obj1)) { |
4209 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
4210 |
> |
arg2 = &temp2; |
4211 |
> |
}else { |
4212 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
4213 |
> |
} |
4214 |
> |
} |
4215 |
> |
{ |
4216 |
> |
try { |
4217 |
> |
result = (BossTask *)new BossTask(arg1,(std::string const &)*arg2); |
4218 |
> |
|
4219 |
> |
}catch (const BossSchedFailure & e) { |
4220 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4221 |
> |
return NULL; |
4222 |
> |
}catch (const std::exception& e) { |
4223 |
> |
PyErr_SetString ( BossError, e.what() ); |
4224 |
> |
return NULL; |
4225 |
> |
} |
4226 |
> |
} |
4227 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1); |
4228 |
> |
return resultobj; |
4229 |
> |
fail: |
4230 |
> |
return NULL; |
4231 |
> |
} |
4232 |
> |
|
4233 |
> |
|
4234 |
> |
static PyObject *_wrap_delete_BossTask(PyObject *self, PyObject *args) { |
4235 |
> |
PyObject *resultobj; |
4236 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4237 |
> |
PyObject * obj0 = 0 ; |
4238 |
> |
|
4239 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTask",&obj0)) goto fail; |
4240 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4241 |
> |
{ |
4242 |
> |
try { |
4243 |
> |
delete arg1; |
4244 |
> |
|
4245 |
> |
}catch (const BossSchedFailure & e) { |
4246 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4247 |
> |
return NULL; |
4248 |
> |
}catch (const std::exception& e) { |
4249 |
> |
PyErr_SetString ( BossError, e.what() ); |
4250 |
> |
return NULL; |
4251 |
> |
} |
4252 |
> |
} |
4253 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
4254 |
> |
return resultobj; |
4255 |
> |
fail: |
4256 |
> |
return NULL; |
4257 |
> |
} |
4258 |
> |
|
4259 |
> |
|
4260 |
> |
static PyObject *_wrap_new_BossTask__SWIG_2(PyObject *self, PyObject *args) { |
4261 |
> |
PyObject *resultobj; |
4262 |
> |
BossTask *arg1 = 0 ; |
4263 |
> |
BossTask *result; |
4264 |
> |
PyObject * obj0 = 0 ; |
4265 |
> |
|
4266 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:new_BossTask",&obj0)) goto fail; |
4267 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4268 |
> |
if (arg1 == NULL) { |
4269 |
> |
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
4270 |
> |
} |
4271 |
> |
{ |
4272 |
> |
try { |
4273 |
> |
result = (BossTask *)new BossTask((BossTask const &)*arg1); |
4274 |
> |
|
4275 |
> |
}catch (const BossSchedFailure & e) { |
4276 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4277 |
> |
return NULL; |
4278 |
> |
}catch (const std::exception& e) { |
4279 |
> |
PyErr_SetString ( BossError, e.what() ); |
4280 |
> |
return NULL; |
4281 |
> |
} |
4282 |
> |
} |
4283 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1); |
4284 |
> |
return resultobj; |
4285 |
> |
fail: |
4286 |
> |
return NULL; |
4287 |
> |
} |
4288 |
> |
|
4289 |
> |
|
4290 |
> |
static PyObject *_wrap_new_BossTask(PyObject *self, PyObject *args) { |
4291 |
> |
int argc; |
4292 |
> |
PyObject *argv[3]; |
4293 |
> |
int ii; |
4294 |
> |
|
4295 |
> |
argc = PyObject_Length(args); |
4296 |
> |
for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
4297 |
> |
argv[ii] = PyTuple_GetItem(args,ii); |
4298 |
> |
} |
4299 |
> |
if (argc == 1) { |
4300 |
> |
int _v; |
4301 |
|
{ |
4302 |
< |
if (PyString_Check(obj1)) |
4303 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
4304 |
< |
else |
4302 |
> |
void *ptr; |
4303 |
> |
if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossDatabase, 0) == -1) { |
4304 |
> |
_v = 0; |
4305 |
> |
PyErr_Clear(); |
4306 |
> |
}else { |
4307 |
> |
_v = 1; |
4308 |
> |
} |
4309 |
> |
} |
4310 |
> |
if (_v) { |
4311 |
> |
return _wrap_new_BossTask__SWIG_0(self,args); |
4312 |
> |
} |
4313 |
> |
} |
4314 |
> |
if (argc == 1) { |
4315 |
> |
int _v; |
4316 |
> |
{ |
4317 |
> |
void *ptr; |
4318 |
> |
if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) { |
4319 |
> |
_v = 0; |
4320 |
> |
PyErr_Clear(); |
4321 |
> |
}else { |
4322 |
> |
_v = 1; |
4323 |
> |
} |
4324 |
> |
} |
4325 |
> |
if (_v) { |
4326 |
> |
return _wrap_new_BossTask__SWIG_2(self,args); |
4327 |
> |
} |
4328 |
> |
} |
4329 |
> |
if (argc == 2) { |
4330 |
> |
int _v; |
4331 |
> |
{ |
4332 |
> |
void *ptr; |
4333 |
> |
if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossDatabase, 0) == -1) { |
4334 |
> |
_v = 0; |
4335 |
> |
PyErr_Clear(); |
4336 |
> |
}else { |
4337 |
> |
_v = 1; |
4338 |
> |
} |
4339 |
> |
} |
4340 |
> |
if (_v) { |
4341 |
> |
{ |
4342 |
> |
_v = PyString_Check(argv[1]) ? 1 : 0; |
4343 |
> |
} |
4344 |
> |
if (_v) { |
4345 |
> |
return _wrap_new_BossTask__SWIG_1(self,args); |
4346 |
> |
} |
4347 |
> |
} |
4348 |
> |
} |
4349 |
> |
|
4350 |
> |
PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BossTask'"); |
4351 |
> |
return NULL; |
4352 |
> |
} |
4353 |
> |
|
4354 |
> |
|
4355 |
> |
static PyObject *_wrap_BossTask_id(PyObject *self, PyObject *args) { |
4356 |
> |
PyObject *resultobj; |
4357 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4358 |
> |
std::string *result; |
4359 |
> |
PyObject * obj0 = 0 ; |
4360 |
> |
|
4361 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_id",&obj0)) goto fail; |
4362 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4363 |
> |
{ |
4364 |
> |
try { |
4365 |
> |
{ |
4366 |
> |
std::string const &_result_ref = ((BossTask const *)arg1)->id(); |
4367 |
> |
result = (std::string *) &_result_ref; |
4368 |
> |
} |
4369 |
> |
|
4370 |
> |
}catch (const BossSchedFailure & e) { |
4371 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4372 |
> |
return NULL; |
4373 |
> |
}catch (const std::exception& e) { |
4374 |
> |
PyErr_SetString ( BossError, e.what() ); |
4375 |
> |
return NULL; |
4376 |
> |
} |
4377 |
> |
} |
4378 |
> |
{ |
4379 |
> |
resultobj = PyString_FromStringAndSize(result->data(),result->size()); |
4380 |
> |
} |
4381 |
> |
return resultobj; |
4382 |
> |
fail: |
4383 |
> |
return NULL; |
4384 |
> |
} |
4385 |
> |
|
4386 |
> |
|
4387 |
> |
static PyObject *_wrap_BossTask_name(PyObject *self, PyObject *args) { |
4388 |
> |
PyObject *resultobj; |
4389 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4390 |
> |
std::string *result; |
4391 |
> |
PyObject * obj0 = 0 ; |
4392 |
> |
|
4393 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_name",&obj0)) goto fail; |
4394 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4395 |
> |
{ |
4396 |
> |
try { |
4397 |
> |
{ |
4398 |
> |
std::string const &_result_ref = ((BossTask const *)arg1)->name(); |
4399 |
> |
result = (std::string *) &_result_ref; |
4400 |
> |
} |
4401 |
> |
|
4402 |
> |
}catch (const BossSchedFailure & e) { |
4403 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4404 |
> |
return NULL; |
4405 |
> |
}catch (const std::exception& e) { |
4406 |
> |
PyErr_SetString ( BossError, e.what() ); |
4407 |
> |
return NULL; |
4408 |
> |
} |
4409 |
> |
} |
4410 |
> |
{ |
4411 |
> |
resultobj = PyString_FromStringAndSize(result->data(),result->size()); |
4412 |
> |
} |
4413 |
> |
return resultobj; |
4414 |
> |
fail: |
4415 |
> |
return NULL; |
4416 |
> |
} |
4417 |
> |
|
4418 |
> |
|
4419 |
> |
static PyObject *_wrap_BossTask_chain(PyObject *self, PyObject *args) { |
4420 |
> |
PyObject *resultobj; |
4421 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4422 |
> |
std::string *arg2 = 0 ; |
4423 |
> |
BossChain result; |
4424 |
> |
std::string temp2 ; |
4425 |
> |
PyObject * obj0 = 0 ; |
4426 |
> |
PyObject * obj1 = 0 ; |
4427 |
> |
|
4428 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_chain",&obj0,&obj1)) goto fail; |
4429 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4430 |
> |
{ |
4431 |
> |
if (PyString_Check(obj1)) { |
4432 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
4433 |
> |
arg2 = &temp2; |
4434 |
> |
}else { |
4435 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
4436 |
|
} |
4437 |
|
} |
4438 |
< |
result = (arg1)->showConfig(arg2); |
4438 |
> |
{ |
4439 |
> |
try { |
4440 |
> |
result = ((BossTask const *)arg1)->chain((std::string const &)*arg2); |
4441 |
> |
|
4442 |
> |
}catch (const BossSchedFailure & e) { |
4443 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4444 |
> |
return NULL; |
4445 |
> |
}catch (const std::exception& e) { |
4446 |
> |
PyErr_SetString ( BossError, e.what() ); |
4447 |
> |
return NULL; |
4448 |
> |
} |
4449 |
> |
} |
4450 |
> |
{ |
4451 |
> |
BossChain * resultptr; |
4452 |
> |
resultptr = new BossChain((BossChain &) result); |
4453 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossChain, 1); |
4454 |
> |
} |
4455 |
> |
return resultobj; |
4456 |
> |
fail: |
4457 |
> |
return NULL; |
4458 |
> |
} |
4459 |
> |
|
4460 |
> |
|
4461 |
> |
static PyObject *_wrap_BossTask_taskMap(PyObject *self, PyObject *args) { |
4462 |
> |
PyObject *resultobj; |
4463 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4464 |
> |
std::map<std::string,std::string > result; |
4465 |
> |
PyObject * obj0 = 0 ; |
4466 |
|
|
4467 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_taskMap",&obj0)) goto fail; |
4468 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4469 |
|
{ |
4470 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
4470 |
> |
try { |
4471 |
> |
result = ((BossTask const *)arg1)->taskMap(); |
4472 |
> |
|
4473 |
> |
}catch (const BossSchedFailure & e) { |
4474 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4475 |
> |
return NULL; |
4476 |
> |
}catch (const std::exception& e) { |
4477 |
> |
PyErr_SetString ( BossError, e.what() ); |
4478 |
> |
return NULL; |
4479 |
> |
} |
4480 |
> |
} |
4481 |
> |
{ |
4482 |
> |
resultobj = PyDict_New(); |
4483 |
> |
for (std::map<std::string,std::string >::iterator i=(&result)->begin(); i!=(&result)->end(); ++i) { |
4484 |
> |
PyDict_SetItem(resultobj, |
4485 |
> |
SwigString_FromString(i->first), |
4486 |
> |
SwigString_FromString(i->second)); |
4487 |
> |
} |
4488 |
> |
} |
4489 |
> |
return resultobj; |
4490 |
> |
fail: |
4491 |
> |
return NULL; |
4492 |
> |
} |
4493 |
> |
|
4494 |
> |
|
4495 |
> |
static PyObject *_wrap_BossTask_jobsMap(PyObject *self, PyObject *args) { |
4496 |
> |
PyObject *resultobj; |
4497 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4498 |
> |
SwigValueWrapper< std::map<std::string,std::map<std::string,std::string > > > result; |
4499 |
> |
PyObject * obj0 = 0 ; |
4500 |
> |
|
4501 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsMap",&obj0)) goto fail; |
4502 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4503 |
> |
{ |
4504 |
> |
try { |
4505 |
> |
result = ((BossTask const *)arg1)->jobsMap(); |
4506 |
> |
|
4507 |
> |
}catch (const BossSchedFailure & e) { |
4508 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4509 |
> |
return NULL; |
4510 |
> |
}catch (const std::exception& e) { |
4511 |
> |
PyErr_SetString ( BossError, e.what() ); |
4512 |
> |
return NULL; |
4513 |
> |
} |
4514 |
> |
} |
4515 |
> |
{ |
4516 |
> |
std::map<std::string,std::map<std::string,std::string > > * resultptr; |
4517 |
> |
resultptr = new std::map<std::string,std::map<std::string,std::string > >((std::map<std::string,std::map<std::string,std::string > > &) result); |
4518 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, 1); |
4519 |
|
} |
4520 |
|
return resultobj; |
4521 |
|
fail: |
4523 |
|
} |
4524 |
|
|
4525 |
|
|
4526 |
< |
static PyObject *_wrap_BossUserSession_showProgramTypes(PyObject *self, PyObject *args) { |
4526 |
> |
static PyObject *_wrap_BossTask_jobMap__SWIG_0(PyObject *self, PyObject *args) { |
4527 |
|
PyObject *resultobj; |
4528 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
4529 |
< |
std::string arg2 = (std::string) "NONE" ; |
4528 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4529 |
> |
SwigValueWrapper< std::vector<BossJob * >::const_iterator > arg2 ; |
4530 |
> |
std::map<std::string,std::string > *arg3 = 0 ; |
4531 |
|
std::string result; |
4532 |
+ |
std::vector<BossJob * >::const_iterator *argp2 ; |
4533 |
|
PyObject * obj0 = 0 ; |
4534 |
|
PyObject * obj1 = 0 ; |
4535 |
+ |
PyObject * obj2 = 0 ; |
4536 |
|
|
4537 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_showProgramTypes",&obj0,&obj1)) goto fail; |
4538 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4539 |
< |
if (obj1) { |
4537 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_jobMap",&obj0,&obj1,&obj2)) goto fail; |
4538 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4539 |
> |
if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; |
4540 |
> |
arg2 = *argp2; |
4541 |
> |
if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4542 |
> |
if (arg3 == NULL) { |
4543 |
> |
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
4544 |
> |
} |
4545 |
> |
{ |
4546 |
> |
try { |
4547 |
> |
result = ((BossTask const *)arg1)->jobMap(arg2,*arg3); |
4548 |
> |
|
4549 |
> |
}catch (const BossSchedFailure & e) { |
4550 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4551 |
> |
return NULL; |
4552 |
> |
}catch (const std::exception& e) { |
4553 |
> |
PyErr_SetString ( BossError, e.what() ); |
4554 |
> |
return NULL; |
4555 |
> |
} |
4556 |
> |
} |
4557 |
> |
{ |
4558 |
> |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
4559 |
> |
} |
4560 |
> |
return resultobj; |
4561 |
> |
fail: |
4562 |
> |
return NULL; |
4563 |
> |
} |
4564 |
> |
|
4565 |
> |
|
4566 |
> |
static PyObject *_wrap_BossTask_jobMap__SWIG_1(PyObject *self, PyObject *args) { |
4567 |
> |
PyObject *resultobj; |
4568 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4569 |
> |
unsigned int arg2 ; |
4570 |
> |
std::map<std::string,std::string > result; |
4571 |
> |
PyObject * obj0 = 0 ; |
4572 |
> |
PyObject * obj1 = 0 ; |
4573 |
> |
|
4574 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobMap",&obj0,&obj1)) goto fail; |
4575 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4576 |
> |
arg2 = (unsigned int) PyInt_AsLong(obj1); |
4577 |
> |
if (PyErr_Occurred()) SWIG_fail; |
4578 |
> |
{ |
4579 |
> |
try { |
4580 |
> |
result = ((BossTask const *)arg1)->jobMap(arg2); |
4581 |
> |
|
4582 |
> |
}catch (const BossSchedFailure & e) { |
4583 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4584 |
> |
return NULL; |
4585 |
> |
}catch (const std::exception& e) { |
4586 |
> |
PyErr_SetString ( BossError, e.what() ); |
4587 |
> |
return NULL; |
4588 |
> |
} |
4589 |
> |
} |
4590 |
> |
{ |
4591 |
> |
resultobj = PyDict_New(); |
4592 |
> |
for (std::map<std::string,std::string >::iterator i=(&result)->begin(); i!=(&result)->end(); ++i) { |
4593 |
> |
PyDict_SetItem(resultobj, |
4594 |
> |
SwigString_FromString(i->first), |
4595 |
> |
SwigString_FromString(i->second)); |
4596 |
> |
} |
4597 |
> |
} |
4598 |
> |
return resultobj; |
4599 |
> |
fail: |
4600 |
> |
return NULL; |
4601 |
> |
} |
4602 |
> |
|
4603 |
> |
|
4604 |
> |
static PyObject *_wrap_BossTask_jobMap(PyObject *self, PyObject *args) { |
4605 |
> |
int argc; |
4606 |
> |
PyObject *argv[4]; |
4607 |
> |
int ii; |
4608 |
> |
|
4609 |
> |
argc = PyObject_Length(args); |
4610 |
> |
for (ii = 0; (ii < argc) && (ii < 3); ii++) { |
4611 |
> |
argv[ii] = PyTuple_GetItem(args,ii); |
4612 |
> |
} |
4613 |
> |
if (argc == 2) { |
4614 |
> |
int _v; |
4615 |
|
{ |
4616 |
< |
if (PyString_Check(obj1)) |
4617 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
4618 |
< |
else |
4616 |
> |
void *ptr; |
4617 |
> |
if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) { |
4618 |
> |
_v = 0; |
4619 |
> |
PyErr_Clear(); |
4620 |
> |
}else { |
4621 |
> |
_v = 1; |
4622 |
> |
} |
4623 |
> |
} |
4624 |
> |
if (_v) { |
4625 |
> |
{ |
4626 |
> |
_v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; |
4627 |
> |
} |
4628 |
> |
if (_v) { |
4629 |
> |
return _wrap_BossTask_jobMap__SWIG_1(self,args); |
4630 |
> |
} |
4631 |
> |
} |
4632 |
> |
} |
4633 |
> |
if (argc == 3) { |
4634 |
> |
int _v; |
4635 |
> |
{ |
4636 |
> |
void *ptr; |
4637 |
> |
if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) { |
4638 |
> |
_v = 0; |
4639 |
> |
PyErr_Clear(); |
4640 |
> |
}else { |
4641 |
> |
_v = 1; |
4642 |
> |
} |
4643 |
> |
} |
4644 |
> |
if (_v) { |
4645 |
> |
{ |
4646 |
> |
void *ptr; |
4647 |
> |
if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator, 0) == -1) { |
4648 |
> |
_v = 0; |
4649 |
> |
PyErr_Clear(); |
4650 |
> |
}else { |
4651 |
> |
_v = 1; |
4652 |
> |
} |
4653 |
> |
} |
4654 |
> |
if (_v) { |
4655 |
> |
{ |
4656 |
> |
void *ptr; |
4657 |
> |
if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__mapTstd__string_std__string_t, 0) == -1) { |
4658 |
> |
_v = 0; |
4659 |
> |
PyErr_Clear(); |
4660 |
> |
}else { |
4661 |
> |
_v = 1; |
4662 |
> |
} |
4663 |
> |
} |
4664 |
> |
if (_v) { |
4665 |
> |
return _wrap_BossTask_jobMap__SWIG_0(self,args); |
4666 |
> |
} |
4667 |
> |
} |
4668 |
> |
} |
4669 |
> |
} |
4670 |
> |
|
4671 |
> |
PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossTask_jobMap'"); |
4672 |
> |
return NULL; |
4673 |
> |
} |
4674 |
> |
|
4675 |
> |
|
4676 |
> |
static PyObject *_wrap_BossTask_programsMap(PyObject *self, PyObject *args) { |
4677 |
> |
PyObject *resultobj; |
4678 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4679 |
> |
BossJob *arg2 = (BossJob *) 0 ; |
4680 |
> |
SwigValueWrapper< std::map<std::string,std::map<std::string,std::string > > > result; |
4681 |
> |
PyObject * obj0 = 0 ; |
4682 |
> |
PyObject * obj1 = 0 ; |
4683 |
> |
|
4684 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_programsMap",&obj0,&obj1)) goto fail; |
4685 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4686 |
> |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4687 |
> |
{ |
4688 |
> |
try { |
4689 |
> |
result = ((BossTask const *)arg1)->programsMap((BossJob const *)arg2); |
4690 |
> |
|
4691 |
> |
}catch (const BossSchedFailure & e) { |
4692 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4693 |
> |
return NULL; |
4694 |
> |
}catch (const std::exception& e) { |
4695 |
> |
PyErr_SetString ( BossError, e.what() ); |
4696 |
> |
return NULL; |
4697 |
> |
} |
4698 |
> |
} |
4699 |
> |
{ |
4700 |
> |
std::map<std::string,std::map<std::string,std::string > > * resultptr; |
4701 |
> |
resultptr = new std::map<std::string,std::map<std::string,std::string > >((std::map<std::string,std::map<std::string,std::string > > &) result); |
4702 |
> |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, 1); |
4703 |
> |
} |
4704 |
> |
return resultobj; |
4705 |
> |
fail: |
4706 |
> |
return NULL; |
4707 |
> |
} |
4708 |
> |
|
4709 |
> |
|
4710 |
> |
static PyObject *_wrap_BossTask_declare__SWIG_0(PyObject *self, PyObject *args) { |
4711 |
> |
PyObject *resultobj; |
4712 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4713 |
> |
std::string *arg2 = 0 ; |
4714 |
> |
std::string const &arg3_defvalue = "" ; |
4715 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
4716 |
> |
std::string temp2 ; |
4717 |
> |
std::string temp3 ; |
4718 |
> |
PyObject * obj0 = 0 ; |
4719 |
> |
PyObject * obj1 = 0 ; |
4720 |
> |
PyObject * obj2 = 0 ; |
4721 |
> |
|
4722 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_declare",&obj0,&obj1,&obj2)) goto fail; |
4723 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4724 |
> |
{ |
4725 |
> |
if (PyString_Check(obj1)) { |
4726 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
4727 |
> |
arg2 = &temp2; |
4728 |
> |
}else { |
4729 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
4730 |
|
} |
4731 |
|
} |
4732 |
< |
result = (arg1)->showProgramTypes(arg2); |
4732 |
> |
if (obj2) { |
4733 |
> |
{ |
4734 |
> |
if (PyString_Check(obj2)) { |
4735 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
4736 |
> |
arg3 = &temp3; |
4737 |
> |
}else { |
4738 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
4739 |
> |
} |
4740 |
> |
} |
4741 |
> |
} |
4742 |
> |
{ |
4743 |
> |
try { |
4744 |
> |
(arg1)->declare((std::string const &)*arg2,(std::string const &)*arg3); |
4745 |
> |
|
4746 |
> |
}catch (const BossSchedFailure & e) { |
4747 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4748 |
> |
return NULL; |
4749 |
> |
}catch (const std::exception& e) { |
4750 |
> |
PyErr_SetString ( BossError, e.what() ); |
4751 |
> |
return NULL; |
4752 |
> |
} |
4753 |
> |
} |
4754 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
4755 |
> |
return resultobj; |
4756 |
> |
fail: |
4757 |
> |
return NULL; |
4758 |
> |
} |
4759 |
> |
|
4760 |
> |
|
4761 |
> |
static PyObject *_wrap_BossTask_declare__SWIG_1(PyObject *self, PyObject *args) { |
4762 |
> |
PyObject *resultobj; |
4763 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4764 |
> |
XMLDoc *arg2 = (XMLDoc *) 0 ; |
4765 |
> |
std::string const &arg3_defvalue = "" ; |
4766 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
4767 |
> |
std::string temp3 ; |
4768 |
> |
PyObject * obj0 = 0 ; |
4769 |
> |
PyObject * obj1 = 0 ; |
4770 |
> |
PyObject * obj2 = 0 ; |
4771 |
|
|
4772 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_declare",&obj0,&obj1,&obj2)) goto fail; |
4773 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4774 |
+ |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMLDoc,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4775 |
+ |
if (obj2) { |
4776 |
+ |
{ |
4777 |
+ |
if (PyString_Check(obj2)) { |
4778 |
+ |
temp3 = std::string(PyString_AsString(obj2)); |
4779 |
+ |
arg3 = &temp3; |
4780 |
+ |
}else { |
4781 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4782 |
+ |
} |
4783 |
+ |
} |
4784 |
+ |
} |
4785 |
|
{ |
4786 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
4786 |
> |
try { |
4787 |
> |
(arg1)->declare(arg2,(std::string const &)*arg3); |
4788 |
> |
|
4789 |
> |
}catch (const BossSchedFailure & e) { |
4790 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4791 |
> |
return NULL; |
4792 |
> |
}catch (const std::exception& e) { |
4793 |
> |
PyErr_SetString ( BossError, e.what() ); |
4794 |
> |
return NULL; |
4795 |
> |
} |
4796 |
> |
} |
4797 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
4798 |
> |
return resultobj; |
4799 |
> |
fail: |
4800 |
> |
return NULL; |
4801 |
> |
} |
4802 |
> |
|
4803 |
> |
|
4804 |
> |
static PyObject *_wrap_BossTask_declare(PyObject *self, PyObject *args) { |
4805 |
> |
int argc; |
4806 |
> |
PyObject *argv[4]; |
4807 |
> |
int ii; |
4808 |
> |
|
4809 |
> |
argc = PyObject_Length(args); |
4810 |
> |
for (ii = 0; (ii < argc) && (ii < 3); ii++) { |
4811 |
> |
argv[ii] = PyTuple_GetItem(args,ii); |
4812 |
> |
} |
4813 |
> |
if ((argc >= 2) && (argc <= 3)) { |
4814 |
> |
int _v; |
4815 |
> |
{ |
4816 |
> |
void *ptr; |
4817 |
> |
if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) { |
4818 |
> |
_v = 0; |
4819 |
> |
PyErr_Clear(); |
4820 |
> |
}else { |
4821 |
> |
_v = 1; |
4822 |
> |
} |
4823 |
> |
} |
4824 |
> |
if (_v) { |
4825 |
> |
{ |
4826 |
> |
void *ptr; |
4827 |
> |
if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_XMLDoc, 0) == -1) { |
4828 |
> |
_v = 0; |
4829 |
> |
PyErr_Clear(); |
4830 |
> |
}else { |
4831 |
> |
_v = 1; |
4832 |
> |
} |
4833 |
> |
} |
4834 |
> |
if (_v) { |
4835 |
> |
if (argc <= 2) { |
4836 |
> |
return _wrap_BossTask_declare__SWIG_1(self,args); |
4837 |
> |
} |
4838 |
> |
{ |
4839 |
> |
_v = PyString_Check(argv[2]) ? 1 : 0; |
4840 |
> |
} |
4841 |
> |
if (_v) { |
4842 |
> |
return _wrap_BossTask_declare__SWIG_1(self,args); |
4843 |
> |
} |
4844 |
> |
} |
4845 |
> |
} |
4846 |
> |
} |
4847 |
> |
if ((argc >= 2) && (argc <= 3)) { |
4848 |
> |
int _v; |
4849 |
> |
{ |
4850 |
> |
void *ptr; |
4851 |
> |
if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) { |
4852 |
> |
_v = 0; |
4853 |
> |
PyErr_Clear(); |
4854 |
> |
}else { |
4855 |
> |
_v = 1; |
4856 |
> |
} |
4857 |
> |
} |
4858 |
> |
if (_v) { |
4859 |
> |
{ |
4860 |
> |
_v = PyString_Check(argv[1]) ? 1 : 0; |
4861 |
> |
} |
4862 |
> |
if (_v) { |
4863 |
> |
if (argc <= 2) { |
4864 |
> |
return _wrap_BossTask_declare__SWIG_0(self,args); |
4865 |
> |
} |
4866 |
> |
{ |
4867 |
> |
_v = PyString_Check(argv[2]) ? 1 : 0; |
4868 |
> |
} |
4869 |
> |
if (_v) { |
4870 |
> |
return _wrap_BossTask_declare__SWIG_0(self,args); |
4871 |
> |
} |
4872 |
> |
} |
4873 |
> |
} |
4874 |
|
} |
4875 |
+ |
|
4876 |
+ |
PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossTask_declare'"); |
4877 |
+ |
return NULL; |
4878 |
+ |
} |
4879 |
+ |
|
4880 |
+ |
|
4881 |
+ |
static PyObject *_wrap_BossTask_remove(PyObject *self, PyObject *args) { |
4882 |
+ |
PyObject *resultobj; |
4883 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
4884 |
+ |
PyObject * obj0 = 0 ; |
4885 |
+ |
|
4886 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_remove",&obj0)) goto fail; |
4887 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4888 |
+ |
{ |
4889 |
+ |
try { |
4890 |
+ |
(arg1)->remove(); |
4891 |
+ |
|
4892 |
+ |
}catch (const BossSchedFailure & e) { |
4893 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
4894 |
+ |
return NULL; |
4895 |
+ |
}catch (const std::exception& e) { |
4896 |
+ |
PyErr_SetString ( BossError, e.what() ); |
4897 |
+ |
return NULL; |
4898 |
+ |
} |
4899 |
+ |
} |
4900 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
4901 |
|
return resultobj; |
4902 |
|
fail: |
4903 |
|
return NULL; |
4904 |
|
} |
4905 |
|
|
4906 |
|
|
4907 |
< |
static PyObject *_wrap_BossUserSession_showRTMon(PyObject *self, PyObject *args) { |
4907 |
> |
static PyObject *_wrap_BossTask_archive(PyObject *self, PyObject *args) { |
4908 |
|
PyObject *resultobj; |
4909 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
4910 |
< |
std::string arg2 = (std::string) "NONE" ; |
4911 |
< |
std::string result; |
4909 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4910 |
> |
std::string const &arg2_defvalue = "all" ; |
4911 |
> |
std::string *arg2 = (std::string *) &arg2_defvalue ; |
4912 |
> |
std::string temp2 ; |
4913 |
|
PyObject * obj0 = 0 ; |
4914 |
|
PyObject * obj1 = 0 ; |
4915 |
|
|
4916 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_showRTMon",&obj0,&obj1)) goto fail; |
4917 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4916 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossTask_archive",&obj0,&obj1)) goto fail; |
4917 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4918 |
|
if (obj1) { |
4919 |
|
{ |
4920 |
< |
if (PyString_Check(obj1)) |
4921 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
4922 |
< |
else |
4923 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
4920 |
> |
if (PyString_Check(obj1)) { |
4921 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
4922 |
> |
arg2 = &temp2; |
4923 |
> |
}else { |
4924 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
4925 |
> |
} |
4926 |
|
} |
4927 |
|
} |
1291 |
– |
result = (arg1)->showRTMon(arg2); |
1292 |
– |
|
4928 |
|
{ |
4929 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
4929 |
> |
try { |
4930 |
> |
(arg1)->archive((std::string const &)*arg2); |
4931 |
> |
|
4932 |
> |
}catch (const BossSchedFailure & e) { |
4933 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
4934 |
> |
return NULL; |
4935 |
> |
}catch (const std::exception& e) { |
4936 |
> |
PyErr_SetString ( BossError, e.what() ); |
4937 |
> |
return NULL; |
4938 |
> |
} |
4939 |
|
} |
4940 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
4941 |
|
return resultobj; |
4942 |
|
fail: |
4943 |
|
return NULL; |
4944 |
|
} |
4945 |
|
|
4946 |
|
|
4947 |
< |
static PyObject *_wrap_BossUserSession_showSchedulers(PyObject *self, PyObject *args) { |
4947 |
> |
static PyObject *_wrap_BossTask_submit(PyObject *self, PyObject *args) { |
4948 |
|
PyObject *resultobj; |
4949 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
4950 |
< |
std::string arg2 = (std::string) "NONE" ; |
4951 |
< |
std::string result; |
4949 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
4950 |
> |
std::string const &arg2_defvalue = "all" ; |
4951 |
> |
std::string *arg2 = (std::string *) &arg2_defvalue ; |
4952 |
> |
std::string const &arg3_defvalue = "" ; |
4953 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
4954 |
> |
std::string const &arg4_defvalue = "" ; |
4955 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
4956 |
> |
std::string const &arg5_defvalue = "" ; |
4957 |
> |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
4958 |
> |
std::string const &arg6_defvalue = "" ; |
4959 |
> |
std::string *arg6 = (std::string *) &arg6_defvalue ; |
4960 |
> |
unsigned int arg7 = (unsigned int) 0 ; |
4961 |
> |
bool arg8 = (bool) false ; |
4962 |
> |
int result; |
4963 |
> |
std::string temp2 ; |
4964 |
> |
std::string temp3 ; |
4965 |
> |
std::string temp4 ; |
4966 |
> |
std::string temp5 ; |
4967 |
> |
std::string temp6 ; |
4968 |
|
PyObject * obj0 = 0 ; |
4969 |
|
PyObject * obj1 = 0 ; |
4970 |
+ |
PyObject * obj2 = 0 ; |
4971 |
+ |
PyObject * obj3 = 0 ; |
4972 |
+ |
PyObject * obj4 = 0 ; |
4973 |
+ |
PyObject * obj5 = 0 ; |
4974 |
+ |
PyObject * obj6 = 0 ; |
4975 |
+ |
PyObject * obj7 = 0 ; |
4976 |
|
|
4977 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_showSchedulers",&obj0,&obj1)) goto fail; |
4978 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4977 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OOOOOOO:BossTask_submit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
4978 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4979 |
|
if (obj1) { |
4980 |
|
{ |
4981 |
< |
if (PyString_Check(obj1)) |
4982 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
4983 |
< |
else |
4981 |
> |
if (PyString_Check(obj1)) { |
4982 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
4983 |
> |
arg2 = &temp2; |
4984 |
> |
}else { |
4985 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
4986 |
> |
} |
4987 |
> |
} |
4988 |
> |
} |
4989 |
> |
if (obj2) { |
4990 |
> |
{ |
4991 |
> |
if (PyString_Check(obj2)) { |
4992 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
4993 |
> |
arg3 = &temp3; |
4994 |
> |
}else { |
4995 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
4996 |
> |
} |
4997 |
> |
} |
4998 |
> |
} |
4999 |
> |
if (obj3) { |
5000 |
> |
{ |
5001 |
> |
if (PyString_Check(obj3)) { |
5002 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
5003 |
> |
arg4 = &temp4; |
5004 |
> |
}else { |
5005 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5006 |
> |
} |
5007 |
> |
} |
5008 |
> |
} |
5009 |
> |
if (obj4) { |
5010 |
> |
{ |
5011 |
> |
if (PyString_Check(obj4)) { |
5012 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
5013 |
> |
arg5 = &temp5; |
5014 |
> |
}else { |
5015 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5016 |
> |
} |
5017 |
> |
} |
5018 |
> |
} |
5019 |
> |
if (obj5) { |
5020 |
> |
{ |
5021 |
> |
if (PyString_Check(obj5)) { |
5022 |
> |
temp6 = std::string(PyString_AsString(obj5)); |
5023 |
> |
arg6 = &temp6; |
5024 |
> |
}else { |
5025 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5026 |
> |
} |
5027 |
> |
} |
5028 |
> |
} |
5029 |
> |
if (obj6) { |
5030 |
> |
arg7 = (unsigned int) PyInt_AsLong(obj6); |
5031 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5032 |
> |
} |
5033 |
> |
if (obj7) { |
5034 |
> |
arg8 = PyInt_AsLong(obj7) ? true : false; |
5035 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5036 |
> |
} |
5037 |
> |
{ |
5038 |
> |
try { |
5039 |
> |
result = (int)(arg1)->submit((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7,arg8); |
5040 |
> |
|
5041 |
> |
}catch (const BossSchedFailure & e) { |
5042 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5043 |
> |
return NULL; |
5044 |
> |
}catch (const std::exception& e) { |
5045 |
> |
PyErr_SetString ( BossError, e.what() ); |
5046 |
> |
return NULL; |
5047 |
> |
} |
5048 |
> |
} |
5049 |
> |
resultobj = PyInt_FromLong((long)result); |
5050 |
> |
return resultobj; |
5051 |
> |
fail: |
5052 |
> |
return NULL; |
5053 |
> |
} |
5054 |
> |
|
5055 |
> |
|
5056 |
> |
static PyObject *_wrap_BossTask_reSubmit(PyObject *self, PyObject *args) { |
5057 |
> |
PyObject *resultobj; |
5058 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5059 |
> |
std::string *arg2 = 0 ; |
5060 |
> |
bool arg3 = (bool) false ; |
5061 |
> |
int result; |
5062 |
> |
std::string temp2 ; |
5063 |
> |
PyObject * obj0 = 0 ; |
5064 |
> |
PyObject * obj1 = 0 ; |
5065 |
> |
PyObject * obj2 = 0 ; |
5066 |
> |
|
5067 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_reSubmit",&obj0,&obj1,&obj2)) goto fail; |
5068 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5069 |
> |
{ |
5070 |
> |
if (PyString_Check(obj1)) { |
5071 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
5072 |
> |
arg2 = &temp2; |
5073 |
> |
}else { |
5074 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
5075 |
|
} |
5076 |
|
} |
5077 |
< |
result = (arg1)->showSchedulers(arg2); |
5077 |
> |
if (obj2) { |
5078 |
> |
arg3 = PyInt_AsLong(obj2) ? true : false; |
5079 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5080 |
> |
} |
5081 |
> |
{ |
5082 |
> |
try { |
5083 |
> |
result = (int)(arg1)->reSubmit((std::string const &)*arg2,arg3); |
5084 |
> |
|
5085 |
> |
}catch (const BossSchedFailure & e) { |
5086 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5087 |
> |
return NULL; |
5088 |
> |
}catch (const std::exception& e) { |
5089 |
> |
PyErr_SetString ( BossError, e.what() ); |
5090 |
> |
return NULL; |
5091 |
> |
} |
5092 |
> |
} |
5093 |
> |
resultobj = PyInt_FromLong((long)result); |
5094 |
> |
return resultobj; |
5095 |
> |
fail: |
5096 |
> |
return NULL; |
5097 |
> |
} |
5098 |
> |
|
5099 |
> |
|
5100 |
> |
static PyObject *_wrap_BossTask_kill(PyObject *self, PyObject *args) { |
5101 |
> |
PyObject *resultobj; |
5102 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5103 |
> |
std::string *arg2 = 0 ; |
5104 |
> |
unsigned int arg3 = (unsigned int) 0 ; |
5105 |
> |
bool arg4 = (bool) false ; |
5106 |
> |
int result; |
5107 |
> |
std::string temp2 ; |
5108 |
> |
PyObject * obj0 = 0 ; |
5109 |
> |
PyObject * obj1 = 0 ; |
5110 |
> |
PyObject * obj2 = 0 ; |
5111 |
> |
PyObject * obj3 = 0 ; |
5112 |
|
|
5113 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO|OO:BossTask_kill",&obj0,&obj1,&obj2,&obj3)) goto fail; |
5114 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5115 |
|
{ |
5116 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
5116 |
> |
if (PyString_Check(obj1)) { |
5117 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
5118 |
> |
arg2 = &temp2; |
5119 |
> |
}else { |
5120 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5121 |
> |
} |
5122 |
> |
} |
5123 |
> |
if (obj2) { |
5124 |
> |
arg3 = (unsigned int) PyInt_AsLong(obj2); |
5125 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5126 |
> |
} |
5127 |
> |
if (obj3) { |
5128 |
> |
arg4 = PyInt_AsLong(obj3) ? true : false; |
5129 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5130 |
|
} |
5131 |
+ |
{ |
5132 |
+ |
try { |
5133 |
+ |
result = (int)(arg1)->kill((std::string const &)*arg2,arg3,arg4); |
5134 |
+ |
|
5135 |
+ |
}catch (const BossSchedFailure & e) { |
5136 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
5137 |
+ |
return NULL; |
5138 |
+ |
}catch (const std::exception& e) { |
5139 |
+ |
PyErr_SetString ( BossError, e.what() ); |
5140 |
+ |
return NULL; |
5141 |
+ |
} |
5142 |
+ |
} |
5143 |
+ |
resultobj = PyInt_FromLong((long)result); |
5144 |
|
return resultobj; |
5145 |
|
fail: |
5146 |
|
return NULL; |
5147 |
|
} |
5148 |
|
|
5149 |
|
|
5150 |
< |
static PyObject *_wrap_BossUserSession_submit(PyObject *self, PyObject *args) { |
5150 |
> |
static PyObject *_wrap_BossTask_getOutput(PyObject *self, PyObject *args) { |
5151 |
|
PyObject *resultobj; |
5152 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
5153 |
< |
std::string arg2 = (std::string) "NONE" ; |
5154 |
< |
std::string result; |
5152 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5153 |
> |
std::string const &arg2_defvalue = "all" ; |
5154 |
> |
std::string *arg2 = (std::string *) &arg2_defvalue ; |
5155 |
> |
std::string const &arg3_defvalue = "" ; |
5156 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
5157 |
> |
unsigned int arg4 = (unsigned int) 0 ; |
5158 |
> |
bool arg5 = (bool) false ; |
5159 |
> |
bool arg6 = (bool) false ; |
5160 |
> |
int result; |
5161 |
> |
std::string temp2 ; |
5162 |
> |
std::string temp3 ; |
5163 |
|
PyObject * obj0 = 0 ; |
5164 |
|
PyObject * obj1 = 0 ; |
5165 |
+ |
PyObject * obj2 = 0 ; |
5166 |
+ |
PyObject * obj3 = 0 ; |
5167 |
+ |
PyObject * obj4 = 0 ; |
5168 |
+ |
PyObject * obj5 = 0 ; |
5169 |
|
|
5170 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_submit",&obj0,&obj1)) goto fail; |
5171 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5170 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OOOOO:BossTask_getOutput",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
5171 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5172 |
|
if (obj1) { |
5173 |
|
{ |
5174 |
< |
if (PyString_Check(obj1)) |
5175 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
5174 |
> |
if (PyString_Check(obj1)) { |
5175 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
5176 |
> |
arg2 = &temp2; |
5177 |
> |
}else { |
5178 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5179 |
> |
} |
5180 |
> |
} |
5181 |
> |
} |
5182 |
> |
if (obj2) { |
5183 |
> |
{ |
5184 |
> |
if (PyString_Check(obj2)) { |
5185 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
5186 |
> |
arg3 = &temp3; |
5187 |
> |
}else { |
5188 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5189 |
> |
} |
5190 |
> |
} |
5191 |
> |
} |
5192 |
> |
if (obj3) { |
5193 |
> |
arg4 = (unsigned int) PyInt_AsLong(obj3); |
5194 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5195 |
> |
} |
5196 |
> |
if (obj4) { |
5197 |
> |
arg5 = PyInt_AsLong(obj4) ? true : false; |
5198 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5199 |
> |
} |
5200 |
> |
if (obj5) { |
5201 |
> |
arg6 = PyInt_AsLong(obj5) ? true : false; |
5202 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5203 |
> |
} |
5204 |
> |
{ |
5205 |
> |
try { |
5206 |
> |
result = (int)(arg1)->getOutput((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6); |
5207 |
> |
|
5208 |
> |
}catch (const BossSchedFailure & e) { |
5209 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5210 |
> |
return NULL; |
5211 |
> |
}catch (const std::exception& e) { |
5212 |
> |
PyErr_SetString ( BossError, e.what() ); |
5213 |
> |
return NULL; |
5214 |
> |
} |
5215 |
> |
} |
5216 |
> |
resultobj = PyInt_FromLong((long)result); |
5217 |
> |
return resultobj; |
5218 |
> |
fail: |
5219 |
> |
return NULL; |
5220 |
> |
} |
5221 |
> |
|
5222 |
> |
|
5223 |
> |
static PyObject *_wrap_BossTask_loadByName(PyObject *self, PyObject *args) { |
5224 |
> |
PyObject *resultobj; |
5225 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5226 |
> |
std::string *arg2 = 0 ; |
5227 |
> |
int result; |
5228 |
> |
std::string temp2 ; |
5229 |
> |
PyObject * obj0 = 0 ; |
5230 |
> |
PyObject * obj1 = 0 ; |
5231 |
> |
|
5232 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_loadByName",&obj0,&obj1)) goto fail; |
5233 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5234 |
> |
{ |
5235 |
> |
if (PyString_Check(obj1)) { |
5236 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
5237 |
> |
arg2 = &temp2; |
5238 |
> |
}else { |
5239 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5240 |
> |
} |
5241 |
> |
} |
5242 |
> |
{ |
5243 |
> |
try { |
5244 |
> |
result = (int)(arg1)->loadByName((std::string const &)*arg2); |
5245 |
> |
|
5246 |
> |
}catch (const BossSchedFailure & e) { |
5247 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5248 |
> |
return NULL; |
5249 |
> |
}catch (const std::exception& e) { |
5250 |
> |
PyErr_SetString ( BossError, e.what() ); |
5251 |
> |
return NULL; |
5252 |
> |
} |
5253 |
> |
} |
5254 |
> |
resultobj = PyInt_FromLong((long)result); |
5255 |
> |
return resultobj; |
5256 |
> |
fail: |
5257 |
> |
return NULL; |
5258 |
> |
} |
5259 |
> |
|
5260 |
> |
|
5261 |
> |
static PyObject *_wrap_BossTask_load(PyObject *self, PyObject *args) { |
5262 |
> |
PyObject *resultobj; |
5263 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5264 |
> |
int arg2 = (int) SCHEDULED ; |
5265 |
> |
std::string const &arg3_defvalue = "all" ; |
5266 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
5267 |
> |
std::string const &arg4_defvalue = "" ; |
5268 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
5269 |
> |
std::string arg5 = (std::string) "" ; |
5270 |
> |
std::string arg6 = (std::string) "" ; |
5271 |
> |
std::string arg7 = (std::string) "" ; |
5272 |
> |
std::string arg8 = (std::string) "" ; |
5273 |
> |
int result; |
5274 |
> |
std::string temp3 ; |
5275 |
> |
std::string temp4 ; |
5276 |
> |
PyObject * obj0 = 0 ; |
5277 |
> |
PyObject * obj2 = 0 ; |
5278 |
> |
PyObject * obj3 = 0 ; |
5279 |
> |
PyObject * obj4 = 0 ; |
5280 |
> |
PyObject * obj5 = 0 ; |
5281 |
> |
PyObject * obj6 = 0 ; |
5282 |
> |
PyObject * obj7 = 0 ; |
5283 |
> |
|
5284 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOO:BossTask_load",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
5285 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5286 |
> |
if (obj2) { |
5287 |
> |
{ |
5288 |
> |
if (PyString_Check(obj2)) { |
5289 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
5290 |
> |
arg3 = &temp3; |
5291 |
> |
}else { |
5292 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5293 |
> |
} |
5294 |
> |
} |
5295 |
> |
} |
5296 |
> |
if (obj3) { |
5297 |
> |
{ |
5298 |
> |
if (PyString_Check(obj3)) { |
5299 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
5300 |
> |
arg4 = &temp4; |
5301 |
> |
}else { |
5302 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5303 |
> |
} |
5304 |
> |
} |
5305 |
> |
} |
5306 |
> |
if (obj4) { |
5307 |
> |
{ |
5308 |
> |
if (PyString_Check(obj4)) |
5309 |
> |
arg5 = std::string(PyString_AsString(obj4)); |
5310 |
> |
else |
5311 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5312 |
> |
} |
5313 |
> |
} |
5314 |
> |
if (obj5) { |
5315 |
> |
{ |
5316 |
> |
if (PyString_Check(obj5)) |
5317 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
5318 |
> |
else |
5319 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5320 |
> |
} |
5321 |
> |
} |
5322 |
> |
if (obj6) { |
5323 |
> |
{ |
5324 |
> |
if (PyString_Check(obj6)) |
5325 |
> |
arg7 = std::string(PyString_AsString(obj6)); |
5326 |
> |
else |
5327 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5328 |
> |
} |
5329 |
> |
} |
5330 |
> |
if (obj7) { |
5331 |
> |
{ |
5332 |
> |
if (PyString_Check(obj7)) |
5333 |
> |
arg8 = std::string(PyString_AsString(obj7)); |
5334 |
|
else |
5335 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
5336 |
|
} |
5337 |
|
} |
1349 |
– |
result = (arg1)->submit(arg2); |
1350 |
– |
|
5338 |
|
{ |
5339 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
5339 |
> |
try { |
5340 |
> |
result = (int)(arg1)->load(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8); |
5341 |
> |
|
5342 |
> |
}catch (const BossSchedFailure & e) { |
5343 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5344 |
> |
return NULL; |
5345 |
> |
}catch (const std::exception& e) { |
5346 |
> |
PyErr_SetString ( BossError, e.what() ); |
5347 |
> |
return NULL; |
5348 |
> |
} |
5349 |
|
} |
5350 |
+ |
resultobj = PyInt_FromLong((long)result); |
5351 |
|
return resultobj; |
5352 |
|
fail: |
5353 |
|
return NULL; |
5354 |
|
} |
5355 |
|
|
5356 |
|
|
5357 |
< |
static PyObject *_wrap_BossUserSession_version(PyObject *self, PyObject *args) { |
5357 |
> |
static PyObject *_wrap_BossTask_schedulerQuery(PyObject *self, PyObject *args) { |
5358 |
|
PyObject *resultobj; |
5359 |
< |
BossUserSession *arg1 = (BossUserSession *) 0 ; |
5360 |
< |
std::string arg2 = (std::string) "NONE" ; |
5361 |
< |
std::string result; |
5359 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5360 |
> |
int arg2 = (int) SCHEDULED ; |
5361 |
> |
std::string const &arg3_defvalue = "all" ; |
5362 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
5363 |
> |
std::string const &arg4_defvalue = "" ; |
5364 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
5365 |
> |
std::string arg5 = (std::string) "" ; |
5366 |
> |
std::string arg6 = (std::string) "" ; |
5367 |
> |
std::string arg7 = (std::string) "" ; |
5368 |
> |
std::string arg8 = (std::string) "" ; |
5369 |
> |
unsigned int arg9 = (unsigned int) 0 ; |
5370 |
> |
int result; |
5371 |
> |
std::string temp3 ; |
5372 |
> |
std::string temp4 ; |
5373 |
> |
PyObject * obj0 = 0 ; |
5374 |
> |
PyObject * obj2 = 0 ; |
5375 |
> |
PyObject * obj3 = 0 ; |
5376 |
> |
PyObject * obj4 = 0 ; |
5377 |
> |
PyObject * obj5 = 0 ; |
5378 |
> |
PyObject * obj6 = 0 ; |
5379 |
> |
PyObject * obj7 = 0 ; |
5380 |
> |
PyObject * obj8 = 0 ; |
5381 |
> |
|
5382 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossTask_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5383 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5384 |
> |
if (obj2) { |
5385 |
> |
{ |
5386 |
> |
if (PyString_Check(obj2)) { |
5387 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
5388 |
> |
arg3 = &temp3; |
5389 |
> |
}else { |
5390 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5391 |
> |
} |
5392 |
> |
} |
5393 |
> |
} |
5394 |
> |
if (obj3) { |
5395 |
> |
{ |
5396 |
> |
if (PyString_Check(obj3)) { |
5397 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
5398 |
> |
arg4 = &temp4; |
5399 |
> |
}else { |
5400 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5401 |
> |
} |
5402 |
> |
} |
5403 |
> |
} |
5404 |
> |
if (obj4) { |
5405 |
> |
{ |
5406 |
> |
if (PyString_Check(obj4)) |
5407 |
> |
arg5 = std::string(PyString_AsString(obj4)); |
5408 |
> |
else |
5409 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5410 |
> |
} |
5411 |
> |
} |
5412 |
> |
if (obj5) { |
5413 |
> |
{ |
5414 |
> |
if (PyString_Check(obj5)) |
5415 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
5416 |
> |
else |
5417 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5418 |
> |
} |
5419 |
> |
} |
5420 |
> |
if (obj6) { |
5421 |
> |
{ |
5422 |
> |
if (PyString_Check(obj6)) |
5423 |
> |
arg7 = std::string(PyString_AsString(obj6)); |
5424 |
> |
else |
5425 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5426 |
> |
} |
5427 |
> |
} |
5428 |
> |
if (obj7) { |
5429 |
> |
{ |
5430 |
> |
if (PyString_Check(obj7)) |
5431 |
> |
arg8 = std::string(PyString_AsString(obj7)); |
5432 |
> |
else |
5433 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5434 |
> |
} |
5435 |
> |
} |
5436 |
> |
if (obj8) { |
5437 |
> |
arg9 = (unsigned int) PyInt_AsLong(obj8); |
5438 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5439 |
> |
} |
5440 |
> |
{ |
5441 |
> |
try { |
5442 |
> |
result = (int)(arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9); |
5443 |
> |
|
5444 |
> |
}catch (const BossSchedFailure & e) { |
5445 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5446 |
> |
return NULL; |
5447 |
> |
}catch (const std::exception& e) { |
5448 |
> |
PyErr_SetString ( BossError, e.what() ); |
5449 |
> |
return NULL; |
5450 |
> |
} |
5451 |
> |
} |
5452 |
> |
resultobj = PyInt_FromLong((long)result); |
5453 |
> |
return resultobj; |
5454 |
> |
fail: |
5455 |
> |
return NULL; |
5456 |
> |
} |
5457 |
> |
|
5458 |
> |
|
5459 |
> |
static PyObject *_wrap_BossTask_query(PyObject *self, PyObject *args) { |
5460 |
> |
PyObject *resultobj; |
5461 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5462 |
> |
int arg2 = (int) SCHEDULED ; |
5463 |
> |
std::string const &arg3_defvalue = "all" ; |
5464 |
> |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
5465 |
> |
std::string const &arg4_defvalue = "" ; |
5466 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
5467 |
> |
std::string arg5 = (std::string) "" ; |
5468 |
> |
std::string arg6 = (std::string) "" ; |
5469 |
> |
std::string arg7 = (std::string) "" ; |
5470 |
> |
std::string arg8 = (std::string) "" ; |
5471 |
> |
unsigned int arg9 = (unsigned int) 0 ; |
5472 |
> |
bool arg10 = (bool) false ; |
5473 |
> |
int result; |
5474 |
> |
std::string temp3 ; |
5475 |
> |
std::string temp4 ; |
5476 |
> |
PyObject * obj0 = 0 ; |
5477 |
> |
PyObject * obj2 = 0 ; |
5478 |
> |
PyObject * obj3 = 0 ; |
5479 |
> |
PyObject * obj4 = 0 ; |
5480 |
> |
PyObject * obj5 = 0 ; |
5481 |
> |
PyObject * obj6 = 0 ; |
5482 |
> |
PyObject * obj7 = 0 ; |
5483 |
> |
PyObject * obj8 = 0 ; |
5484 |
> |
PyObject * obj9 = 0 ; |
5485 |
> |
|
5486 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossTask_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
5487 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5488 |
> |
if (obj2) { |
5489 |
> |
{ |
5490 |
> |
if (PyString_Check(obj2)) { |
5491 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
5492 |
> |
arg3 = &temp3; |
5493 |
> |
}else { |
5494 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5495 |
> |
} |
5496 |
> |
} |
5497 |
> |
} |
5498 |
> |
if (obj3) { |
5499 |
> |
{ |
5500 |
> |
if (PyString_Check(obj3)) { |
5501 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
5502 |
> |
arg4 = &temp4; |
5503 |
> |
}else { |
5504 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5505 |
> |
} |
5506 |
> |
} |
5507 |
> |
} |
5508 |
> |
if (obj4) { |
5509 |
> |
{ |
5510 |
> |
if (PyString_Check(obj4)) |
5511 |
> |
arg5 = std::string(PyString_AsString(obj4)); |
5512 |
> |
else |
5513 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5514 |
> |
} |
5515 |
> |
} |
5516 |
> |
if (obj5) { |
5517 |
> |
{ |
5518 |
> |
if (PyString_Check(obj5)) |
5519 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
5520 |
> |
else |
5521 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5522 |
> |
} |
5523 |
> |
} |
5524 |
> |
if (obj6) { |
5525 |
> |
{ |
5526 |
> |
if (PyString_Check(obj6)) |
5527 |
> |
arg7 = std::string(PyString_AsString(obj6)); |
5528 |
> |
else |
5529 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5530 |
> |
} |
5531 |
> |
} |
5532 |
> |
if (obj7) { |
5533 |
> |
{ |
5534 |
> |
if (PyString_Check(obj7)) |
5535 |
> |
arg8 = std::string(PyString_AsString(obj7)); |
5536 |
> |
else |
5537 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5538 |
> |
} |
5539 |
> |
} |
5540 |
> |
if (obj8) { |
5541 |
> |
arg9 = (unsigned int) PyInt_AsLong(obj8); |
5542 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5543 |
> |
} |
5544 |
> |
if (obj9) { |
5545 |
> |
arg10 = PyInt_AsLong(obj9) ? true : false; |
5546 |
> |
if (PyErr_Occurred()) SWIG_fail; |
5547 |
> |
} |
5548 |
> |
{ |
5549 |
> |
try { |
5550 |
> |
result = (int)(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
5551 |
> |
|
5552 |
> |
}catch (const BossSchedFailure & e) { |
5553 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5554 |
> |
return NULL; |
5555 |
> |
}catch (const std::exception& e) { |
5556 |
> |
PyErr_SetString ( BossError, e.what() ); |
5557 |
> |
return NULL; |
5558 |
> |
} |
5559 |
> |
} |
5560 |
> |
resultobj = PyInt_FromLong((long)result); |
5561 |
> |
return resultobj; |
5562 |
> |
fail: |
5563 |
> |
return NULL; |
5564 |
> |
} |
5565 |
> |
|
5566 |
> |
|
5567 |
> |
static PyObject *_wrap_BossTask_query_out(PyObject *self, PyObject *args) { |
5568 |
> |
PyObject *resultobj; |
5569 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5570 |
> |
std::ostream &arg2_defvalue = std::cout ; |
5571 |
> |
std::ostream *arg2 = (std::ostream *) &arg2_defvalue ; |
5572 |
> |
jobStates const &arg3_defvalue = SCHEDULED ; |
5573 |
> |
jobStates *arg3 = (jobStates *) &arg3_defvalue ; |
5574 |
> |
printOption const &arg4_defvalue = NORMAL ; |
5575 |
> |
printOption *arg4 = (printOption *) &arg4_defvalue ; |
5576 |
> |
std::string arg5 = (std::string) "" ; |
5577 |
|
PyObject * obj0 = 0 ; |
5578 |
|
PyObject * obj1 = 0 ; |
5579 |
+ |
PyObject * obj2 = 0 ; |
5580 |
+ |
PyObject * obj3 = 0 ; |
5581 |
+ |
PyObject * obj4 = 0 ; |
5582 |
|
|
5583 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossUserSession_version",&obj0,&obj1)) goto fail; |
5584 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossUserSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5583 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossTask_query_out",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
5584 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5585 |
|
if (obj1) { |
5586 |
+ |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__ostream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5587 |
+ |
if (arg2 == NULL) { |
5588 |
+ |
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5589 |
+ |
} |
5590 |
+ |
} |
5591 |
+ |
if (obj2) { |
5592 |
+ |
if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_jobStates,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5593 |
+ |
if (arg3 == NULL) { |
5594 |
+ |
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5595 |
+ |
} |
5596 |
+ |
} |
5597 |
+ |
if (obj3) { |
5598 |
+ |
if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_printOption,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5599 |
+ |
if (arg4 == NULL) { |
5600 |
+ |
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5601 |
+ |
} |
5602 |
+ |
} |
5603 |
+ |
if (obj4) { |
5604 |
|
{ |
5605 |
< |
if (PyString_Check(obj1)) |
5606 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
5605 |
> |
if (PyString_Check(obj4)) |
5606 |
> |
arg5 = std::string(PyString_AsString(obj4)); |
5607 |
|
else |
5608 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
5609 |
|
} |
5610 |
|
} |
1378 |
– |
result = (arg1)->version(arg2); |
1379 |
– |
|
5611 |
|
{ |
5612 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
5612 |
> |
try { |
5613 |
> |
((BossTask const *)arg1)->query_out(*arg2,(jobStates const &)*arg3,(printOption const &)*arg4,arg5); |
5614 |
> |
|
5615 |
> |
}catch (const BossSchedFailure & e) { |
5616 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5617 |
> |
return NULL; |
5618 |
> |
}catch (const std::exception& e) { |
5619 |
> |
PyErr_SetString ( BossError, e.what() ); |
5620 |
> |
return NULL; |
5621 |
> |
} |
5622 |
|
} |
5623 |
+ |
Py_INCREF(Py_None); resultobj = Py_None; |
5624 |
|
return resultobj; |
5625 |
|
fail: |
5626 |
|
return NULL; |
5627 |
|
} |
5628 |
|
|
5629 |
|
|
5630 |
< |
static PyObject * BossUserSession_swigregister(PyObject *self, PyObject *args) { |
1390 |
< |
PyObject *obj; |
1391 |
< |
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
1392 |
< |
SWIG_TypeClientData(SWIGTYPE_p_BossUserSession, obj); |
1393 |
< |
Py_INCREF(obj); |
1394 |
< |
return Py_BuildValue((char *)""); |
1395 |
< |
} |
1396 |
< |
static PyObject *_wrap_new_BossAdministratorSession(PyObject *self, PyObject *args) { |
5630 |
> |
static PyObject *_wrap_BossTask_clear(PyObject *self, PyObject *args) { |
5631 |
|
PyObject *resultobj; |
5632 |
< |
std::string arg1 ; |
1399 |
< |
BossAdministratorSession *result; |
5632 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5633 |
|
PyObject * obj0 = 0 ; |
5634 |
|
|
5635 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:new_BossAdministratorSession",&obj0)) goto fail; |
5635 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_clear",&obj0)) goto fail; |
5636 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5637 |
|
{ |
5638 |
< |
if (PyString_Check(obj0)) |
5639 |
< |
arg1 = std::string(PyString_AsString(obj0)); |
5640 |
< |
else |
5641 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
5638 |
> |
try { |
5639 |
> |
(arg1)->clear(); |
5640 |
> |
|
5641 |
> |
}catch (const BossSchedFailure & e) { |
5642 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5643 |
> |
return NULL; |
5644 |
> |
}catch (const std::exception& e) { |
5645 |
> |
PyErr_SetString ( BossError, e.what() ); |
5646 |
> |
return NULL; |
5647 |
> |
} |
5648 |
|
} |
5649 |
< |
result = (BossAdministratorSession *)new BossAdministratorSession(arg1); |
1410 |
< |
|
1411 |
< |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossAdministratorSession, 1); |
5649 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
5650 |
|
return resultobj; |
5651 |
|
fail: |
5652 |
|
return NULL; |
5653 |
|
} |
5654 |
|
|
5655 |
|
|
5656 |
< |
static PyObject *_wrap_delete_BossAdministratorSession(PyObject *self, PyObject *args) { |
5656 |
> |
static PyObject *_wrap_BossTask_appendToPyDict(PyObject *self, PyObject *args) { |
5657 |
|
PyObject *resultobj; |
5658 |
< |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
5658 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5659 |
> |
PyObject *arg2 = (PyObject *) 0 ; |
5660 |
> |
BossAttributeContainer *arg3 = 0 ; |
5661 |
|
PyObject * obj0 = 0 ; |
5662 |
+ |
PyObject * obj1 = 0 ; |
5663 |
+ |
PyObject * obj2 = 0 ; |
5664 |
|
|
5665 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:delete_BossAdministratorSession",&obj0)) goto fail; |
5666 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5667 |
< |
delete arg1; |
5665 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_appendToPyDict",&obj0,&obj1,&obj2)) goto fail; |
5666 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5667 |
> |
arg2 = obj1; |
5668 |
> |
if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_BossAttributeContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5669 |
> |
if (arg3 == NULL) { |
5670 |
> |
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5671 |
> |
} |
5672 |
> |
{ |
5673 |
> |
try { |
5674 |
> |
BossTask_appendToPyDict((BossTask const *)arg1,arg2,(BossAttributeContainer const &)*arg3); |
5675 |
> |
|
5676 |
> |
}catch (const BossSchedFailure & e) { |
5677 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5678 |
> |
return NULL; |
5679 |
> |
}catch (const std::exception& e) { |
5680 |
> |
PyErr_SetString ( BossError, e.what() ); |
5681 |
> |
return NULL; |
5682 |
> |
} |
5683 |
> |
} |
5684 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
5685 |
> |
return resultobj; |
5686 |
> |
fail: |
5687 |
> |
return NULL; |
5688 |
> |
} |
5689 |
> |
|
5690 |
> |
|
5691 |
> |
static PyObject *_wrap_BossTask_jobDict(PyObject *self, PyObject *args) { |
5692 |
> |
PyObject *resultobj; |
5693 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5694 |
> |
BossJob *arg2 = (BossJob *) 0 ; |
5695 |
> |
PyObject *arg3 = (PyObject *) 0 ; |
5696 |
> |
PyObject * obj0 = 0 ; |
5697 |
> |
PyObject * obj1 = 0 ; |
5698 |
> |
PyObject * obj2 = 0 ; |
5699 |
|
|
5700 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_jobDict",&obj0,&obj1,&obj2)) goto fail; |
5701 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5702 |
+ |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5703 |
+ |
arg3 = obj2; |
5704 |
+ |
{ |
5705 |
+ |
try { |
5706 |
+ |
BossTask_jobDict((BossTask const *)arg1,(BossJob const *)arg2,arg3); |
5707 |
+ |
|
5708 |
+ |
}catch (const BossSchedFailure & e) { |
5709 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
5710 |
+ |
return NULL; |
5711 |
+ |
}catch (const std::exception& e) { |
5712 |
+ |
PyErr_SetString ( BossError, e.what() ); |
5713 |
+ |
return NULL; |
5714 |
+ |
} |
5715 |
+ |
} |
5716 |
|
Py_INCREF(Py_None); resultobj = Py_None; |
5717 |
|
return resultobj; |
5718 |
|
fail: |
5720 |
|
} |
5721 |
|
|
5722 |
|
|
5723 |
< |
static PyObject *_wrap_BossAdministratorSession_exitCode(PyObject *self, PyObject *args) { |
5723 |
> |
static PyObject *_wrap_BossTask_jobsDict(PyObject *self, PyObject *args) { |
5724 |
|
PyObject *resultobj; |
5725 |
< |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
5726 |
< |
int result; |
5725 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5726 |
> |
PyObject *result; |
5727 |
|
PyObject * obj0 = 0 ; |
5728 |
|
|
5729 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_exitCode",&obj0)) goto fail; |
5730 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5731 |
< |
result = (int)(arg1)->exitCode(); |
5729 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsDict",&obj0)) goto fail; |
5730 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5731 |
> |
{ |
5732 |
> |
try { |
5733 |
> |
result = (PyObject *)BossTask_jobsDict(arg1); |
5734 |
> |
|
5735 |
> |
}catch (const BossSchedFailure & e) { |
5736 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5737 |
> |
return NULL; |
5738 |
> |
}catch (const std::exception& e) { |
5739 |
> |
PyErr_SetString ( BossError, e.what() ); |
5740 |
> |
return NULL; |
5741 |
> |
} |
5742 |
> |
} |
5743 |
> |
resultobj = result; |
5744 |
> |
return resultobj; |
5745 |
> |
fail: |
5746 |
> |
return NULL; |
5747 |
> |
} |
5748 |
> |
|
5749 |
> |
|
5750 |
> |
static PyObject *_wrap_BossTask_job(PyObject *self, PyObject *args) { |
5751 |
> |
PyObject *resultobj; |
5752 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5753 |
> |
std::string *arg2 = 0 ; |
5754 |
> |
PyObject *result; |
5755 |
> |
std::string temp2 ; |
5756 |
> |
PyObject * obj0 = 0 ; |
5757 |
> |
PyObject * obj1 = 0 ; |
5758 |
|
|
5759 |
< |
resultobj = PyInt_FromLong((long)result); |
5759 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_job",&obj0,&obj1)) goto fail; |
5760 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5761 |
> |
{ |
5762 |
> |
if (PyString_Check(obj1)) { |
5763 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
5764 |
> |
arg2 = &temp2; |
5765 |
> |
}else { |
5766 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5767 |
> |
} |
5768 |
> |
} |
5769 |
> |
{ |
5770 |
> |
try { |
5771 |
> |
result = (PyObject *)BossTask_job(arg1,(std::string const &)*arg2); |
5772 |
> |
|
5773 |
> |
}catch (const BossSchedFailure & e) { |
5774 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5775 |
> |
return NULL; |
5776 |
> |
}catch (const std::exception& e) { |
5777 |
> |
PyErr_SetString ( BossError, e.what() ); |
5778 |
> |
return NULL; |
5779 |
> |
} |
5780 |
> |
} |
5781 |
> |
resultobj = result; |
5782 |
|
return resultobj; |
5783 |
|
fail: |
5784 |
|
return NULL; |
5785 |
|
} |
5786 |
|
|
5787 |
|
|
5788 |
< |
static PyObject *_wrap_BossAdministratorSession_out(PyObject *self, PyObject *args) { |
5788 |
> |
static PyObject *_wrap_BossTask_Chain(PyObject *self, PyObject *args) { |
5789 |
|
PyObject *resultobj; |
5790 |
< |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
5791 |
< |
std::string result; |
5790 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5791 |
> |
std::string *arg2 = 0 ; |
5792 |
> |
PyObject *result; |
5793 |
> |
std::string temp2 ; |
5794 |
|
PyObject * obj0 = 0 ; |
5795 |
+ |
PyObject * obj1 = 0 ; |
5796 |
|
|
5797 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_out",&obj0)) goto fail; |
5798 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5799 |
< |
result = (arg1)->out(); |
5797 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_Chain",&obj0,&obj1)) goto fail; |
5798 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5799 |
> |
{ |
5800 |
> |
if (PyString_Check(obj1)) { |
5801 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
5802 |
> |
arg2 = &temp2; |
5803 |
> |
}else { |
5804 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5805 |
> |
} |
5806 |
> |
} |
5807 |
> |
{ |
5808 |
> |
try { |
5809 |
> |
result = (PyObject *)BossTask_Chain(arg1,(std::string const &)*arg2); |
5810 |
> |
|
5811 |
> |
}catch (const BossSchedFailure & e) { |
5812 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5813 |
> |
return NULL; |
5814 |
> |
}catch (const std::exception& e) { |
5815 |
> |
PyErr_SetString ( BossError, e.what() ); |
5816 |
> |
return NULL; |
5817 |
> |
} |
5818 |
> |
} |
5819 |
> |
resultobj = result; |
5820 |
> |
return resultobj; |
5821 |
> |
fail: |
5822 |
> |
return NULL; |
5823 |
> |
} |
5824 |
> |
|
5825 |
> |
|
5826 |
> |
static PyObject *_wrap_BossTask_jobStates(PyObject *self, PyObject *args) { |
5827 |
> |
PyObject *resultobj; |
5828 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5829 |
> |
PyObject *result; |
5830 |
> |
PyObject * obj0 = 0 ; |
5831 |
|
|
5832 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobStates",&obj0)) goto fail; |
5833 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5834 |
|
{ |
5835 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
5835 |
> |
try { |
5836 |
> |
result = (PyObject *)BossTask_jobStates(arg1); |
5837 |
> |
|
5838 |
> |
}catch (const BossSchedFailure & e) { |
5839 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5840 |
> |
return NULL; |
5841 |
> |
}catch (const std::exception& e) { |
5842 |
> |
PyErr_SetString ( BossError, e.what() ); |
5843 |
> |
return NULL; |
5844 |
> |
} |
5845 |
|
} |
5846 |
+ |
resultobj = result; |
5847 |
|
return resultobj; |
5848 |
|
fail: |
5849 |
|
return NULL; |
5850 |
|
} |
5851 |
|
|
5852 |
|
|
5853 |
< |
static PyObject *_wrap_BossAdministratorSession_err(PyObject *self, PyObject *args) { |
5853 |
> |
static PyObject *_wrap_BossTask_jobStatistic(PyObject *self, PyObject *args) { |
5854 |
|
PyObject *resultobj; |
5855 |
< |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
5856 |
< |
std::string result; |
5855 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5856 |
> |
PyObject *result; |
5857 |
|
PyObject * obj0 = 0 ; |
5858 |
|
|
5859 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_err",&obj0)) goto fail; |
5860 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5861 |
< |
result = (arg1)->err(); |
5859 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobStatistic",&obj0)) goto fail; |
5860 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5861 |
> |
{ |
5862 |
> |
try { |
5863 |
> |
result = (PyObject *)BossTask_jobStatistic(arg1); |
5864 |
> |
|
5865 |
> |
}catch (const BossSchedFailure & e) { |
5866 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5867 |
> |
return NULL; |
5868 |
> |
}catch (const std::exception& e) { |
5869 |
> |
PyErr_SetString ( BossError, e.what() ); |
5870 |
> |
return NULL; |
5871 |
> |
} |
5872 |
> |
} |
5873 |
> |
resultobj = result; |
5874 |
> |
return resultobj; |
5875 |
> |
fail: |
5876 |
> |
return NULL; |
5877 |
> |
} |
5878 |
> |
|
5879 |
> |
|
5880 |
> |
static PyObject *_wrap_BossTask_progDict(PyObject *self, PyObject *args) { |
5881 |
> |
PyObject *resultobj; |
5882 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5883 |
> |
std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *arg2 = 0 ; |
5884 |
> |
PyObject *result; |
5885 |
> |
PyObject * obj0 = 0 ; |
5886 |
> |
PyObject * obj1 = 0 ; |
5887 |
|
|
5888 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_progDict",&obj0,&obj1)) goto fail; |
5889 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5890 |
+ |
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5891 |
+ |
if (arg2 == NULL) { |
5892 |
+ |
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5893 |
+ |
} |
5894 |
|
{ |
5895 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
5895 |
> |
try { |
5896 |
> |
result = (PyObject *)BossTask_progDict((BossTask const *)arg1,*arg2); |
5897 |
> |
|
5898 |
> |
}catch (const BossSchedFailure & e) { |
5899 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5900 |
> |
return NULL; |
5901 |
> |
}catch (const std::exception& e) { |
5902 |
> |
PyErr_SetString ( BossError, e.what() ); |
5903 |
> |
return NULL; |
5904 |
> |
} |
5905 |
|
} |
5906 |
+ |
resultobj = result; |
5907 |
|
return resultobj; |
5908 |
|
fail: |
5909 |
|
return NULL; |
5910 |
|
} |
5911 |
|
|
5912 |
|
|
5913 |
< |
static PyObject *_wrap_BossAdministratorSession_help(PyObject *self, PyObject *args) { |
5913 |
> |
static PyObject *_wrap_BossTask_jobPrograms(PyObject *self, PyObject *args) { |
5914 |
|
PyObject *resultobj; |
5915 |
< |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
5916 |
< |
std::string arg2 = (std::string) "NONE" ; |
5917 |
< |
std::string result; |
5915 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5916 |
> |
std::string *arg2 = 0 ; |
5917 |
> |
PyObject *result; |
5918 |
> |
std::string temp2 ; |
5919 |
|
PyObject * obj0 = 0 ; |
5920 |
|
PyObject * obj1 = 0 ; |
5921 |
|
|
5922 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_help",&obj0,&obj1)) goto fail; |
5923 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5924 |
< |
if (obj1) { |
5925 |
< |
{ |
5926 |
< |
if (PyString_Check(obj1)) |
5927 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
5928 |
< |
else |
5922 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobPrograms",&obj0,&obj1)) goto fail; |
5923 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5924 |
> |
{ |
5925 |
> |
if (PyString_Check(obj1)) { |
5926 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
5927 |
> |
arg2 = &temp2; |
5928 |
> |
}else { |
5929 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
5930 |
|
} |
5931 |
|
} |
5932 |
< |
result = (arg1)->help(arg2); |
5932 |
> |
{ |
5933 |
> |
try { |
5934 |
> |
result = (PyObject *)BossTask_jobPrograms((BossTask const *)arg1,(std::string const &)*arg2); |
5935 |
> |
|
5936 |
> |
}catch (const BossSchedFailure & e) { |
5937 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
5938 |
> |
return NULL; |
5939 |
> |
}catch (const std::exception& e) { |
5940 |
> |
PyErr_SetString ( BossError, e.what() ); |
5941 |
> |
return NULL; |
5942 |
> |
} |
5943 |
> |
} |
5944 |
> |
resultobj = result; |
5945 |
> |
return resultobj; |
5946 |
> |
fail: |
5947 |
> |
return NULL; |
5948 |
> |
} |
5949 |
> |
|
5950 |
> |
|
5951 |
> |
static PyObject *_wrap_BossTask_program(PyObject *self, PyObject *args) { |
5952 |
> |
PyObject *resultobj; |
5953 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
5954 |
> |
std::string *arg2 = 0 ; |
5955 |
> |
std::string *arg3 = 0 ; |
5956 |
> |
PyObject *result; |
5957 |
> |
std::string temp2 ; |
5958 |
> |
std::string temp3 ; |
5959 |
> |
PyObject * obj0 = 0 ; |
5960 |
> |
PyObject * obj1 = 0 ; |
5961 |
> |
PyObject * obj2 = 0 ; |
5962 |
|
|
5963 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_program",&obj0,&obj1,&obj2)) goto fail; |
5964 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5965 |
|
{ |
5966 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
5966 |
> |
if (PyString_Check(obj1)) { |
5967 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
5968 |
> |
arg2 = &temp2; |
5969 |
> |
}else { |
5970 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5971 |
> |
} |
5972 |
> |
} |
5973 |
> |
{ |
5974 |
> |
if (PyString_Check(obj2)) { |
5975 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
5976 |
> |
arg3 = &temp3; |
5977 |
> |
}else { |
5978 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
5979 |
> |
} |
5980 |
|
} |
5981 |
+ |
{ |
5982 |
+ |
try { |
5983 |
+ |
result = (PyObject *)BossTask_program(arg1,(std::string const &)*arg2,(std::string const &)*arg3); |
5984 |
+ |
|
5985 |
+ |
}catch (const BossSchedFailure & e) { |
5986 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
5987 |
+ |
return NULL; |
5988 |
+ |
}catch (const std::exception& e) { |
5989 |
+ |
PyErr_SetString ( BossError, e.what() ); |
5990 |
+ |
return NULL; |
5991 |
+ |
} |
5992 |
+ |
} |
5993 |
+ |
resultobj = result; |
5994 |
|
return resultobj; |
5995 |
|
fail: |
5996 |
|
return NULL; |
5997 |
|
} |
5998 |
|
|
5999 |
|
|
6000 |
< |
static PyObject *_wrap_BossAdministratorSession_SQL(PyObject *self, PyObject *args) { |
6000 |
> |
static PyObject *_wrap_BossTask_programExec(PyObject *self, PyObject *args) { |
6001 |
|
PyObject *resultobj; |
6002 |
< |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6003 |
< |
std::string arg2 = (std::string) "NONE" ; |
6004 |
< |
std::string result; |
6002 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
6003 |
> |
std::string *arg2 = 0 ; |
6004 |
> |
std::string *arg3 = 0 ; |
6005 |
> |
PyObject *result; |
6006 |
> |
std::string temp2 ; |
6007 |
> |
std::string temp3 ; |
6008 |
|
PyObject * obj0 = 0 ; |
6009 |
|
PyObject * obj1 = 0 ; |
6010 |
+ |
PyObject * obj2 = 0 ; |
6011 |
|
|
6012 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_SQL",&obj0,&obj1)) goto fail; |
6013 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6014 |
< |
if (obj1) { |
6015 |
< |
{ |
6016 |
< |
if (PyString_Check(obj1)) |
6017 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6018 |
< |
else |
6012 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_programExec",&obj0,&obj1,&obj2)) goto fail; |
6013 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6014 |
> |
{ |
6015 |
> |
if (PyString_Check(obj1)) { |
6016 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6017 |
> |
arg2 = &temp2; |
6018 |
> |
}else { |
6019 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6020 |
|
} |
6021 |
|
} |
6022 |
< |
result = (arg1)->SQL(arg2); |
6022 |
> |
{ |
6023 |
> |
if (PyString_Check(obj2)) { |
6024 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
6025 |
> |
arg3 = &temp3; |
6026 |
> |
}else { |
6027 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6028 |
> |
} |
6029 |
> |
} |
6030 |
> |
{ |
6031 |
> |
try { |
6032 |
> |
result = (PyObject *)BossTask_programExec(arg1,(std::string const &)*arg2,(std::string const &)*arg3); |
6033 |
> |
|
6034 |
> |
}catch (const BossSchedFailure & e) { |
6035 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6036 |
> |
return NULL; |
6037 |
> |
}catch (const std::exception& e) { |
6038 |
> |
PyErr_SetString ( BossError, e.what() ); |
6039 |
> |
return NULL; |
6040 |
> |
} |
6041 |
> |
} |
6042 |
> |
resultobj = result; |
6043 |
> |
return resultobj; |
6044 |
> |
fail: |
6045 |
> |
return NULL; |
6046 |
> |
} |
6047 |
> |
|
6048 |
> |
|
6049 |
> |
static PyObject *_wrap_BossTask_specific(PyObject *self, PyObject *args) { |
6050 |
> |
PyObject *resultobj; |
6051 |
> |
BossTask *arg1 = (BossTask *) 0 ; |
6052 |
> |
std::string *arg2 = 0 ; |
6053 |
> |
std::string *arg3 = 0 ; |
6054 |
> |
PyObject *result; |
6055 |
> |
std::string temp2 ; |
6056 |
> |
std::string temp3 ; |
6057 |
> |
PyObject * obj0 = 0 ; |
6058 |
> |
PyObject * obj1 = 0 ; |
6059 |
> |
PyObject * obj2 = 0 ; |
6060 |
|
|
6061 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_specific",&obj0,&obj1,&obj2)) goto fail; |
6062 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6063 |
|
{ |
6064 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6064 |
> |
if (PyString_Check(obj1)) { |
6065 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6066 |
> |
arg2 = &temp2; |
6067 |
> |
}else { |
6068 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6069 |
> |
} |
6070 |
|
} |
6071 |
+ |
{ |
6072 |
+ |
if (PyString_Check(obj2)) { |
6073 |
+ |
temp3 = std::string(PyString_AsString(obj2)); |
6074 |
+ |
arg3 = &temp3; |
6075 |
+ |
}else { |
6076 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
6077 |
+ |
} |
6078 |
+ |
} |
6079 |
+ |
{ |
6080 |
+ |
try { |
6081 |
+ |
result = (PyObject *)BossTask_specific(arg1,(std::string const &)*arg2,(std::string const &)*arg3); |
6082 |
+ |
|
6083 |
+ |
}catch (const BossSchedFailure & e) { |
6084 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
6085 |
+ |
return NULL; |
6086 |
+ |
}catch (const std::exception& e) { |
6087 |
+ |
PyErr_SetString ( BossError, e.what() ); |
6088 |
+ |
return NULL; |
6089 |
+ |
} |
6090 |
+ |
} |
6091 |
+ |
resultobj = result; |
6092 |
|
return resultobj; |
6093 |
|
fail: |
6094 |
|
return NULL; |
6095 |
|
} |
6096 |
|
|
6097 |
|
|
6098 |
< |
static PyObject *_wrap_BossAdministratorSession_configureDB(PyObject *self, PyObject *args) { |
6098 |
> |
static PyObject * BossTask_swigregister(PyObject *self, PyObject *args) { |
6099 |
> |
PyObject *obj; |
6100 |
> |
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
6101 |
> |
SWIG_TypeClientData(SWIGTYPE_p_BossTask, obj); |
6102 |
> |
Py_INCREF(obj); |
6103 |
> |
return Py_BuildValue((char *)""); |
6104 |
> |
} |
6105 |
> |
static PyObject *_wrap_new_BossAdministratorSession(PyObject *self, PyObject *args) { |
6106 |
|
PyObject *resultobj; |
6107 |
< |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6108 |
< |
std::string arg2 = (std::string) "NONE" ; |
6109 |
< |
std::string result; |
6107 |
> |
std::string arg1 = (std::string) "" ; |
6108 |
> |
std::string arg2 = (std::string) "2" ; |
6109 |
> |
std::string arg3 = (std::string) "" ; |
6110 |
> |
std::string arg4 = (std::string) "" ; |
6111 |
> |
bool arg5 = (bool) false ; |
6112 |
> |
BossAdministratorSession *result; |
6113 |
|
PyObject * obj0 = 0 ; |
6114 |
|
PyObject * obj1 = 0 ; |
6115 |
+ |
PyObject * obj2 = 0 ; |
6116 |
+ |
PyObject * obj3 = 0 ; |
6117 |
+ |
PyObject * obj4 = 0 ; |
6118 |
|
|
6119 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_configureDB",&obj0,&obj1)) goto fail; |
6120 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6119 |
> |
if(!PyArg_ParseTuple(args,(char *)"|OOOOO:new_BossAdministratorSession",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6120 |
> |
if (obj0) { |
6121 |
> |
{ |
6122 |
> |
if (PyString_Check(obj0)) |
6123 |
> |
arg1 = std::string(PyString_AsString(obj0)); |
6124 |
> |
else |
6125 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6126 |
> |
} |
6127 |
> |
} |
6128 |
|
if (obj1) { |
6129 |
|
{ |
6130 |
|
if (PyString_Check(obj1)) |
6133 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6134 |
|
} |
6135 |
|
} |
6136 |
< |
result = (arg1)->configureDB(arg2); |
6136 |
> |
if (obj2) { |
6137 |
> |
{ |
6138 |
> |
if (PyString_Check(obj2)) |
6139 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
6140 |
> |
else |
6141 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6142 |
> |
} |
6143 |
> |
} |
6144 |
> |
if (obj3) { |
6145 |
> |
{ |
6146 |
> |
if (PyString_Check(obj3)) |
6147 |
> |
arg4 = std::string(PyString_AsString(obj3)); |
6148 |
> |
else |
6149 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6150 |
> |
} |
6151 |
> |
} |
6152 |
> |
if (obj4) { |
6153 |
> |
arg5 = PyInt_AsLong(obj4) ? true : false; |
6154 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6155 |
> |
} |
6156 |
> |
{ |
6157 |
> |
try { |
6158 |
> |
result = (BossAdministratorSession *)new BossAdministratorSession(arg1,arg2,arg3,arg4,arg5); |
6159 |
> |
|
6160 |
> |
}catch (const BossSchedFailure & e) { |
6161 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6162 |
> |
return NULL; |
6163 |
> |
}catch (const std::exception& e) { |
6164 |
> |
PyErr_SetString ( BossError, e.what() ); |
6165 |
> |
return NULL; |
6166 |
> |
} |
6167 |
> |
} |
6168 |
> |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossAdministratorSession, 1); |
6169 |
> |
return resultobj; |
6170 |
> |
fail: |
6171 |
> |
return NULL; |
6172 |
> |
} |
6173 |
> |
|
6174 |
> |
|
6175 |
> |
static PyObject *_wrap_delete_BossAdministratorSession(PyObject *self, PyObject *args) { |
6176 |
> |
PyObject *resultobj; |
6177 |
> |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6178 |
> |
PyObject * obj0 = 0 ; |
6179 |
|
|
6180 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:delete_BossAdministratorSession",&obj0)) goto fail; |
6181 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6182 |
|
{ |
6183 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6183 |
> |
try { |
6184 |
> |
delete arg1; |
6185 |
> |
|
6186 |
> |
}catch (const BossSchedFailure & e) { |
6187 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6188 |
> |
return NULL; |
6189 |
> |
}catch (const std::exception& e) { |
6190 |
> |
PyErr_SetString ( BossError, e.what() ); |
6191 |
> |
return NULL; |
6192 |
> |
} |
6193 |
> |
} |
6194 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
6195 |
> |
return resultobj; |
6196 |
> |
fail: |
6197 |
> |
return NULL; |
6198 |
> |
} |
6199 |
> |
|
6200 |
> |
|
6201 |
> |
static PyObject *_wrap_BossAdministratorSession_configureDB(PyObject *self, PyObject *args) { |
6202 |
> |
PyObject *resultobj; |
6203 |
> |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6204 |
> |
int result; |
6205 |
> |
PyObject * obj0 = 0 ; |
6206 |
> |
|
6207 |
> |
if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_configureDB",&obj0)) goto fail; |
6208 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6209 |
> |
{ |
6210 |
> |
try { |
6211 |
> |
result = (int)(arg1)->configureDB(); |
6212 |
> |
|
6213 |
> |
}catch (const BossSchedFailure & e) { |
6214 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6215 |
> |
return NULL; |
6216 |
> |
}catch (const std::exception& e) { |
6217 |
> |
PyErr_SetString ( BossError, e.what() ); |
6218 |
> |
return NULL; |
6219 |
> |
} |
6220 |
|
} |
6221 |
+ |
resultobj = PyInt_FromLong((long)result); |
6222 |
|
return resultobj; |
6223 |
|
fail: |
6224 |
|
return NULL; |
6228 |
|
static PyObject *_wrap_BossAdministratorSession_configureRTMonDB(PyObject *self, PyObject *args) { |
6229 |
|
PyObject *resultobj; |
6230 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6231 |
< |
std::string arg2 = (std::string) "NONE" ; |
6232 |
< |
std::string result; |
6231 |
> |
std::string *arg2 = 0 ; |
6232 |
> |
int result; |
6233 |
> |
std::string temp2 ; |
6234 |
|
PyObject * obj0 = 0 ; |
6235 |
|
PyObject * obj1 = 0 ; |
6236 |
|
|
6237 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_configureRTMonDB",&obj0,&obj1)) goto fail; |
6237 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_configureRTMonDB",&obj0,&obj1)) goto fail; |
6238 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6239 |
< |
if (obj1) { |
6240 |
< |
{ |
6241 |
< |
if (PyString_Check(obj1)) |
6242 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6243 |
< |
else |
6239 |
> |
{ |
6240 |
> |
if (PyString_Check(obj1)) { |
6241 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6242 |
> |
arg2 = &temp2; |
6243 |
> |
}else { |
6244 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6245 |
|
} |
6246 |
|
} |
1594 |
– |
result = (arg1)->configureRTMonDB(arg2); |
1595 |
– |
|
6247 |
|
{ |
6248 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6248 |
> |
try { |
6249 |
> |
result = (int)(arg1)->configureRTMonDB((std::string const &)*arg2); |
6250 |
> |
|
6251 |
> |
}catch (const BossSchedFailure & e) { |
6252 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6253 |
> |
return NULL; |
6254 |
> |
}catch (const std::exception& e) { |
6255 |
> |
PyErr_SetString ( BossError, e.what() ); |
6256 |
> |
return NULL; |
6257 |
> |
} |
6258 |
|
} |
6259 |
+ |
resultobj = PyInt_FromLong((long)result); |
6260 |
|
return resultobj; |
6261 |
|
fail: |
6262 |
|
return NULL; |
6266 |
|
static PyObject *_wrap_BossAdministratorSession_deleteCHTool(PyObject *self, PyObject *args) { |
6267 |
|
PyObject *resultobj; |
6268 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6269 |
< |
std::string arg2 = (std::string) "NONE" ; |
6270 |
< |
std::string result; |
6269 |
> |
std::string *arg2 = 0 ; |
6270 |
> |
int result; |
6271 |
> |
std::string temp2 ; |
6272 |
|
PyObject * obj0 = 0 ; |
6273 |
|
PyObject * obj1 = 0 ; |
6274 |
|
|
6275 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_deleteCHTool",&obj0,&obj1)) goto fail; |
6275 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteCHTool",&obj0,&obj1)) goto fail; |
6276 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6277 |
< |
if (obj1) { |
6278 |
< |
{ |
6279 |
< |
if (PyString_Check(obj1)) |
6280 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6281 |
< |
else |
6277 |
> |
{ |
6278 |
> |
if (PyString_Check(obj1)) { |
6279 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6280 |
> |
arg2 = &temp2; |
6281 |
> |
}else { |
6282 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6283 |
|
} |
6284 |
|
} |
1623 |
– |
result = (arg1)->deleteCHTool(arg2); |
1624 |
– |
|
6285 |
|
{ |
6286 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6286 |
> |
try { |
6287 |
> |
result = (int)(arg1)->deleteCHTool((std::string const &)*arg2); |
6288 |
> |
|
6289 |
> |
}catch (const BossSchedFailure & e) { |
6290 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6291 |
> |
return NULL; |
6292 |
> |
}catch (const std::exception& e) { |
6293 |
> |
PyErr_SetString ( BossError, e.what() ); |
6294 |
> |
return NULL; |
6295 |
> |
} |
6296 |
|
} |
6297 |
+ |
resultobj = PyInt_FromLong((long)result); |
6298 |
|
return resultobj; |
6299 |
|
fail: |
6300 |
|
return NULL; |
6304 |
|
static PyObject *_wrap_BossAdministratorSession_deleteProgramType(PyObject *self, PyObject *args) { |
6305 |
|
PyObject *resultobj; |
6306 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6307 |
< |
std::string arg2 = (std::string) "NONE" ; |
6308 |
< |
std::string result; |
6307 |
> |
std::string *arg2 = 0 ; |
6308 |
> |
int result; |
6309 |
> |
std::string temp2 ; |
6310 |
|
PyObject * obj0 = 0 ; |
6311 |
|
PyObject * obj1 = 0 ; |
6312 |
|
|
6313 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_deleteProgramType",&obj0,&obj1)) goto fail; |
6313 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteProgramType",&obj0,&obj1)) goto fail; |
6314 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6315 |
< |
if (obj1) { |
6316 |
< |
{ |
6317 |
< |
if (PyString_Check(obj1)) |
6318 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6319 |
< |
else |
6315 |
> |
{ |
6316 |
> |
if (PyString_Check(obj1)) { |
6317 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6318 |
> |
arg2 = &temp2; |
6319 |
> |
}else { |
6320 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6321 |
|
} |
6322 |
|
} |
1652 |
– |
result = (arg1)->deleteProgramType(arg2); |
1653 |
– |
|
6323 |
|
{ |
6324 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6324 |
> |
try { |
6325 |
> |
result = (int)(arg1)->deleteProgramType((std::string const &)*arg2); |
6326 |
> |
|
6327 |
> |
}catch (const BossSchedFailure & e) { |
6328 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6329 |
> |
return NULL; |
6330 |
> |
}catch (const std::exception& e) { |
6331 |
> |
PyErr_SetString ( BossError, e.what() ); |
6332 |
> |
return NULL; |
6333 |
> |
} |
6334 |
|
} |
6335 |
+ |
resultobj = PyInt_FromLong((long)result); |
6336 |
|
return resultobj; |
6337 |
|
fail: |
6338 |
|
return NULL; |
6342 |
|
static PyObject *_wrap_BossAdministratorSession_deleteRTMon(PyObject *self, PyObject *args) { |
6343 |
|
PyObject *resultobj; |
6344 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6345 |
< |
std::string arg2 = (std::string) "NONE" ; |
6346 |
< |
std::string result; |
6345 |
> |
std::string *arg2 = 0 ; |
6346 |
> |
int result; |
6347 |
> |
std::string temp2 ; |
6348 |
|
PyObject * obj0 = 0 ; |
6349 |
|
PyObject * obj1 = 0 ; |
6350 |
|
|
6351 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_deleteRTMon",&obj0,&obj1)) goto fail; |
6351 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteRTMon",&obj0,&obj1)) goto fail; |
6352 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6353 |
< |
if (obj1) { |
6354 |
< |
{ |
6355 |
< |
if (PyString_Check(obj1)) |
6356 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6357 |
< |
else |
6353 |
> |
{ |
6354 |
> |
if (PyString_Check(obj1)) { |
6355 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6356 |
> |
arg2 = &temp2; |
6357 |
> |
}else { |
6358 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6359 |
|
} |
6360 |
|
} |
1681 |
– |
result = (arg1)->deleteRTMon(arg2); |
1682 |
– |
|
6361 |
|
{ |
6362 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6362 |
> |
try { |
6363 |
> |
result = (int)(arg1)->deleteRTMon((std::string const &)*arg2); |
6364 |
> |
|
6365 |
> |
}catch (const BossSchedFailure & e) { |
6366 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6367 |
> |
return NULL; |
6368 |
> |
}catch (const std::exception& e) { |
6369 |
> |
PyErr_SetString ( BossError, e.what() ); |
6370 |
> |
return NULL; |
6371 |
> |
} |
6372 |
|
} |
6373 |
+ |
resultobj = PyInt_FromLong((long)result); |
6374 |
|
return resultobj; |
6375 |
|
fail: |
6376 |
|
return NULL; |
6380 |
|
static PyObject *_wrap_BossAdministratorSession_deleteScheduler(PyObject *self, PyObject *args) { |
6381 |
|
PyObject *resultobj; |
6382 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6383 |
< |
std::string arg2 = (std::string) "NONE" ; |
6384 |
< |
std::string result; |
6383 |
> |
std::string *arg2 = 0 ; |
6384 |
> |
int result; |
6385 |
> |
std::string temp2 ; |
6386 |
|
PyObject * obj0 = 0 ; |
6387 |
|
PyObject * obj1 = 0 ; |
6388 |
|
|
6389 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_deleteScheduler",&obj0,&obj1)) goto fail; |
6389 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteScheduler",&obj0,&obj1)) goto fail; |
6390 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6391 |
< |
if (obj1) { |
6392 |
< |
{ |
6393 |
< |
if (PyString_Check(obj1)) |
6394 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6395 |
< |
else |
6391 |
> |
{ |
6392 |
> |
if (PyString_Check(obj1)) { |
6393 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6394 |
> |
arg2 = &temp2; |
6395 |
> |
}else { |
6396 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6397 |
|
} |
6398 |
|
} |
1710 |
– |
result = (arg1)->deleteScheduler(arg2); |
1711 |
– |
|
6399 |
|
{ |
6400 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6400 |
> |
try { |
6401 |
> |
result = (int)(arg1)->deleteScheduler((std::string const &)*arg2); |
6402 |
> |
|
6403 |
> |
}catch (const BossSchedFailure & e) { |
6404 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6405 |
> |
return NULL; |
6406 |
> |
}catch (const std::exception& e) { |
6407 |
> |
PyErr_SetString ( BossError, e.what() ); |
6408 |
> |
return NULL; |
6409 |
> |
} |
6410 |
|
} |
6411 |
+ |
resultobj = PyInt_FromLong((long)result); |
6412 |
|
return resultobj; |
6413 |
|
fail: |
6414 |
|
return NULL; |
6415 |
|
} |
6416 |
|
|
6417 |
|
|
6418 |
< |
static PyObject *_wrap_BossAdministratorSession_purge(PyObject *self, PyObject *args) { |
6418 |
> |
static PyObject *_wrap_BossAdministratorSession_registerCHTool(PyObject *self, PyObject *args) { |
6419 |
|
PyObject *resultobj; |
6420 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6421 |
< |
std::string arg2 = (std::string) "NONE" ; |
6422 |
< |
std::string result; |
6421 |
> |
std::string *arg2 = 0 ; |
6422 |
> |
std::string arg3 = (std::string) "NULL" ; |
6423 |
> |
std::string arg4 = (std::string) "NULL" ; |
6424 |
> |
bool arg5 = (bool) false ; |
6425 |
> |
bool arg6 = (bool) false ; |
6426 |
> |
int result; |
6427 |
> |
std::string temp2 ; |
6428 |
|
PyObject * obj0 = 0 ; |
6429 |
|
PyObject * obj1 = 0 ; |
6430 |
+ |
PyObject * obj2 = 0 ; |
6431 |
+ |
PyObject * obj3 = 0 ; |
6432 |
+ |
PyObject * obj4 = 0 ; |
6433 |
+ |
PyObject * obj5 = 0 ; |
6434 |
|
|
6435 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_purge",&obj0,&obj1)) goto fail; |
6435 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO|OOOO:BossAdministratorSession_registerCHTool",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
6436 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6437 |
< |
if (obj1) { |
6437 |
> |
{ |
6438 |
> |
if (PyString_Check(obj1)) { |
6439 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6440 |
> |
arg2 = &temp2; |
6441 |
> |
}else { |
6442 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6443 |
> |
} |
6444 |
> |
} |
6445 |
> |
if (obj2) { |
6446 |
|
{ |
6447 |
< |
if (PyString_Check(obj1)) |
6448 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6447 |
> |
if (PyString_Check(obj2)) |
6448 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
6449 |
|
else |
6450 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6451 |
|
} |
6452 |
|
} |
6453 |
< |
result = (arg1)->purge(arg2); |
6454 |
< |
|
6453 |
> |
if (obj3) { |
6454 |
> |
{ |
6455 |
> |
if (PyString_Check(obj3)) |
6456 |
> |
arg4 = std::string(PyString_AsString(obj3)); |
6457 |
> |
else |
6458 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6459 |
> |
} |
6460 |
> |
} |
6461 |
> |
if (obj4) { |
6462 |
> |
arg5 = PyInt_AsLong(obj4) ? true : false; |
6463 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6464 |
> |
} |
6465 |
> |
if (obj5) { |
6466 |
> |
arg6 = PyInt_AsLong(obj5) ? true : false; |
6467 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6468 |
> |
} |
6469 |
|
{ |
6470 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6470 |
> |
try { |
6471 |
> |
result = (int)(arg1)->registerCHTool((std::string const &)*arg2,arg3,arg4,arg5,arg6); |
6472 |
> |
|
6473 |
> |
}catch (const BossSchedFailure & e) { |
6474 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6475 |
> |
return NULL; |
6476 |
> |
}catch (const std::exception& e) { |
6477 |
> |
PyErr_SetString ( BossError, e.what() ); |
6478 |
> |
return NULL; |
6479 |
> |
} |
6480 |
|
} |
6481 |
+ |
resultobj = PyInt_FromLong((long)result); |
6482 |
|
return resultobj; |
6483 |
|
fail: |
6484 |
|
return NULL; |
6485 |
|
} |
6486 |
|
|
6487 |
|
|
6488 |
< |
static PyObject *_wrap_BossAdministratorSession_registerCHTool(PyObject *self, PyObject *args) { |
6488 |
> |
static PyObject *_wrap_BossAdministratorSession_registerProgram(PyObject *self, PyObject *args) { |
6489 |
|
PyObject *resultobj; |
6490 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6491 |
< |
std::string arg2 = (std::string) "NONE" ; |
6492 |
< |
std::string result; |
6491 |
> |
std::string *arg2 = 0 ; |
6492 |
> |
std::string arg3 = (std::string) "NULL" ; |
6493 |
> |
std::string arg4 = (std::string) "NULL" ; |
6494 |
> |
std::string arg5 = (std::string) "NULL" ; |
6495 |
> |
std::string arg6 = (std::string) "NULL" ; |
6496 |
> |
std::string arg7 = (std::string) "" ; |
6497 |
> |
bool arg8 = (bool) false ; |
6498 |
> |
int result; |
6499 |
> |
std::string temp2 ; |
6500 |
|
PyObject * obj0 = 0 ; |
6501 |
|
PyObject * obj1 = 0 ; |
6502 |
+ |
PyObject * obj2 = 0 ; |
6503 |
+ |
PyObject * obj3 = 0 ; |
6504 |
+ |
PyObject * obj4 = 0 ; |
6505 |
+ |
PyObject * obj5 = 0 ; |
6506 |
+ |
PyObject * obj6 = 0 ; |
6507 |
+ |
PyObject * obj7 = 0 ; |
6508 |
|
|
6509 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_registerCHTool",&obj0,&obj1)) goto fail; |
6509 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOO:BossAdministratorSession_registerProgram",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
6510 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6511 |
< |
if (obj1) { |
6511 |
> |
{ |
6512 |
> |
if (PyString_Check(obj1)) { |
6513 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6514 |
> |
arg2 = &temp2; |
6515 |
> |
}else { |
6516 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6517 |
> |
} |
6518 |
> |
} |
6519 |
> |
if (obj2) { |
6520 |
|
{ |
6521 |
< |
if (PyString_Check(obj1)) |
6522 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6521 |
> |
if (PyString_Check(obj2)) |
6522 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
6523 |
|
else |
6524 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6525 |
|
} |
6526 |
|
} |
6527 |
< |
result = (arg1)->registerCHTool(arg2); |
6528 |
< |
|
6527 |
> |
if (obj3) { |
6528 |
> |
{ |
6529 |
> |
if (PyString_Check(obj3)) |
6530 |
> |
arg4 = std::string(PyString_AsString(obj3)); |
6531 |
> |
else |
6532 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6533 |
> |
} |
6534 |
> |
} |
6535 |
> |
if (obj4) { |
6536 |
> |
{ |
6537 |
> |
if (PyString_Check(obj4)) |
6538 |
> |
arg5 = std::string(PyString_AsString(obj4)); |
6539 |
> |
else |
6540 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6541 |
> |
} |
6542 |
> |
} |
6543 |
> |
if (obj5) { |
6544 |
> |
{ |
6545 |
> |
if (PyString_Check(obj5)) |
6546 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
6547 |
> |
else |
6548 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6549 |
> |
} |
6550 |
> |
} |
6551 |
> |
if (obj6) { |
6552 |
> |
{ |
6553 |
> |
if (PyString_Check(obj6)) |
6554 |
> |
arg7 = std::string(PyString_AsString(obj6)); |
6555 |
> |
else |
6556 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6557 |
> |
} |
6558 |
> |
} |
6559 |
> |
if (obj7) { |
6560 |
> |
arg8 = PyInt_AsLong(obj7) ? true : false; |
6561 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6562 |
> |
} |
6563 |
|
{ |
6564 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6564 |
> |
try { |
6565 |
> |
result = (int)(arg1)->registerProgram((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8); |
6566 |
> |
|
6567 |
> |
}catch (const BossSchedFailure & e) { |
6568 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6569 |
> |
return NULL; |
6570 |
> |
}catch (const std::exception& e) { |
6571 |
> |
PyErr_SetString ( BossError, e.what() ); |
6572 |
> |
return NULL; |
6573 |
> |
} |
6574 |
|
} |
6575 |
+ |
resultobj = PyInt_FromLong((long)result); |
6576 |
|
return resultobj; |
6577 |
|
fail: |
6578 |
|
return NULL; |
6579 |
|
} |
6580 |
|
|
6581 |
|
|
6582 |
< |
static PyObject *_wrap_BossAdministratorSession_registerProgram(PyObject *self, PyObject *args) { |
6582 |
> |
static PyObject *_wrap_BossAdministratorSession_registerRTMon(PyObject *self, PyObject *args) { |
6583 |
|
PyObject *resultobj; |
6584 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6585 |
< |
std::string arg2 = (std::string) "NONE" ; |
6586 |
< |
std::string result; |
6585 |
> |
std::string *arg2 = 0 ; |
6586 |
> |
std::string arg3 = (std::string) "NULL" ; |
6587 |
> |
std::string arg4 = (std::string) "NULL" ; |
6588 |
> |
std::string arg5 = (std::string) "NULL" ; |
6589 |
> |
bool arg6 = (bool) false ; |
6590 |
> |
bool arg7 = (bool) false ; |
6591 |
> |
int result; |
6592 |
> |
std::string temp2 ; |
6593 |
|
PyObject * obj0 = 0 ; |
6594 |
|
PyObject * obj1 = 0 ; |
6595 |
+ |
PyObject * obj2 = 0 ; |
6596 |
+ |
PyObject * obj3 = 0 ; |
6597 |
+ |
PyObject * obj4 = 0 ; |
6598 |
+ |
PyObject * obj5 = 0 ; |
6599 |
+ |
PyObject * obj6 = 0 ; |
6600 |
|
|
6601 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_registerProgram",&obj0,&obj1)) goto fail; |
6601 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO|OOOOO:BossAdministratorSession_registerRTMon",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
6602 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6603 |
< |
if (obj1) { |
6603 |
> |
{ |
6604 |
> |
if (PyString_Check(obj1)) { |
6605 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6606 |
> |
arg2 = &temp2; |
6607 |
> |
}else { |
6608 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6609 |
> |
} |
6610 |
> |
} |
6611 |
> |
if (obj2) { |
6612 |
|
{ |
6613 |
< |
if (PyString_Check(obj1)) |
6614 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6613 |
> |
if (PyString_Check(obj2)) |
6614 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
6615 |
|
else |
6616 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6617 |
|
} |
6618 |
|
} |
6619 |
< |
result = (arg1)->registerProgram(arg2); |
6620 |
< |
|
6619 |
> |
if (obj3) { |
6620 |
> |
{ |
6621 |
> |
if (PyString_Check(obj3)) |
6622 |
> |
arg4 = std::string(PyString_AsString(obj3)); |
6623 |
> |
else |
6624 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6625 |
> |
} |
6626 |
> |
} |
6627 |
> |
if (obj4) { |
6628 |
> |
{ |
6629 |
> |
if (PyString_Check(obj4)) |
6630 |
> |
arg5 = std::string(PyString_AsString(obj4)); |
6631 |
> |
else |
6632 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6633 |
> |
} |
6634 |
> |
} |
6635 |
> |
if (obj5) { |
6636 |
> |
arg6 = PyInt_AsLong(obj5) ? true : false; |
6637 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6638 |
> |
} |
6639 |
> |
if (obj6) { |
6640 |
> |
arg7 = PyInt_AsLong(obj6) ? true : false; |
6641 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6642 |
> |
} |
6643 |
|
{ |
6644 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6644 |
> |
try { |
6645 |
> |
result = (int)(arg1)->registerRTMon((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7); |
6646 |
> |
|
6647 |
> |
}catch (const BossSchedFailure & e) { |
6648 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6649 |
> |
return NULL; |
6650 |
> |
}catch (const std::exception& e) { |
6651 |
> |
PyErr_SetString ( BossError, e.what() ); |
6652 |
> |
return NULL; |
6653 |
> |
} |
6654 |
|
} |
6655 |
+ |
resultobj = PyInt_FromLong((long)result); |
6656 |
|
return resultobj; |
6657 |
|
fail: |
6658 |
|
return NULL; |
6659 |
|
} |
6660 |
|
|
6661 |
|
|
6662 |
< |
static PyObject *_wrap_BossAdministratorSession_registerRTMon(PyObject *self, PyObject *args) { |
6662 |
> |
static PyObject *_wrap_BossAdministratorSession_registerScheduler(PyObject *self, PyObject *args) { |
6663 |
|
PyObject *resultobj; |
6664 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6665 |
< |
std::string arg2 = (std::string) "NONE" ; |
6666 |
< |
std::string result; |
6665 |
> |
std::string *arg2 = 0 ; |
6666 |
> |
std::string arg3 = (std::string) "NULL" ; |
6667 |
> |
std::string arg4 = (std::string) "NULL" ; |
6668 |
> |
std::string arg5 = (std::string) "NULL" ; |
6669 |
> |
std::string arg6 = (std::string) "NULL" ; |
6670 |
> |
std::string arg7 = (std::string) "" ; |
6671 |
> |
std::string arg8 = (std::string) "" ; |
6672 |
> |
std::string arg9 = (std::string) "" ; |
6673 |
> |
std::string arg10 = (std::string) "" ; |
6674 |
> |
std::string const &arg11_defvalue = "" ; |
6675 |
> |
std::string *arg11 = (std::string *) &arg11_defvalue ; |
6676 |
> |
std::string arg12 = (std::string) "" ; |
6677 |
> |
std::string arg13 = (std::string) "" ; |
6678 |
> |
bool arg14 = (bool) false ; |
6679 |
> |
bool arg15 = (bool) false ; |
6680 |
> |
bool arg16 = (bool) false ; |
6681 |
> |
bool arg17 = (bool) false ; |
6682 |
> |
int result; |
6683 |
> |
std::string temp2 ; |
6684 |
> |
std::string temp11 ; |
6685 |
|
PyObject * obj0 = 0 ; |
6686 |
|
PyObject * obj1 = 0 ; |
6687 |
+ |
PyObject * obj2 = 0 ; |
6688 |
+ |
PyObject * obj3 = 0 ; |
6689 |
+ |
PyObject * obj4 = 0 ; |
6690 |
+ |
PyObject * obj5 = 0 ; |
6691 |
+ |
PyObject * obj6 = 0 ; |
6692 |
+ |
PyObject * obj7 = 0 ; |
6693 |
+ |
PyObject * obj8 = 0 ; |
6694 |
+ |
PyObject * obj9 = 0 ; |
6695 |
+ |
PyObject * obj10 = 0 ; |
6696 |
+ |
PyObject * obj11 = 0 ; |
6697 |
+ |
PyObject * obj12 = 0 ; |
6698 |
+ |
PyObject * obj13 = 0 ; |
6699 |
+ |
PyObject * obj14 = 0 ; |
6700 |
+ |
PyObject * obj15 = 0 ; |
6701 |
+ |
PyObject * obj16 = 0 ; |
6702 |
|
|
6703 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_registerRTMon",&obj0,&obj1)) goto fail; |
6703 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOOOOOOOOOOO:BossAdministratorSession_registerScheduler",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) goto fail; |
6704 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6705 |
< |
if (obj1) { |
6705 |
> |
{ |
6706 |
> |
if (PyString_Check(obj1)) { |
6707 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6708 |
> |
arg2 = &temp2; |
6709 |
> |
}else { |
6710 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6711 |
> |
} |
6712 |
> |
} |
6713 |
> |
if (obj2) { |
6714 |
|
{ |
6715 |
< |
if (PyString_Check(obj1)) |
6716 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6715 |
> |
if (PyString_Check(obj2)) |
6716 |
> |
arg3 = std::string(PyString_AsString(obj2)); |
6717 |
|
else |
6718 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6719 |
|
} |
6720 |
|
} |
6721 |
< |
result = (arg1)->registerRTMon(arg2); |
6721 |
> |
if (obj3) { |
6722 |
> |
{ |
6723 |
> |
if (PyString_Check(obj3)) |
6724 |
> |
arg4 = std::string(PyString_AsString(obj3)); |
6725 |
> |
else |
6726 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6727 |
> |
} |
6728 |
> |
} |
6729 |
> |
if (obj4) { |
6730 |
> |
{ |
6731 |
> |
if (PyString_Check(obj4)) |
6732 |
> |
arg5 = std::string(PyString_AsString(obj4)); |
6733 |
> |
else |
6734 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6735 |
> |
} |
6736 |
> |
} |
6737 |
> |
if (obj5) { |
6738 |
> |
{ |
6739 |
> |
if (PyString_Check(obj5)) |
6740 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
6741 |
> |
else |
6742 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6743 |
> |
} |
6744 |
> |
} |
6745 |
> |
if (obj6) { |
6746 |
> |
{ |
6747 |
> |
if (PyString_Check(obj6)) |
6748 |
> |
arg7 = std::string(PyString_AsString(obj6)); |
6749 |
> |
else |
6750 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6751 |
> |
} |
6752 |
> |
} |
6753 |
> |
if (obj7) { |
6754 |
> |
{ |
6755 |
> |
if (PyString_Check(obj7)) |
6756 |
> |
arg8 = std::string(PyString_AsString(obj7)); |
6757 |
> |
else |
6758 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6759 |
> |
} |
6760 |
> |
} |
6761 |
> |
if (obj8) { |
6762 |
> |
{ |
6763 |
> |
if (PyString_Check(obj8)) |
6764 |
> |
arg9 = std::string(PyString_AsString(obj8)); |
6765 |
> |
else |
6766 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6767 |
> |
} |
6768 |
> |
} |
6769 |
> |
if (obj9) { |
6770 |
> |
{ |
6771 |
> |
if (PyString_Check(obj9)) |
6772 |
> |
arg10 = std::string(PyString_AsString(obj9)); |
6773 |
> |
else |
6774 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6775 |
> |
} |
6776 |
> |
} |
6777 |
> |
if (obj10) { |
6778 |
> |
{ |
6779 |
> |
if (PyString_Check(obj10)) { |
6780 |
> |
temp11 = std::string(PyString_AsString(obj10)); |
6781 |
> |
arg11 = &temp11; |
6782 |
> |
}else { |
6783 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6784 |
> |
} |
6785 |
> |
} |
6786 |
> |
} |
6787 |
> |
if (obj11) { |
6788 |
> |
{ |
6789 |
> |
if (PyString_Check(obj11)) |
6790 |
> |
arg12 = std::string(PyString_AsString(obj11)); |
6791 |
> |
else |
6792 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6793 |
> |
} |
6794 |
> |
} |
6795 |
> |
if (obj12) { |
6796 |
> |
{ |
6797 |
> |
if (PyString_Check(obj12)) |
6798 |
> |
arg13 = std::string(PyString_AsString(obj12)); |
6799 |
> |
else |
6800 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6801 |
> |
} |
6802 |
> |
} |
6803 |
> |
if (obj13) { |
6804 |
> |
arg14 = PyInt_AsLong(obj13) ? true : false; |
6805 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6806 |
> |
} |
6807 |
> |
if (obj14) { |
6808 |
> |
arg15 = PyInt_AsLong(obj14) ? true : false; |
6809 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6810 |
> |
} |
6811 |
> |
if (obj15) { |
6812 |
> |
arg16 = PyInt_AsLong(obj15) ? true : false; |
6813 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6814 |
> |
} |
6815 |
> |
if (obj16) { |
6816 |
> |
arg17 = PyInt_AsLong(obj16) ? true : false; |
6817 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6818 |
> |
} |
6819 |
> |
{ |
6820 |
> |
try { |
6821 |
> |
result = (int)(arg1)->registerScheduler((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(std::string const &)*arg11,arg12,arg13,arg14,arg15,arg16,arg17); |
6822 |
> |
|
6823 |
> |
}catch (const BossSchedFailure & e) { |
6824 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6825 |
> |
return NULL; |
6826 |
> |
}catch (const std::exception& e) { |
6827 |
> |
PyErr_SetString ( BossError, e.what() ); |
6828 |
> |
return NULL; |
6829 |
> |
} |
6830 |
> |
} |
6831 |
> |
resultobj = PyInt_FromLong((long)result); |
6832 |
> |
return resultobj; |
6833 |
> |
fail: |
6834 |
> |
return NULL; |
6835 |
> |
} |
6836 |
> |
|
6837 |
> |
|
6838 |
> |
static PyObject *_wrap_BossAdministratorSession_help(PyObject *self, PyObject *args) { |
6839 |
> |
PyObject *resultobj; |
6840 |
> |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6841 |
> |
std::string result; |
6842 |
> |
PyObject * obj0 = 0 ; |
6843 |
|
|
6844 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_help",&obj0)) goto fail; |
6845 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6846 |
+ |
{ |
6847 |
+ |
try { |
6848 |
+ |
result = (arg1)->help(); |
6849 |
+ |
|
6850 |
+ |
}catch (const BossSchedFailure & e) { |
6851 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
6852 |
+ |
return NULL; |
6853 |
+ |
}catch (const std::exception& e) { |
6854 |
+ |
PyErr_SetString ( BossError, e.what() ); |
6855 |
+ |
return NULL; |
6856 |
+ |
} |
6857 |
+ |
} |
6858 |
|
{ |
6859 |
|
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6860 |
|
} |
6864 |
|
} |
6865 |
|
|
6866 |
|
|
6867 |
< |
static PyObject *_wrap_BossAdministratorSession_registerScheduler(PyObject *self, PyObject *args) { |
6867 |
> |
static PyObject *_wrap_BossAdministratorSession_SQL(PyObject *self, PyObject *args) { |
6868 |
|
PyObject *resultobj; |
6869 |
|
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6870 |
< |
std::string arg2 = (std::string) "NONE" ; |
6870 |
> |
std::string arg2 ; |
6871 |
> |
bool arg3 = (bool) false ; |
6872 |
|
std::string result; |
6873 |
|
PyObject * obj0 = 0 ; |
6874 |
|
PyObject * obj1 = 0 ; |
6875 |
+ |
PyObject * obj2 = 0 ; |
6876 |
|
|
6877 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossAdministratorSession_registerScheduler",&obj0,&obj1)) goto fail; |
6877 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO|O:BossAdministratorSession_SQL",&obj0,&obj1,&obj2)) goto fail; |
6878 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6879 |
< |
if (obj1) { |
6880 |
< |
{ |
6881 |
< |
if (PyString_Check(obj1)) |
6882 |
< |
arg2 = std::string(PyString_AsString(obj1)); |
6883 |
< |
else |
6879 |
> |
{ |
6880 |
> |
if (PyString_Check(obj1)) |
6881 |
> |
arg2 = std::string(PyString_AsString(obj1)); |
6882 |
> |
else |
6883 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6884 |
> |
} |
6885 |
> |
if (obj2) { |
6886 |
> |
arg3 = PyInt_AsLong(obj2) ? true : false; |
6887 |
> |
if (PyErr_Occurred()) SWIG_fail; |
6888 |
> |
} |
6889 |
> |
{ |
6890 |
> |
try { |
6891 |
> |
result = (arg1)->SQL(arg2,arg3); |
6892 |
> |
|
6893 |
> |
}catch (const BossSchedFailure & e) { |
6894 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6895 |
> |
return NULL; |
6896 |
> |
}catch (const std::exception& e) { |
6897 |
> |
PyErr_SetString ( BossError, e.what() ); |
6898 |
> |
return NULL; |
6899 |
> |
} |
6900 |
> |
} |
6901 |
> |
{ |
6902 |
> |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6903 |
> |
} |
6904 |
> |
return resultobj; |
6905 |
> |
fail: |
6906 |
> |
return NULL; |
6907 |
> |
} |
6908 |
> |
|
6909 |
> |
|
6910 |
> |
static PyObject *_wrap_BossAdministratorSession_purge(PyObject *self, PyObject *args) { |
6911 |
> |
PyObject *resultobj; |
6912 |
> |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6913 |
> |
std::string *arg2 = 0 ; |
6914 |
> |
std::string *arg3 = 0 ; |
6915 |
> |
std::string *arg4 = 0 ; |
6916 |
> |
std::string const &arg5_defvalue = "0" ; |
6917 |
> |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
6918 |
> |
int result; |
6919 |
> |
std::string temp2 ; |
6920 |
> |
std::string temp3 ; |
6921 |
> |
std::string temp4 ; |
6922 |
> |
std::string temp5 ; |
6923 |
> |
PyObject * obj0 = 0 ; |
6924 |
> |
PyObject * obj1 = 0 ; |
6925 |
> |
PyObject * obj2 = 0 ; |
6926 |
> |
PyObject * obj3 = 0 ; |
6927 |
> |
PyObject * obj4 = 0 ; |
6928 |
> |
|
6929 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOOO|O:BossAdministratorSession_purge",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
6930 |
> |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6931 |
> |
{ |
6932 |
> |
if (PyString_Check(obj1)) { |
6933 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
6934 |
> |
arg2 = &temp2; |
6935 |
> |
}else { |
6936 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
6937 |
|
} |
6938 |
|
} |
6939 |
< |
result = (arg1)->registerScheduler(arg2); |
6939 |
> |
{ |
6940 |
> |
if (PyString_Check(obj2)) { |
6941 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
6942 |
> |
arg3 = &temp3; |
6943 |
> |
}else { |
6944 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6945 |
> |
} |
6946 |
> |
} |
6947 |
> |
{ |
6948 |
> |
if (PyString_Check(obj3)) { |
6949 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
6950 |
> |
arg4 = &temp4; |
6951 |
> |
}else { |
6952 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6953 |
> |
} |
6954 |
> |
} |
6955 |
> |
if (obj4) { |
6956 |
> |
{ |
6957 |
> |
if (PyString_Check(obj4)) { |
6958 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
6959 |
> |
arg5 = &temp5; |
6960 |
> |
}else { |
6961 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6962 |
> |
} |
6963 |
> |
} |
6964 |
> |
} |
6965 |
> |
{ |
6966 |
> |
try { |
6967 |
> |
result = (int)(arg1)->purge((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5); |
6968 |
> |
|
6969 |
> |
}catch (const BossSchedFailure & e) { |
6970 |
> |
PyErr_SetString ( SchedulerError, e.what() ); |
6971 |
> |
return NULL; |
6972 |
> |
}catch (const std::exception& e) { |
6973 |
> |
PyErr_SetString ( BossError, e.what() ); |
6974 |
> |
return NULL; |
6975 |
> |
} |
6976 |
> |
} |
6977 |
> |
resultobj = PyInt_FromLong((long)result); |
6978 |
> |
return resultobj; |
6979 |
> |
fail: |
6980 |
> |
return NULL; |
6981 |
> |
} |
6982 |
> |
|
6983 |
> |
|
6984 |
> |
static PyObject *_wrap_BossAdministratorSession_registerPlugins(PyObject *self, PyObject *args) { |
6985 |
> |
PyObject *resultobj; |
6986 |
> |
BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ; |
6987 |
> |
std::string arg2 ; |
6988 |
> |
int result; |
6989 |
> |
PyObject * obj0 = 0 ; |
6990 |
> |
PyObject * obj1 = 0 ; |
6991 |
|
|
6992 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_registerPlugins",&obj0,&obj1)) goto fail; |
6993 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6994 |
|
{ |
6995 |
< |
resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); |
6995 |
> |
if (PyString_Check(obj1)) |
6996 |
> |
arg2 = std::string(PyString_AsString(obj1)); |
6997 |
> |
else |
6998 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
6999 |
|
} |
7000 |
+ |
{ |
7001 |
+ |
try { |
7002 |
+ |
result = (int)(arg1)->registerPlugins(arg2); |
7003 |
+ |
|
7004 |
+ |
}catch (const BossSchedFailure & e) { |
7005 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
7006 |
+ |
return NULL; |
7007 |
+ |
}catch (const std::exception& e) { |
7008 |
+ |
PyErr_SetString ( BossError, e.what() ); |
7009 |
+ |
return NULL; |
7010 |
+ |
} |
7011 |
+ |
} |
7012 |
+ |
resultobj = PyInt_FromLong((long)result); |
7013 |
|
return resultobj; |
7014 |
|
fail: |
7015 |
|
return NULL; |
7024 |
|
return Py_BuildValue((char *)""); |
7025 |
|
} |
7026 |
|
static PyMethodDef SwigMethods[] = { |
7027 |
+ |
{ (char *)"new_objectMap", _wrap_new_objectMap, METH_VARARGS }, |
7028 |
+ |
{ (char *)"objectMap___len__", _wrap_objectMap___len__, METH_VARARGS }, |
7029 |
+ |
{ (char *)"objectMap_clear", _wrap_objectMap_clear, METH_VARARGS }, |
7030 |
+ |
{ (char *)"objectMap___nonzero__", _wrap_objectMap___nonzero__, METH_VARARGS }, |
7031 |
+ |
{ (char *)"objectMap___getitem__", _wrap_objectMap___getitem__, METH_VARARGS }, |
7032 |
+ |
{ (char *)"objectMap___setitem__", _wrap_objectMap___setitem__, METH_VARARGS }, |
7033 |
+ |
{ (char *)"objectMap___delitem__", _wrap_objectMap___delitem__, METH_VARARGS }, |
7034 |
+ |
{ (char *)"objectMap_has_key", _wrap_objectMap_has_key, METH_VARARGS }, |
7035 |
+ |
{ (char *)"objectMap_keys", _wrap_objectMap_keys, METH_VARARGS }, |
7036 |
+ |
{ (char *)"objectMap_values", _wrap_objectMap_values, METH_VARARGS }, |
7037 |
+ |
{ (char *)"objectMap_items", _wrap_objectMap_items, METH_VARARGS }, |
7038 |
+ |
{ (char *)"objectMap___contains__", _wrap_objectMap___contains__, METH_VARARGS }, |
7039 |
+ |
{ (char *)"objectMap___iter__", _wrap_objectMap___iter__, METH_VARARGS }, |
7040 |
+ |
{ (char *)"delete_objectMap", _wrap_delete_objectMap, METH_VARARGS }, |
7041 |
+ |
{ (char *)"objectMap_swigregister", objectMap_swigregister, METH_VARARGS }, |
7042 |
+ |
{ (char *)"new_vector_string", _wrap_new_vector_string, METH_VARARGS }, |
7043 |
+ |
{ (char *)"vector_string___len__", _wrap_vector_string___len__, METH_VARARGS }, |
7044 |
+ |
{ (char *)"vector_string___nonzero__", _wrap_vector_string___nonzero__, METH_VARARGS }, |
7045 |
+ |
{ (char *)"vector_string_clear", _wrap_vector_string_clear, METH_VARARGS }, |
7046 |
+ |
{ (char *)"vector_string_append", _wrap_vector_string_append, METH_VARARGS }, |
7047 |
+ |
{ (char *)"vector_string_pop", _wrap_vector_string_pop, METH_VARARGS }, |
7048 |
+ |
{ (char *)"vector_string___getitem__", _wrap_vector_string___getitem__, METH_VARARGS }, |
7049 |
+ |
{ (char *)"vector_string___getslice__", _wrap_vector_string___getslice__, METH_VARARGS }, |
7050 |
+ |
{ (char *)"vector_string___setitem__", _wrap_vector_string___setitem__, METH_VARARGS }, |
7051 |
+ |
{ (char *)"vector_string___setslice__", _wrap_vector_string___setslice__, METH_VARARGS }, |
7052 |
+ |
{ (char *)"vector_string___delitem__", _wrap_vector_string___delitem__, METH_VARARGS }, |
7053 |
+ |
{ (char *)"vector_string___delslice__", _wrap_vector_string___delslice__, METH_VARARGS }, |
7054 |
+ |
{ (char *)"delete_vector_string", _wrap_delete_vector_string, METH_VARARGS }, |
7055 |
+ |
{ (char *)"vector_string_swigregister", vector_string_swigregister, METH_VARARGS }, |
7056 |
|
{ (char *)"new_BossSession", _wrap_new_BossSession, METH_VARARGS }, |
7057 |
|
{ (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS }, |
7058 |
+ |
{ (char *)"BossSession_resetDB", _wrap_BossSession_resetDB, METH_VARARGS }, |
7059 |
+ |
{ (char *)"BossSession_clear", _wrap_BossSession_clear, METH_VARARGS }, |
7060 |
+ |
{ (char *)"BossSession_makeBossTask", _wrap_BossSession_makeBossTask, METH_VARARGS }, |
7061 |
+ |
{ (char *)"BossSession_destroyBossTask", _wrap_BossSession_destroyBossTask, METH_VARARGS }, |
7062 |
+ |
{ (char *)"BossSession_showCHTools", _wrap_BossSession_showCHTools, METH_VARARGS }, |
7063 |
+ |
{ (char *)"BossSession_showProgramTypes", _wrap_BossSession_showProgramTypes, METH_VARARGS }, |
7064 |
+ |
{ (char *)"BossSession_showRTMon", _wrap_BossSession_showRTMon, METH_VARARGS }, |
7065 |
+ |
{ (char *)"BossSession_showSchedulers", _wrap_BossSession_showSchedulers, METH_VARARGS }, |
7066 |
+ |
{ (char *)"BossSession_defaultCHTool", _wrap_BossSession_defaultCHTool, METH_VARARGS }, |
7067 |
+ |
{ (char *)"BossSession_defaultProgramType", _wrap_BossSession_defaultProgramType, METH_VARARGS }, |
7068 |
+ |
{ (char *)"BossSession_defaultRTMon", _wrap_BossSession_defaultRTMon, METH_VARARGS }, |
7069 |
+ |
{ (char *)"BossSession_defaultScheduler", _wrap_BossSession_defaultScheduler, METH_VARARGS }, |
7070 |
+ |
{ (char *)"BossSession_version", _wrap_BossSession_version, METH_VARARGS }, |
7071 |
+ |
{ (char *)"BossSession_clientID", _wrap_BossSession_clientID, METH_VARARGS }, |
7072 |
+ |
{ (char *)"BossSession_showConfigs", _wrap_BossSession_showConfigs, METH_VARARGS }, |
7073 |
+ |
{ (char *)"BossSession_RTupdate", _wrap_BossSession_RTupdate, METH_VARARGS }, |
7074 |
+ |
{ (char *)"BossSession_listMatch", _wrap_BossSession_listMatch, METH_VARARGS }, |
7075 |
+ |
{ (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS }, |
7076 |
+ |
{ (char *)"BossSession_selectTasks", _wrap_BossSession_selectTasks, METH_VARARGS }, |
7077 |
+ |
{ (char *)"BossSession_selectTasksByName", _wrap_BossSession_selectTasksByName, METH_VARARGS }, |
7078 |
+ |
{ (char *)"BossSession_query", _wrap_BossSession_query, METH_VARARGS }, |
7079 |
+ |
{ (char *)"BossSession_getTasksByName", _wrap_BossSession_getTasksByName, METH_VARARGS }, |
7080 |
+ |
{ (char *)"BossSession_getTasksByJobName", _wrap_BossSession_getTasksByJobName, METH_VARARGS }, |
7081 |
+ |
{ (char *)"BossSession_tasksInMemory", _wrap_BossSession_tasksInMemory, METH_VARARGS }, |
7082 |
+ |
{ (char *)"BossSession_locate", _wrap_BossSession_locate, METH_VARARGS }, |
7083 |
+ |
{ (char *)"BossSession_show", _wrap_BossSession_show, METH_VARARGS }, |
7084 |
+ |
{ (char *)"BossSession_CHTools", _wrap_BossSession_CHTools, METH_VARARGS }, |
7085 |
+ |
{ (char *)"BossSession_ProgramTypes", _wrap_BossSession_ProgramTypes, METH_VARARGS }, |
7086 |
+ |
{ (char *)"BossSession_RTMons", _wrap_BossSession_RTMons, METH_VARARGS }, |
7087 |
+ |
{ (char *)"BossSession_schedulers", _wrap_BossSession_schedulers, METH_VARARGS }, |
7088 |
+ |
{ (char *)"BossSession_schedListMatch", _wrap_BossSession_schedListMatch, METH_VARARGS }, |
7089 |
+ |
{ (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS }, |
7090 |
|
{ (char *)"BossSession_swigregister", BossSession_swigregister, METH_VARARGS }, |
7091 |
< |
{ (char *)"new_BossUserSession", _wrap_new_BossUserSession, METH_VARARGS }, |
7092 |
< |
{ (char *)"delete_BossUserSession", _wrap_delete_BossUserSession, METH_VARARGS }, |
7093 |
< |
{ (char *)"BossUserSession_exitCode", _wrap_BossUserSession_exitCode, METH_VARARGS }, |
7094 |
< |
{ (char *)"BossUserSession_out", _wrap_BossUserSession_out, METH_VARARGS }, |
7095 |
< |
{ (char *)"BossUserSession_err", _wrap_BossUserSession_err, METH_VARARGS }, |
7096 |
< |
{ (char *)"BossUserSession_help", _wrap_BossUserSession_help, METH_VARARGS }, |
7097 |
< |
{ (char *)"BossUserSession_RTupdate", _wrap_BossUserSession_RTupdate, METH_VARARGS }, |
7098 |
< |
{ (char *)"BossUserSession_archive", _wrap_BossUserSession_archive, METH_VARARGS }, |
7099 |
< |
{ (char *)"BossUserSession_clientID", _wrap_BossUserSession_clientID, METH_VARARGS }, |
7100 |
< |
{ (char *)"BossUserSession_declare", _wrap_BossUserSession_declare, METH_VARARGS }, |
7101 |
< |
{ (char *)"BossUserSession_deleteTask", _wrap_BossUserSession_deleteTask, METH_VARARGS }, |
7102 |
< |
{ (char *)"BossUserSession_getOutput", _wrap_BossUserSession_getOutput, METH_VARARGS }, |
7103 |
< |
{ (char *)"BossUserSession_kill", _wrap_BossUserSession_kill, METH_VARARGS }, |
7104 |
< |
{ (char *)"BossUserSession_listMatch", _wrap_BossUserSession_listMatch, METH_VARARGS }, |
7105 |
< |
{ (char *)"BossUserSession_query", _wrap_BossUserSession_query, METH_VARARGS }, |
7106 |
< |
{ (char *)"BossUserSession_showCHTools", _wrap_BossUserSession_showCHTools, METH_VARARGS }, |
7107 |
< |
{ (char *)"BossUserSession_showConfig", _wrap_BossUserSession_showConfig, METH_VARARGS }, |
7108 |
< |
{ (char *)"BossUserSession_showProgramTypes", _wrap_BossUserSession_showProgramTypes, METH_VARARGS }, |
7109 |
< |
{ (char *)"BossUserSession_showRTMon", _wrap_BossUserSession_showRTMon, METH_VARARGS }, |
7110 |
< |
{ (char *)"BossUserSession_showSchedulers", _wrap_BossUserSession_showSchedulers, METH_VARARGS }, |
7111 |
< |
{ (char *)"BossUserSession_submit", _wrap_BossUserSession_submit, METH_VARARGS }, |
7112 |
< |
{ (char *)"BossUserSession_version", _wrap_BossUserSession_version, METH_VARARGS }, |
7113 |
< |
{ (char *)"BossUserSession_swigregister", BossUserSession_swigregister, METH_VARARGS }, |
7091 |
> |
{ (char *)"new_BossTaskException", _wrap_new_BossTaskException, METH_VARARGS }, |
7092 |
> |
{ (char *)"delete_BossTaskException", _wrap_delete_BossTaskException, METH_VARARGS }, |
7093 |
> |
{ (char *)"BossTaskException_swigregister", BossTaskException_swigregister, METH_VARARGS }, |
7094 |
> |
{ (char *)"BossTask_job_begin", _wrap_BossTask_job_begin, METH_VARARGS }, |
7095 |
> |
{ (char *)"BossTask_job_end", _wrap_BossTask_job_end, METH_VARARGS }, |
7096 |
> |
{ (char *)"BossTask_queryJobPrograms", _wrap_BossTask_queryJobPrograms, METH_VARARGS }, |
7097 |
> |
{ (char *)"BossTask_queryProgram", _wrap_BossTask_queryProgram, METH_VARARGS }, |
7098 |
> |
{ (char *)"BossTask_queryProgramExec", _wrap_BossTask_queryProgramExec, METH_VARARGS }, |
7099 |
> |
{ (char *)"delete_BossTask", _wrap_delete_BossTask, METH_VARARGS }, |
7100 |
> |
{ (char *)"new_BossTask", _wrap_new_BossTask, METH_VARARGS }, |
7101 |
> |
{ (char *)"BossTask_id", _wrap_BossTask_id, METH_VARARGS }, |
7102 |
> |
{ (char *)"BossTask_name", _wrap_BossTask_name, METH_VARARGS }, |
7103 |
> |
{ (char *)"BossTask_chain", _wrap_BossTask_chain, METH_VARARGS }, |
7104 |
> |
{ (char *)"BossTask_taskMap", _wrap_BossTask_taskMap, METH_VARARGS }, |
7105 |
> |
{ (char *)"BossTask_jobsMap", _wrap_BossTask_jobsMap, METH_VARARGS }, |
7106 |
> |
{ (char *)"BossTask_jobMap", _wrap_BossTask_jobMap, METH_VARARGS }, |
7107 |
> |
{ (char *)"BossTask_programsMap", _wrap_BossTask_programsMap, METH_VARARGS }, |
7108 |
> |
{ (char *)"BossTask_declare", _wrap_BossTask_declare, METH_VARARGS }, |
7109 |
> |
{ (char *)"BossTask_remove", _wrap_BossTask_remove, METH_VARARGS }, |
7110 |
> |
{ (char *)"BossTask_archive", _wrap_BossTask_archive, METH_VARARGS }, |
7111 |
> |
{ (char *)"BossTask_submit", _wrap_BossTask_submit, METH_VARARGS }, |
7112 |
> |
{ (char *)"BossTask_reSubmit", _wrap_BossTask_reSubmit, METH_VARARGS }, |
7113 |
> |
{ (char *)"BossTask_kill", _wrap_BossTask_kill, METH_VARARGS }, |
7114 |
> |
{ (char *)"BossTask_getOutput", _wrap_BossTask_getOutput, METH_VARARGS }, |
7115 |
> |
{ (char *)"BossTask_loadByName", _wrap_BossTask_loadByName, METH_VARARGS }, |
7116 |
> |
{ (char *)"BossTask_load", _wrap_BossTask_load, METH_VARARGS }, |
7117 |
> |
{ (char *)"BossTask_schedulerQuery", _wrap_BossTask_schedulerQuery, METH_VARARGS }, |
7118 |
> |
{ (char *)"BossTask_query", _wrap_BossTask_query, METH_VARARGS }, |
7119 |
> |
{ (char *)"BossTask_query_out", _wrap_BossTask_query_out, METH_VARARGS }, |
7120 |
> |
{ (char *)"BossTask_clear", _wrap_BossTask_clear, METH_VARARGS }, |
7121 |
> |
{ (char *)"BossTask_appendToPyDict", _wrap_BossTask_appendToPyDict, METH_VARARGS }, |
7122 |
> |
{ (char *)"BossTask_jobDict", _wrap_BossTask_jobDict, METH_VARARGS }, |
7123 |
> |
{ (char *)"BossTask_jobsDict", _wrap_BossTask_jobsDict, METH_VARARGS }, |
7124 |
> |
{ (char *)"BossTask_job", _wrap_BossTask_job, METH_VARARGS }, |
7125 |
> |
{ (char *)"BossTask_Chain", _wrap_BossTask_Chain, METH_VARARGS }, |
7126 |
> |
{ (char *)"BossTask_jobStates", _wrap_BossTask_jobStates, METH_VARARGS }, |
7127 |
> |
{ (char *)"BossTask_jobStatistic", _wrap_BossTask_jobStatistic, METH_VARARGS }, |
7128 |
> |
{ (char *)"BossTask_progDict", _wrap_BossTask_progDict, METH_VARARGS }, |
7129 |
> |
{ (char *)"BossTask_jobPrograms", _wrap_BossTask_jobPrograms, METH_VARARGS }, |
7130 |
> |
{ (char *)"BossTask_program", _wrap_BossTask_program, METH_VARARGS }, |
7131 |
> |
{ (char *)"BossTask_programExec", _wrap_BossTask_programExec, METH_VARARGS }, |
7132 |
> |
{ (char *)"BossTask_specific", _wrap_BossTask_specific, METH_VARARGS }, |
7133 |
> |
{ (char *)"BossTask_swigregister", BossTask_swigregister, METH_VARARGS }, |
7134 |
|
{ (char *)"new_BossAdministratorSession", _wrap_new_BossAdministratorSession, METH_VARARGS }, |
7135 |
|
{ (char *)"delete_BossAdministratorSession", _wrap_delete_BossAdministratorSession, METH_VARARGS }, |
1902 |
– |
{ (char *)"BossAdministratorSession_exitCode", _wrap_BossAdministratorSession_exitCode, METH_VARARGS }, |
1903 |
– |
{ (char *)"BossAdministratorSession_out", _wrap_BossAdministratorSession_out, METH_VARARGS }, |
1904 |
– |
{ (char *)"BossAdministratorSession_err", _wrap_BossAdministratorSession_err, METH_VARARGS }, |
1905 |
– |
{ (char *)"BossAdministratorSession_help", _wrap_BossAdministratorSession_help, METH_VARARGS }, |
1906 |
– |
{ (char *)"BossAdministratorSession_SQL", _wrap_BossAdministratorSession_SQL, METH_VARARGS }, |
7136 |
|
{ (char *)"BossAdministratorSession_configureDB", _wrap_BossAdministratorSession_configureDB, METH_VARARGS }, |
7137 |
|
{ (char *)"BossAdministratorSession_configureRTMonDB", _wrap_BossAdministratorSession_configureRTMonDB, METH_VARARGS }, |
7138 |
|
{ (char *)"BossAdministratorSession_deleteCHTool", _wrap_BossAdministratorSession_deleteCHTool, METH_VARARGS }, |
7139 |
|
{ (char *)"BossAdministratorSession_deleteProgramType", _wrap_BossAdministratorSession_deleteProgramType, METH_VARARGS }, |
7140 |
|
{ (char *)"BossAdministratorSession_deleteRTMon", _wrap_BossAdministratorSession_deleteRTMon, METH_VARARGS }, |
7141 |
|
{ (char *)"BossAdministratorSession_deleteScheduler", _wrap_BossAdministratorSession_deleteScheduler, METH_VARARGS }, |
1913 |
– |
{ (char *)"BossAdministratorSession_purge", _wrap_BossAdministratorSession_purge, METH_VARARGS }, |
7142 |
|
{ (char *)"BossAdministratorSession_registerCHTool", _wrap_BossAdministratorSession_registerCHTool, METH_VARARGS }, |
7143 |
|
{ (char *)"BossAdministratorSession_registerProgram", _wrap_BossAdministratorSession_registerProgram, METH_VARARGS }, |
7144 |
|
{ (char *)"BossAdministratorSession_registerRTMon", _wrap_BossAdministratorSession_registerRTMon, METH_VARARGS }, |
7145 |
|
{ (char *)"BossAdministratorSession_registerScheduler", _wrap_BossAdministratorSession_registerScheduler, METH_VARARGS }, |
7146 |
+ |
{ (char *)"BossAdministratorSession_help", _wrap_BossAdministratorSession_help, METH_VARARGS }, |
7147 |
+ |
{ (char *)"BossAdministratorSession_SQL", _wrap_BossAdministratorSession_SQL, METH_VARARGS }, |
7148 |
+ |
{ (char *)"BossAdministratorSession_purge", _wrap_BossAdministratorSession_purge, METH_VARARGS }, |
7149 |
+ |
{ (char *)"BossAdministratorSession_registerPlugins", _wrap_BossAdministratorSession_registerPlugins, METH_VARARGS }, |
7150 |
|
{ (char *)"BossAdministratorSession_swigregister", BossAdministratorSession_swigregister, METH_VARARGS }, |
7151 |
|
{ NULL, NULL } |
7152 |
|
}; |
7154 |
|
|
7155 |
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
7156 |
|
|
7157 |
< |
static void *_p_BossUserSessionTo_p_BossSession(void *x) { |
7158 |
< |
return (void *)((BossSession *) ((BossUserSession *) x)); |
7159 |
< |
} |
7160 |
< |
static void *_p_BossAdministratorSessionTo_p_BossSession(void *x) { |
7161 |
< |
return (void *)((BossSession *) ((BossAdministratorSession *) x)); |
7162 |
< |
} |
7163 |
< |
static swig_type_info _swigt__p_BossSession[] = {{"_p_BossSession", 0, "BossSession *", 0},{"_p_BossSession"},{"_p_BossUserSession", _p_BossUserSessionTo_p_BossSession},{"_p_BossAdministratorSession", _p_BossAdministratorSessionTo_p_BossSession},{0}}; |
7164 |
< |
static swig_type_info _swigt__p_BossUserSession[] = {{"_p_BossUserSession", 0, "BossUserSession *", 0},{"_p_BossUserSession"},{0}}; |
7157 |
> |
static swig_type_info _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t[] = {{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t", 0, "std::vector<std::pair<BossProgram,BossProgramExec > > *", 0},{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t"},{0}}; |
7158 |
> |
static swig_type_info _swigt__p_XMLDoc[] = {{"_p_XMLDoc", 0, "XMLDoc *", 0},{"_p_XMLDoc"},{0}}; |
7159 |
> |
static swig_type_info _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator[] = {{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator", 0, "std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *", 0},{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator"},{0}}; |
7160 |
> |
static swig_type_info _swigt__p_BossProgramExec[] = {{"_p_BossProgramExec", 0, "BossProgramExec *", 0},{"_p_BossProgramExec"},{0}}; |
7161 |
> |
static swig_type_info _swigt__p_std__vectorTBossTask_p_t[] = {{"_p_std__vectorTBossTask_p_t", 0, "std::vector<BossTask * > *", 0},{"_p_std__vectorTBossTask_p_t"},{0}}; |
7162 |
> |
static swig_type_info _swigt__p_BossChain[] = {{"_p_BossChain", 0, "BossChain *", 0},{"_p_BossChain"},{0}}; |
7163 |
> |
static swig_type_info _swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t[] = {{"_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t", 0, "std::map<std::string,std::map<std::string,std::string > > *", 0},{"_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t"},{0}}; |
7164 |
> |
static swig_type_info _swigt__p_BossTask[] = {{"_p_BossTask", 0, "BossTask *", 0},{"_p_BossTask"},{0}}; |
7165 |
> |
static swig_type_info _swigt__p_BossTaskException[] = {{"_p_BossTaskException", 0, "BossTaskException *", 0},{"_p_BossTaskException"},{0}}; |
7166 |
> |
static swig_type_info _swigt__p_std__ostream[] = {{"_p_std__ostream", 0, "std::ostream *", 0},{"_p_std__ostream"},{0}}; |
7167 |
> |
static swig_type_info _swigt__p_BossProgram[] = {{"_p_BossProgram", 0, "BossProgram *", 0},{"_p_BossProgram"},{0}}; |
7168 |
> |
static swig_type_info _swigt__p_printOption[] = {{"_p_printOption", 0, "printOption const &", 0},{"_p_printOption"},{0}}; |
7169 |
> |
static swig_type_info _swigt__p_BossAttributeContainer[] = {{"_p_BossAttributeContainer", 0, "BossAttributeContainer *", 0},{"_p_BossAttributeContainer"},{0}}; |
7170 |
> |
static swig_type_info _swigt__p_BossJob[] = {{"_p_BossJob", 0, "BossJob *", 0},{"_p_BossJob"},{0}}; |
7171 |
> |
static swig_type_info _swigt__p_BossDatabase[] = {{"_p_BossDatabase", 0, "BossDatabase *", 0},{"_p_BossDatabase"},{0}}; |
7172 |
> |
static swig_type_info _swigt__p_BossSession[] = {{"_p_BossSession", 0, "BossSession *", 0},{"_p_BossSession"},{0}}; |
7173 |
> |
static swig_type_info _swigt__p_std__vectorTstd__string_t[] = {{"_p_std__vectorTstd__string_t", 0, "std::vector<std::string > *", 0},{"_p_std__vectorTstd__string_t"},{0}}; |
7174 |
> |
static swig_type_info _swigt__p_std__mapTstd__string_std__string_t[] = {{"_p_std__mapTstd__string_std__string_t", 0, "std::map<std::string,std::string > *", 0},{"_p_std__mapTstd__string_std__string_t"},{0}}; |
7175 |
|
static swig_type_info _swigt__p_BossAdministratorSession[] = {{"_p_BossAdministratorSession", 0, "BossAdministratorSession *", 0},{"_p_BossAdministratorSession"},{0}}; |
7176 |
+ |
static swig_type_info _swigt__p_BossTask__job_iterator[] = {{"_p_BossTask__job_iterator", 0, "BossTask::job_iterator const *", 0},{"_p_BossTask__job_iterator"},{"_p_std__vectorTBossJob_p_t__const_iterator"},{0}}; |
7177 |
+ |
static swig_type_info _swigt__p_std__vectorTBossJob_p_t__const_iterator[] = {{"_p_std__vectorTBossJob_p_t__const_iterator", 0, "std::vector<BossJob * >::const_iterator *", 0},{"_p_std__vectorTBossJob_p_t__const_iterator"},{"_p_BossTask__job_iterator"},{0}}; |
7178 |
+ |
static swig_type_info _swigt__p_jobStates[] = {{"_p_jobStates", 0, "jobStates const &", 0},{"_p_jobStates"},{0}}; |
7179 |
|
|
7180 |
|
static swig_type_info *swig_types_initial[] = { |
7181 |
+ |
_swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t, |
7182 |
+ |
_swigt__p_XMLDoc, |
7183 |
+ |
_swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator, |
7184 |
+ |
_swigt__p_BossProgramExec, |
7185 |
+ |
_swigt__p_std__vectorTBossTask_p_t, |
7186 |
+ |
_swigt__p_BossChain, |
7187 |
+ |
_swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, |
7188 |
+ |
_swigt__p_BossTask, |
7189 |
+ |
_swigt__p_BossTaskException, |
7190 |
+ |
_swigt__p_std__ostream, |
7191 |
+ |
_swigt__p_BossProgram, |
7192 |
+ |
_swigt__p_printOption, |
7193 |
+ |
_swigt__p_BossAttributeContainer, |
7194 |
+ |
_swigt__p_BossJob, |
7195 |
+ |
_swigt__p_BossDatabase, |
7196 |
|
_swigt__p_BossSession, |
7197 |
< |
_swigt__p_BossUserSession, |
7197 |
> |
_swigt__p_std__vectorTstd__string_t, |
7198 |
> |
_swigt__p_std__mapTstd__string_std__string_t, |
7199 |
|
_swigt__p_BossAdministratorSession, |
7200 |
+ |
_swigt__p_BossTask__job_iterator, |
7201 |
+ |
_swigt__p_std__vectorTBossJob_p_t__const_iterator, |
7202 |
+ |
_swigt__p_jobStates, |
7203 |
|
0 |
7204 |
|
}; |
7205 |
|
|
7207 |
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
7208 |
|
|
7209 |
|
static swig_const_info swig_const_table[] = { |
7210 |
+ |
{ SWIG_PY_INT, (char *)"RUNNING", (long) RUNNING, 0, 0, 0}, |
7211 |
+ |
{ SWIG_PY_INT, (char *)"SCHEDULED", (long) SCHEDULED, 0, 0, 0}, |
7212 |
+ |
{ SWIG_PY_INT, (char *)"SUBMITTED", (long) SUBMITTED, 0, 0, 0}, |
7213 |
+ |
{ SWIG_PY_INT, (char *)"ALL", (long) ALL, 0, 0, 0}, |
7214 |
+ |
{ SWIG_PY_INT, (char *)"STATUS_ONLY", (long) STATUS_ONLY, 0, 0, 0}, |
7215 |
+ |
{ SWIG_PY_INT, (char *)"NORMAL", (long) NORMAL, 0, 0, 0}, |
7216 |
+ |
{ SWIG_PY_INT, (char *)"SPECIFIC", (long) SPECIFIC, 0, 0, 0}, |
7217 |
+ |
{ SWIG_PY_INT, (char *)"PROGRAMS", (long) PROGRAMS, 0, 0, 0}, |
7218 |
+ |
{ SWIG_PY_INT, (char *)"FULL", (long) FULL, 0, 0, 0}, |
7219 |
|
{0}}; |
7220 |
|
|
7221 |
|
#ifdef __cplusplus |
7242 |
|
} |
7243 |
|
SWIG_InstallConstants(d,swig_const_table); |
7244 |
|
|
7245 |
+ |
|
7246 |
+ |
// define custom exceptions |
7247 |
+ |
PyObject *e; |
7248 |
+ |
PyMethodDef tp_methods = { |
7249 |
+ |
NULL, NULL, 0, NULL |
7250 |
+ |
}; |
7251 |
+ |
e = Py_InitModule("BossSession", &tp_methods); |
7252 |
+ |
// generic BOSS exception |
7253 |
+ |
BossError = PyErr_NewException("BossSession.BossError", NULL, NULL); |
7254 |
+ |
Py_INCREF(BossError); |
7255 |
+ |
PyModule_AddObject(e, "BossError", BossError); |
7256 |
+ |
// scheduler interaction BOSS exception |
7257 |
+ |
SchedulerError = PyErr_NewException("BossSession.BossError.SchedulerError", BossError, NULL); |
7258 |
+ |
Py_INCREF(SchedulerError); |
7259 |
+ |
PyModule_AddObject(e, "SchedulerError", SchedulerError); |
7260 |
+ |
|
7261 |
|
} |
7262 |
|
|