A
Amit_Basnak
Dear friends
I have to pass the objec of a class which is a part of afunction in
thefunction call.
my code looks like this now
#include <iostream.h>
#include <waspc/common.h>
#include <waspc/runtime/Runtime.h>
#include "WFWuList.h"
using std::cout;
using std::cerr;
using std::endl;
class WFStructSearch;
ArrayOfWFWuStructFe WfListWuClnt(
WFWuHandle,
char* process_id,
char* process_step_id,
char* cluster_id,
WFStructSearch *search_params,
char* incl_active_wu,
int nbr_requested
);
int main (int argc,char *argv[]) {
WASP_Runtime::clientInitialize ();
try {
WASP_Runtime::clientStart("conf/client-core.xml", NULL);
WFWuList a;
ArrayOfWFWuStructFe ret;
WFStructSearch search;
ret = a.WfListWuClnt( NULL, process_id, process_step_id, cluster_id,
::WFStructSearch &search, incl_active_wu, nbr_requested));
cout << "There are " << numElements << " elements in the table"
<< endl;
}
catch (WASP_Exception *exc) {
char *trace=GET_TRACE (exc);
cerr << "Exception during call: " << exc->getCharMessage() <<
endl;
cerr << "Stack trace follows: " << endl << trace << endl;
delete[] trace;
delete exc;
}
WASP_Runtime::clientTerminate();
return 0;
}
-----------------------------------------------------------------------------------------------------------------------------------------
The required function is
ArrayOfWFWuStructFe WfListWuClnt(
WFWuHandle,
char* process_id,
char* process_step_id,
char* cluster_id,
WFStructSearch *search_params,
char* incl_active_wu,
int nbr_requested
);
I have already declared a class
class WFStructSearch;
search_params is the pointer to it.
And my function call is
ret = a.WfListWuClnt( NULL, process_id, process_step_id, cluster_id,
::WFStructSearch &search, incl_active_wu, nbr_requested));
And I am passing ::WFStructSearch &search in it, Kindly let me know if
is the right way of passing to a function call
Thanks
Amit
I have to pass the objec of a class which is a part of afunction in
thefunction call.
my code looks like this now
#include <iostream.h>
#include <waspc/common.h>
#include <waspc/runtime/Runtime.h>
#include "WFWuList.h"
using std::cout;
using std::cerr;
using std::endl;
class WFStructSearch;
ArrayOfWFWuStructFe WfListWuClnt(
WFWuHandle,
char* process_id,
char* process_step_id,
char* cluster_id,
WFStructSearch *search_params,
char* incl_active_wu,
int nbr_requested
);
int main (int argc,char *argv[]) {
WASP_Runtime::clientInitialize ();
try {
WASP_Runtime::clientStart("conf/client-core.xml", NULL);
WFWuList a;
ArrayOfWFWuStructFe ret;
WFStructSearch search;
ret = a.WfListWuClnt( NULL, process_id, process_step_id, cluster_id,
::WFStructSearch &search, incl_active_wu, nbr_requested));
cout << "There are " << numElements << " elements in the table"
<< endl;
}
catch (WASP_Exception *exc) {
char *trace=GET_TRACE (exc);
cerr << "Exception during call: " << exc->getCharMessage() <<
endl;
cerr << "Stack trace follows: " << endl << trace << endl;
delete[] trace;
delete exc;
}
WASP_Runtime::clientTerminate();
return 0;
}
-----------------------------------------------------------------------------------------------------------------------------------------
The required function is
ArrayOfWFWuStructFe WfListWuClnt(
WFWuHandle,
char* process_id,
char* process_step_id,
char* cluster_id,
WFStructSearch *search_params,
char* incl_active_wu,
int nbr_requested
);
I have already declared a class
class WFStructSearch;
search_params is the pointer to it.
And my function call is
ret = a.WfListWuClnt( NULL, process_id, process_step_id, cluster_id,
::WFStructSearch &search, incl_active_wu, nbr_requested));
And I am passing ::WFStructSearch &search in it, Kindly let me know if
is the right way of passing to a function call
Thanks
Amit