// // // #include #include "cbr.h" int main() { unsigned int num_cols = 7; unsigned int i; ezxml_t f1 = ezxml_parse_file("another.xml"), engine, column; char * cols[num_cols]; for (engine = ezxml_child(f1, "engine"); engine; engine = engine->next){ i = 0; for (column = ezxml_child(engine, "column"); column; column = column->next){ cols[i] = ezxml_child(column, "name")->txt; i++; } } free(f1); /* char * cols[] = { "BER", "throughput", "mod_scheme", "tx_power", "noise_power", "path_loss", "utility" };*/ for (i = 0; i 100 char * search_names[] = {"BER", "path_loss"}; int search_ops[] = {LT, GT}; float search_vals[] = {1e-2f, 100.f}; float retvals[num_cols]; rc = cbr_search(mycbr, search_names, search_ops, search_vals, 2, retvals); // clean up cbr_free(mycbr); printf("done.\n"); return 0; }