Content-type: text/html
namespace rapids reporterror(), debugmsg(), reportvar(), algstate(),
The RAPIDS Application Programmer Interface (API) provides various functions that users can use in their applications to report different kinds of events to the RAPIDS Main Display and Control Node (MDCN).
All functions returns immediately after posting the event information into the RAPIDS messaging system
Most of the functions return SUCCESS (1) if successful, else FAILURE(-1) in case of error.
#include "rapids_api++.h"
g++ -I{RAPIDS_API_INCLUDEDIR} ... -L{RAPIDS_API_LIBDIR} -lrmq
where RAPIDS_API_INCLUDEDIR is the directory where "rapids_api++.h" is present
and RAPIDS_API_LIBDIR is the directory where librmq.a is present
error_level is one of the 3 error_levels: FATAL, SEVERE and WARNING. error_msg is a C++ string containing the error message.
debug_level is one of the 3 debug_levels: FINE, FINER and and FINEST. debug_msg is a C++ string containing the debug message.
var_name is the name of the variable. var_val is a C++ string containing the value of the variable in ASCII text.
Other version of this call with options for specifying an integer, long, float, or double for the var_val are forthcoming.
alg_name is the name of the algorithm to be reported. status is the current state of the algorithm as defined by one of the algstatus codes: ALG_START and ALG_END
#include "rapids_api++.h"
int main() {
rapids::reporterror(SEVERE, "This is a grave error") ;
rapids::debugmsg(FINEST, "reached here") ;
rapids::reportvar("double d", "2") ;
rapids::algstatus("main", ALG_START) ;
return 0 ;
}
Still testing