new method: BusMessage::get_parameter_count();
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
return ret_val;
}
+unsigned long BusMessage::get_parameter_count() {
+ int ret_val;
+ DataItemSequence *seq;
+
+ seq = (DataItemSequence *)_dataItemSeq;
+ ret_val = seq->length();
+ return ret_val;
+}
+
void BusMessage::printout_dataitem(long index, void *item) {
CORBA::TCKind kind;
const char *name;
count = seq->length();
log_debug("BusMessage.printout(): parameter count: %ld\n", count);
for (long ii = 0; ii < count; ii++) {
- printf("item[%ld]\n", ii);
item = (*seq)[ii];
printout_dataitem(ii, &item);
}
int get_int_parameter(std::string arg_name_param, int *err_flg);
double get_double_parameter(std::string arg_name_param, int *err_flg);
float get_float_parameter(std::string arg_name_param, int *err_flg);
+ unsigned long get_parameter_count();
void printout();
protected:
BusMessage();