39 fprintf(stderr,
"ERROR: Could not add message to 'firm_bank_init_loans' board\n");
42 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board has not been created?\n");
45 fprintf(stderr,
"\t reason: out of memory\n");
48 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is locked\n");
51 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
54 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
81 fprintf(stderr,
"ERROR: Could not rewind 'firm_bank_init_loans' Iterator\n");
84 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' Iterator has not been created?\n");
87 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
100 if (rc != MB_SUCCESS)
102 fprintf(stderr,
"ERROR: Could not get message from 'firm_bank_init_loans' Iterator\n");
105 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' Iterator has not been created?\n");
107 case MB_ERR_MEMALLOC:
108 fprintf(stderr,
"\t reason: out of memory\n");
111 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
121 msg_prev = msg_pu.ptr;
132 return getInternalMessage_firm_bank_init_loans();
142 return getInternalMessage_firm_bank_init_loans();
173 if (rc != MB_SUCCESS)
175 fprintf(stderr,
"ERROR: Could not add message to 'firm_bank_init_deposit' board\n");
178 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board has not been created?\n");
180 case MB_ERR_MEMALLOC:
181 fprintf(stderr,
"\t reason: out of memory\n");
184 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is locked\n");
186 case MB_ERR_INTERNAL:
187 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
190 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
207 if (msg_prev != NULL)
215 if (rc != MB_SUCCESS)
217 fprintf(stderr,
"ERROR: Could not rewind 'firm_bank_init_deposit' Iterator\n");
220 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' Iterator has not been created?\n");
223 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
236 if (rc != MB_SUCCESS)
238 fprintf(stderr,
"ERROR: Could not get message from 'firm_bank_init_deposit' Iterator\n");
241 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' Iterator has not been created?\n");
243 case MB_ERR_MEMALLOC:
244 fprintf(stderr,
"\t reason: out of memory\n");
247 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
257 msg_prev = msg_pu.ptr;
268 return getInternalMessage_firm_bank_init_deposit();
278 return getInternalMessage_firm_bank_init_deposit();
309 if (rc != MB_SUCCESS)
311 fprintf(stderr,
"ERROR: Could not add message to 'firm_bank_update_deposit' board\n");
314 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board has not been created?\n");
316 case MB_ERR_MEMALLOC:
317 fprintf(stderr,
"\t reason: out of memory\n");
320 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is locked\n");
322 case MB_ERR_INTERNAL:
323 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
326 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
343 if (msg_prev != NULL)
351 if (rc != MB_SUCCESS)
353 fprintf(stderr,
"ERROR: Could not rewind 'firm_bank_update_deposit' Iterator\n");
356 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' Iterator has not been created?\n");
359 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
372 if (rc != MB_SUCCESS)
374 fprintf(stderr,
"ERROR: Could not get message from 'firm_bank_update_deposit' Iterator\n");
377 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' Iterator has not been created?\n");
379 case MB_ERR_MEMALLOC:
380 fprintf(stderr,
"\t reason: out of memory\n");
383 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
393 msg_prev = msg_pu.ptr;
404 return getInternalMessage_firm_bank_update_deposit();
414 return getInternalMessage_firm_bank_update_deposit();
445 if (rc != MB_SUCCESS)
447 fprintf(stderr,
"ERROR: Could not add message to 'household_bank_init_mortgages' board\n");
450 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board has not been created?\n");
452 case MB_ERR_MEMALLOC:
453 fprintf(stderr,
"\t reason: out of memory\n");
456 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is locked\n");
458 case MB_ERR_INTERNAL:
459 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
462 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
479 if (msg_prev != NULL)
487 if (rc != MB_SUCCESS)
489 fprintf(stderr,
"ERROR: Could not rewind 'household_bank_init_mortgages' Iterator\n");
492 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' Iterator has not been created?\n");
495 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
508 if (rc != MB_SUCCESS)
510 fprintf(stderr,
"ERROR: Could not get message from 'household_bank_init_mortgages' Iterator\n");
513 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' Iterator has not been created?\n");
515 case MB_ERR_MEMALLOC:
516 fprintf(stderr,
"\t reason: out of memory\n");
519 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
529 msg_prev = msg_pu.ptr;
540 return getInternalMessage_household_bank_init_mortgages();
550 return getInternalMessage_household_bank_init_mortgages();
581 if (rc != MB_SUCCESS)
583 fprintf(stderr,
"ERROR: Could not add message to 'household_bank_init_deposit' board\n");
586 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board has not been created?\n");
588 case MB_ERR_MEMALLOC:
589 fprintf(stderr,
"\t reason: out of memory\n");
592 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is locked\n");
594 case MB_ERR_INTERNAL:
595 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
598 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
615 if (msg_prev != NULL)
623 if (rc != MB_SUCCESS)
625 fprintf(stderr,
"ERROR: Could not rewind 'household_bank_init_deposit' Iterator\n");
628 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' Iterator has not been created?\n");
631 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
644 if (rc != MB_SUCCESS)
646 fprintf(stderr,
"ERROR: Could not get message from 'household_bank_init_deposit' Iterator\n");
649 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' Iterator has not been created?\n");
651 case MB_ERR_MEMALLOC:
652 fprintf(stderr,
"\t reason: out of memory\n");
655 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
665 msg_prev = msg_pu.ptr;
676 return getInternalMessage_household_bank_init_deposit();
686 return getInternalMessage_household_bank_init_deposit();
717 if (rc != MB_SUCCESS)
719 fprintf(stderr,
"ERROR: Could not add message to 'household_bank_update_deposit' board\n");
722 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board has not been created?\n");
724 case MB_ERR_MEMALLOC:
725 fprintf(stderr,
"\t reason: out of memory\n");
728 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is locked\n");
730 case MB_ERR_INTERNAL:
731 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
734 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
751 if (msg_prev != NULL)
759 if (rc != MB_SUCCESS)
761 fprintf(stderr,
"ERROR: Could not rewind 'household_bank_update_deposit' Iterator\n");
764 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' Iterator has not been created?\n");
767 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
780 if (rc != MB_SUCCESS)
782 fprintf(stderr,
"ERROR: Could not get message from 'household_bank_update_deposit' Iterator\n");
785 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' Iterator has not been created?\n");
787 case MB_ERR_MEMALLOC:
788 fprintf(stderr,
"\t reason: out of memory\n");
791 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
801 msg_prev = msg_pu.ptr;
812 return getInternalMessage_household_bank_update_deposit();
822 return getInternalMessage_household_bank_update_deposit();
853 if (rc != MB_SUCCESS)
855 fprintf(stderr,
"ERROR: Could not add message to 'bank_centralbank_init_debt' board\n");
858 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board has not been created?\n");
860 case MB_ERR_MEMALLOC:
861 fprintf(stderr,
"\t reason: out of memory\n");
864 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is locked\n");
866 case MB_ERR_INTERNAL:
867 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
870 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
887 if (msg_prev != NULL)
895 if (rc != MB_SUCCESS)
897 fprintf(stderr,
"ERROR: Could not rewind 'bank_centralbank_init_debt' Iterator\n");
900 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' Iterator has not been created?\n");
903 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
916 if (rc != MB_SUCCESS)
918 fprintf(stderr,
"ERROR: Could not get message from 'bank_centralbank_init_debt' Iterator\n");
921 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' Iterator has not been created?\n");
923 case MB_ERR_MEMALLOC:
924 fprintf(stderr,
"\t reason: out of memory\n");
927 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
937 msg_prev = msg_pu.ptr;
948 return getInternalMessage_bank_centralbank_init_debt();
958 return getInternalMessage_bank_centralbank_init_debt();
989 if (rc != MB_SUCCESS)
991 fprintf(stderr,
"ERROR: Could not add message to 'bank_centralbank_init_deposit' board\n");
994 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board has not been created?\n");
996 case MB_ERR_MEMALLOC:
997 fprintf(stderr,
"\t reason: out of memory\n");
1000 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is locked\n");
1002 case MB_ERR_INTERNAL:
1003 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1006 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
1023 if (msg_prev != NULL)
1031 if (rc != MB_SUCCESS)
1033 fprintf(stderr,
"ERROR: Could not rewind 'bank_centralbank_init_deposit' Iterator\n");
1035 case MB_ERR_INVALID:
1036 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' Iterator has not been created?\n");
1039 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
1052 if (rc != MB_SUCCESS)
1054 fprintf(stderr,
"ERROR: Could not get message from 'bank_centralbank_init_deposit' Iterator\n");
1056 case MB_ERR_INVALID:
1057 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' Iterator has not been created?\n");
1059 case MB_ERR_MEMALLOC:
1060 fprintf(stderr,
"\t reason: out of memory\n");
1063 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
1073 msg_prev = msg_pu.ptr;
1084 return getInternalMessage_bank_centralbank_init_deposit();
1094 return getInternalMessage_bank_centralbank_init_deposit();
1125 if (rc != MB_SUCCESS)
1127 fprintf(stderr,
"ERROR: Could not add message to 'bank_centralbank_update_deposit' board\n");
1129 case MB_ERR_INVALID:
1130 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board has not been created?\n");
1132 case MB_ERR_MEMALLOC:
1133 fprintf(stderr,
"\t reason: out of memory\n");
1136 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is locked\n");
1138 case MB_ERR_INTERNAL:
1139 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1142 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
1159 if (msg_prev != NULL)
1167 if (rc != MB_SUCCESS)
1169 fprintf(stderr,
"ERROR: Could not rewind 'bank_centralbank_update_deposit' Iterator\n");
1171 case MB_ERR_INVALID:
1172 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' Iterator has not been created?\n");
1175 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
1188 if (rc != MB_SUCCESS)
1190 fprintf(stderr,
"ERROR: Could not get message from 'bank_centralbank_update_deposit' Iterator\n");
1192 case MB_ERR_INVALID:
1193 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' Iterator has not been created?\n");
1195 case MB_ERR_MEMALLOC:
1196 fprintf(stderr,
"\t reason: out of memory\n");
1199 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
1209 msg_prev = msg_pu.ptr;
1220 return getInternalMessage_bank_centralbank_update_deposit();
1230 return getInternalMessage_bank_centralbank_update_deposit();
1259 if (rc != MB_SUCCESS)
1261 fprintf(stderr,
"ERROR: Could not add message to 'fund_centralbank_init_deposit' board\n");
1263 case MB_ERR_INVALID:
1264 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board has not been created?\n");
1266 case MB_ERR_MEMALLOC:
1267 fprintf(stderr,
"\t reason: out of memory\n");
1270 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is locked\n");
1272 case MB_ERR_INTERNAL:
1273 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1276 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
1293 if (msg_prev != NULL)
1301 if (rc != MB_SUCCESS)
1303 fprintf(stderr,
"ERROR: Could not rewind 'fund_centralbank_init_deposit' Iterator\n");
1305 case MB_ERR_INVALID:
1306 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' Iterator has not been created?\n");
1309 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
1322 if (rc != MB_SUCCESS)
1324 fprintf(stderr,
"ERROR: Could not get message from 'fund_centralbank_init_deposit' Iterator\n");
1326 case MB_ERR_INVALID:
1327 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' Iterator has not been created?\n");
1329 case MB_ERR_MEMALLOC:
1330 fprintf(stderr,
"\t reason: out of memory\n");
1333 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
1343 msg_prev = msg_pu.ptr;
1354 return getInternalMessage_fund_centralbank_init_deposit();
1364 return getInternalMessage_fund_centralbank_init_deposit();
1393 if (rc != MB_SUCCESS)
1395 fprintf(stderr,
"ERROR: Could not add message to 'fund_centralbank_update_deposit' board\n");
1397 case MB_ERR_INVALID:
1398 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board has not been created?\n");
1400 case MB_ERR_MEMALLOC:
1401 fprintf(stderr,
"\t reason: out of memory\n");
1404 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is locked\n");
1406 case MB_ERR_INTERNAL:
1407 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1410 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
1427 if (msg_prev != NULL)
1435 if (rc != MB_SUCCESS)
1437 fprintf(stderr,
"ERROR: Could not rewind 'fund_centralbank_update_deposit' Iterator\n");
1439 case MB_ERR_INVALID:
1440 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' Iterator has not been created?\n");
1443 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
1456 if (rc != MB_SUCCESS)
1458 fprintf(stderr,
"ERROR: Could not get message from 'fund_centralbank_update_deposit' Iterator\n");
1460 case MB_ERR_INVALID:
1461 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' Iterator has not been created?\n");
1463 case MB_ERR_MEMALLOC:
1464 fprintf(stderr,
"\t reason: out of memory\n");
1467 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
1477 msg_prev = msg_pu.ptr;
1488 return getInternalMessage_fund_centralbank_update_deposit();
1498 return getInternalMessage_fund_centralbank_update_deposit();
1527 if (rc != MB_SUCCESS)
1529 fprintf(stderr,
"ERROR: Could not add message to 'gov_centralbank_init_deposit' board\n");
1531 case MB_ERR_INVALID:
1532 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board has not been created?\n");
1534 case MB_ERR_MEMALLOC:
1535 fprintf(stderr,
"\t reason: out of memory\n");
1538 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is locked\n");
1540 case MB_ERR_INTERNAL:
1541 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1544 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
1561 if (msg_prev != NULL)
1569 if (rc != MB_SUCCESS)
1571 fprintf(stderr,
"ERROR: Could not rewind 'gov_centralbank_init_deposit' Iterator\n");
1573 case MB_ERR_INVALID:
1574 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' Iterator has not been created?\n");
1577 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
1590 if (rc != MB_SUCCESS)
1592 fprintf(stderr,
"ERROR: Could not get message from 'gov_centralbank_init_deposit' Iterator\n");
1594 case MB_ERR_INVALID:
1595 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' Iterator has not been created?\n");
1597 case MB_ERR_MEMALLOC:
1598 fprintf(stderr,
"\t reason: out of memory\n");
1601 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
1611 msg_prev = msg_pu.ptr;
1622 return getInternalMessage_gov_centralbank_init_deposit();
1632 return getInternalMessage_gov_centralbank_init_deposit();
1661 if (rc != MB_SUCCESS)
1663 fprintf(stderr,
"ERROR: Could not add message to 'gov_centralbank_update_deposit' board\n");
1665 case MB_ERR_INVALID:
1666 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board has not been created?\n");
1668 case MB_ERR_MEMALLOC:
1669 fprintf(stderr,
"\t reason: out of memory\n");
1672 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is locked\n");
1674 case MB_ERR_INTERNAL:
1675 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1678 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
1695 if (msg_prev != NULL)
1703 if (rc != MB_SUCCESS)
1705 fprintf(stderr,
"ERROR: Could not rewind 'gov_centralbank_update_deposit' Iterator\n");
1707 case MB_ERR_INVALID:
1708 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' Iterator has not been created?\n");
1711 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
1724 if (rc != MB_SUCCESS)
1726 fprintf(stderr,
"ERROR: Could not get message from 'gov_centralbank_update_deposit' Iterator\n");
1728 case MB_ERR_INVALID:
1729 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' Iterator has not been created?\n");
1731 case MB_ERR_MEMALLOC:
1732 fprintf(stderr,
"\t reason: out of memory\n");
1735 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
1745 msg_prev = msg_pu.ptr;
1756 return getInternalMessage_gov_centralbank_update_deposit();
1766 return getInternalMessage_gov_centralbank_update_deposit();
1795 if (rc != MB_SUCCESS)
1797 fprintf(stderr,
"ERROR: Could not add message to 'interest_rate' board\n");
1799 case MB_ERR_INVALID:
1800 fprintf(stderr,
"\t reason: 'interest_rate' board has not been created?\n");
1802 case MB_ERR_MEMALLOC:
1803 fprintf(stderr,
"\t reason: out of memory\n");
1806 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
1808 case MB_ERR_INTERNAL:
1809 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1812 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
1829 if (msg_prev != NULL)
1837 if (rc != MB_SUCCESS)
1839 fprintf(stderr,
"ERROR: Could not rewind 'interest_rate' Iterator\n");
1841 case MB_ERR_INVALID:
1842 fprintf(stderr,
"\t reason: 'interest_rate' Iterator has not been created?\n");
1845 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
1858 if (rc != MB_SUCCESS)
1860 fprintf(stderr,
"ERROR: Could not get message from 'interest_rate' Iterator\n");
1862 case MB_ERR_INVALID:
1863 fprintf(stderr,
"\t reason: 'interest_rate' Iterator has not been created?\n");
1865 case MB_ERR_MEMALLOC:
1866 fprintf(stderr,
"\t reason: out of memory\n");
1869 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
1879 msg_prev = msg_pu.ptr;
1890 return getInternalMessage_interest_rate();
1900 return getInternalMessage_interest_rate();
1929 if (rc != MB_SUCCESS)
1931 fprintf(stderr,
"ERROR: Could not add message to 'capital_tax_rate' board\n");
1933 case MB_ERR_INVALID:
1934 fprintf(stderr,
"\t reason: 'capital_tax_rate' board has not been created?\n");
1936 case MB_ERR_MEMALLOC:
1937 fprintf(stderr,
"\t reason: out of memory\n");
1940 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is locked\n");
1942 case MB_ERR_INTERNAL:
1943 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1946 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
1963 if (msg_prev != NULL)
1971 if (rc != MB_SUCCESS)
1973 fprintf(stderr,
"ERROR: Could not rewind 'capital_tax_rate' Iterator\n");
1975 case MB_ERR_INVALID:
1976 fprintf(stderr,
"\t reason: 'capital_tax_rate' Iterator has not been created?\n");
1979 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
1992 if (rc != MB_SUCCESS)
1994 fprintf(stderr,
"ERROR: Could not get message from 'capital_tax_rate' Iterator\n");
1996 case MB_ERR_INVALID:
1997 fprintf(stderr,
"\t reason: 'capital_tax_rate' Iterator has not been created?\n");
1999 case MB_ERR_MEMALLOC:
2000 fprintf(stderr,
"\t reason: out of memory\n");
2003 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
2013 msg_prev = msg_pu.ptr;
2024 return getInternalMessage_capital_tax_rate();
2034 return getInternalMessage_capital_tax_rate();
2063 if (rc != MB_SUCCESS)
2065 fprintf(stderr,
"ERROR: Could not add message to 'labour_tax_rate' board\n");
2067 case MB_ERR_INVALID:
2068 fprintf(stderr,
"\t reason: 'labour_tax_rate' board has not been created?\n");
2070 case MB_ERR_MEMALLOC:
2071 fprintf(stderr,
"\t reason: out of memory\n");
2074 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is locked\n");
2076 case MB_ERR_INTERNAL:
2077 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2080 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
2097 if (msg_prev != NULL)
2105 if (rc != MB_SUCCESS)
2107 fprintf(stderr,
"ERROR: Could not rewind 'labour_tax_rate' Iterator\n");
2109 case MB_ERR_INVALID:
2110 fprintf(stderr,
"\t reason: 'labour_tax_rate' Iterator has not been created?\n");
2113 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
2126 if (rc != MB_SUCCESS)
2128 fprintf(stderr,
"ERROR: Could not get message from 'labour_tax_rate' Iterator\n");
2130 case MB_ERR_INVALID:
2131 fprintf(stderr,
"\t reason: 'labour_tax_rate' Iterator has not been created?\n");
2133 case MB_ERR_MEMALLOC:
2134 fprintf(stderr,
"\t reason: out of memory\n");
2137 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
2147 msg_prev = msg_pu.ptr;
2158 return getInternalMessage_labour_tax_rate();
2168 return getInternalMessage_labour_tax_rate();
2197 if (rc != MB_SUCCESS)
2199 fprintf(stderr,
"ERROR: Could not add message to 'household_jpoffice_id' board\n");
2201 case MB_ERR_INVALID:
2202 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board has not been created?\n");
2204 case MB_ERR_MEMALLOC:
2205 fprintf(stderr,
"\t reason: out of memory\n");
2208 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is locked\n");
2210 case MB_ERR_INTERNAL:
2211 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2214 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
2231 if (msg_prev != NULL)
2239 if (rc != MB_SUCCESS)
2241 fprintf(stderr,
"ERROR: Could not rewind 'household_jpoffice_id' Iterator\n");
2243 case MB_ERR_INVALID:
2244 fprintf(stderr,
"\t reason: 'household_jpoffice_id' Iterator has not been created?\n");
2247 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
2260 if (rc != MB_SUCCESS)
2262 fprintf(stderr,
"ERROR: Could not get message from 'household_jpoffice_id' Iterator\n");
2264 case MB_ERR_INVALID:
2265 fprintf(stderr,
"\t reason: 'household_jpoffice_id' Iterator has not been created?\n");
2267 case MB_ERR_MEMALLOC:
2268 fprintf(stderr,
"\t reason: out of memory\n");
2271 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
2281 msg_prev = msg_pu.ptr;
2292 return getInternalMessage_household_jpoffice_id();
2302 return getInternalMessage_household_jpoffice_id();
2335 if (rc != MB_SUCCESS)
2337 fprintf(stderr,
"ERROR: Could not add message to 'jpoffice_household_employer' board\n");
2339 case MB_ERR_INVALID:
2340 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board has not been created?\n");
2342 case MB_ERR_MEMALLOC:
2343 fprintf(stderr,
"\t reason: out of memory\n");
2346 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is locked\n");
2348 case MB_ERR_INTERNAL:
2349 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2352 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
2369 if (msg_prev != NULL)
2377 if (rc != MB_SUCCESS)
2379 fprintf(stderr,
"ERROR: Could not rewind 'jpoffice_household_employer' Iterator\n");
2381 case MB_ERR_INVALID:
2382 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' Iterator has not been created?\n");
2385 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
2398 if (rc != MB_SUCCESS)
2400 fprintf(stderr,
"ERROR: Could not get message from 'jpoffice_household_employer' Iterator\n");
2402 case MB_ERR_INVALID:
2403 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' Iterator has not been created?\n");
2405 case MB_ERR_MEMALLOC:
2406 fprintf(stderr,
"\t reason: out of memory\n");
2409 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
2419 msg_prev = msg_pu.ptr;
2430 return getInternalMessage_jpoffice_household_employer();
2440 return getInternalMessage_jpoffice_household_employer();
2471 if (rc != MB_SUCCESS)
2473 fprintf(stderr,
"ERROR: Could not add message to 'firm_jpoffice_id' board\n");
2475 case MB_ERR_INVALID:
2476 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board has not been created?\n");
2478 case MB_ERR_MEMALLOC:
2479 fprintf(stderr,
"\t reason: out of memory\n");
2482 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is locked\n");
2484 case MB_ERR_INTERNAL:
2485 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2488 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
2505 if (msg_prev != NULL)
2513 if (rc != MB_SUCCESS)
2515 fprintf(stderr,
"ERROR: Could not rewind 'firm_jpoffice_id' Iterator\n");
2517 case MB_ERR_INVALID:
2518 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' Iterator has not been created?\n");
2521 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
2534 if (rc != MB_SUCCESS)
2536 fprintf(stderr,
"ERROR: Could not get message from 'firm_jpoffice_id' Iterator\n");
2538 case MB_ERR_INVALID:
2539 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' Iterator has not been created?\n");
2541 case MB_ERR_MEMALLOC:
2542 fprintf(stderr,
"\t reason: out of memory\n");
2545 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
2555 msg_prev = msg_pu.ptr;
2566 return getInternalMessage_firm_jpoffice_id();
2576 return getInternalMessage_firm_jpoffice_id();
2609 if (rc != MB_SUCCESS)
2611 fprintf(stderr,
"ERROR: Could not add message to 'jpoffice_firm_employee' board\n");
2613 case MB_ERR_INVALID:
2614 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board has not been created?\n");
2616 case MB_ERR_MEMALLOC:
2617 fprintf(stderr,
"\t reason: out of memory\n");
2620 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is locked\n");
2622 case MB_ERR_INTERNAL:
2623 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2626 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
2643 if (msg_prev != NULL)
2651 if (rc != MB_SUCCESS)
2653 fprintf(stderr,
"ERROR: Could not rewind 'jpoffice_firm_employee' Iterator\n");
2655 case MB_ERR_INVALID:
2656 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' Iterator has not been created?\n");
2659 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
2672 if (rc != MB_SUCCESS)
2674 fprintf(stderr,
"ERROR: Could not get message from 'jpoffice_firm_employee' Iterator\n");
2676 case MB_ERR_INVALID:
2677 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' Iterator has not been created?\n");
2679 case MB_ERR_MEMALLOC:
2680 fprintf(stderr,
"\t reason: out of memory\n");
2683 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
2693 msg_prev = msg_pu.ptr;
2704 return getInternalMessage_jpoffice_firm_employee();
2714 return getInternalMessage_jpoffice_firm_employee();
2743 rc = MB_AddMessage(
b_buy, &msg);
2745 if (rc != MB_SUCCESS)
2747 fprintf(stderr,
"ERROR: Could not add message to 'buy' board\n");
2749 case MB_ERR_INVALID:
2750 fprintf(stderr,
"\t reason: 'buy' board has not been created?\n");
2752 case MB_ERR_MEMALLOC:
2753 fprintf(stderr,
"\t reason: out of memory\n");
2756 fprintf(stderr,
"\t reason: 'buy' board is locked\n");
2758 case MB_ERR_INTERNAL:
2759 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2762 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
2772 inline static m_buy* getInternalMessage_buy(
void)
2774 static m_buy *msg_prev = NULL;
2779 if (msg_prev != NULL)
2785 rc = MB_Iterator_Rewind(
i_buy);
2787 if (rc != MB_SUCCESS)
2789 fprintf(stderr,
"ERROR: Could not rewind 'buy' Iterator\n");
2791 case MB_ERR_INVALID:
2792 fprintf(stderr,
"\t reason: 'buy' Iterator has not been created?\n");
2795 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
2806 rc = MB_Iterator_GetMessage(
i_buy, &(msg_pu.ptr_anon));
2808 if (rc != MB_SUCCESS)
2810 fprintf(stderr,
"ERROR: Could not get message from 'buy' Iterator\n");
2812 case MB_ERR_INVALID:
2813 fprintf(stderr,
"\t reason: 'buy' Iterator has not been created?\n");
2815 case MB_ERR_MEMALLOC:
2816 fprintf(stderr,
"\t reason: out of memory\n");
2819 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
2829 msg_prev = msg_pu.ptr;
2840 return getInternalMessage_buy();
2850 return getInternalMessage_buy();
2881 rc = MB_AddMessage(
b_bought, &msg);
2883 if (rc != MB_SUCCESS)
2885 fprintf(stderr,
"ERROR: Could not add message to 'bought' board\n");
2887 case MB_ERR_INVALID:
2888 fprintf(stderr,
"\t reason: 'bought' board has not been created?\n");
2890 case MB_ERR_MEMALLOC:
2891 fprintf(stderr,
"\t reason: out of memory\n");
2894 fprintf(stderr,
"\t reason: 'bought' board is locked\n");
2896 case MB_ERR_INTERNAL:
2897 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2900 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
2910 inline static m_bought* getInternalMessage_bought(
void)
2917 if (msg_prev != NULL)
2925 if (rc != MB_SUCCESS)
2927 fprintf(stderr,
"ERROR: Could not rewind 'bought' Iterator\n");
2929 case MB_ERR_INVALID:
2930 fprintf(stderr,
"\t reason: 'bought' Iterator has not been created?\n");
2933 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
2944 rc = MB_Iterator_GetMessage(
i_bought, &(msg_pu.ptr_anon));
2946 if (rc != MB_SUCCESS)
2948 fprintf(stderr,
"ERROR: Could not get message from 'bought' Iterator\n");
2950 case MB_ERR_INVALID:
2951 fprintf(stderr,
"\t reason: 'bought' Iterator has not been created?\n");
2953 case MB_ERR_MEMALLOC:
2954 fprintf(stderr,
"\t reason: out of memory\n");
2957 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
2967 msg_prev = msg_pu.ptr;
2978 return getInternalMessage_bought();
2988 return getInternalMessage_bought();
3019 rc = MB_AddMessage(
b_sell, &msg);
3021 if (rc != MB_SUCCESS)
3023 fprintf(stderr,
"ERROR: Could not add message to 'sell' board\n");
3025 case MB_ERR_INVALID:
3026 fprintf(stderr,
"\t reason: 'sell' board has not been created?\n");
3028 case MB_ERR_MEMALLOC:
3029 fprintf(stderr,
"\t reason: out of memory\n");
3032 fprintf(stderr,
"\t reason: 'sell' board is locked\n");
3034 case MB_ERR_INTERNAL:
3035 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3038 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
3048 inline static m_sell* getInternalMessage_sell(
void)
3050 static m_sell *msg_prev = NULL;
3055 if (msg_prev != NULL)
3061 rc = MB_Iterator_Rewind(
i_sell);
3063 if (rc != MB_SUCCESS)
3065 fprintf(stderr,
"ERROR: Could not rewind 'sell' Iterator\n");
3067 case MB_ERR_INVALID:
3068 fprintf(stderr,
"\t reason: 'sell' Iterator has not been created?\n");
3071 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
3082 rc = MB_Iterator_GetMessage(
i_sell, &(msg_pu.ptr_anon));
3084 if (rc != MB_SUCCESS)
3086 fprintf(stderr,
"ERROR: Could not get message from 'sell' Iterator\n");
3088 case MB_ERR_INVALID:
3089 fprintf(stderr,
"\t reason: 'sell' Iterator has not been created?\n");
3091 case MB_ERR_MEMALLOC:
3092 fprintf(stderr,
"\t reason: out of memory\n");
3095 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
3105 msg_prev = msg_pu.ptr;
3116 return getInternalMessage_sell();
3126 return getInternalMessage_sell();
3155 rc = MB_AddMessage(
b_sold, &msg);
3157 if (rc != MB_SUCCESS)
3159 fprintf(stderr,
"ERROR: Could not add message to 'sold' board\n");
3161 case MB_ERR_INVALID:
3162 fprintf(stderr,
"\t reason: 'sold' board has not been created?\n");
3164 case MB_ERR_MEMALLOC:
3165 fprintf(stderr,
"\t reason: out of memory\n");
3168 fprintf(stderr,
"\t reason: 'sold' board is locked\n");
3170 case MB_ERR_INTERNAL:
3171 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3174 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
3184 inline static m_sold* getInternalMessage_sold(
void)
3186 static m_sold *msg_prev = NULL;
3191 if (msg_prev != NULL)
3197 rc = MB_Iterator_Rewind(
i_sold);
3199 if (rc != MB_SUCCESS)
3201 fprintf(stderr,
"ERROR: Could not rewind 'sold' Iterator\n");
3203 case MB_ERR_INVALID:
3204 fprintf(stderr,
"\t reason: 'sold' Iterator has not been created?\n");
3207 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
3218 rc = MB_Iterator_GetMessage(
i_sold, &(msg_pu.ptr_anon));
3220 if (rc != MB_SUCCESS)
3222 fprintf(stderr,
"ERROR: Could not get message from 'sold' Iterator\n");
3224 case MB_ERR_INVALID:
3225 fprintf(stderr,
"\t reason: 'sold' Iterator has not been created?\n");
3227 case MB_ERR_MEMALLOC:
3228 fprintf(stderr,
"\t reason: out of memory\n");
3231 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
3241 msg_prev = msg_pu.ptr;
3252 return getInternalMessage_sold();
3262 return getInternalMessage_sold();
3293 if (rc != MB_SUCCESS)
3295 fprintf(stderr,
"ERROR: Could not add message to 'goods_transactions_summary' board\n");
3297 case MB_ERR_INVALID:
3298 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board has not been created?\n");
3300 case MB_ERR_MEMALLOC:
3301 fprintf(stderr,
"\t reason: out of memory\n");
3304 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is locked\n");
3306 case MB_ERR_INTERNAL:
3307 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3310 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
3327 if (msg_prev != NULL)
3335 if (rc != MB_SUCCESS)
3337 fprintf(stderr,
"ERROR: Could not rewind 'goods_transactions_summary' Iterator\n");
3339 case MB_ERR_INVALID:
3340 fprintf(stderr,
"\t reason: 'goods_transactions_summary' Iterator has not been created?\n");
3343 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
3356 if (rc != MB_SUCCESS)
3358 fprintf(stderr,
"ERROR: Could not get message from 'goods_transactions_summary' Iterator\n");
3360 case MB_ERR_INVALID:
3361 fprintf(stderr,
"\t reason: 'goods_transactions_summary' Iterator has not been created?\n");
3363 case MB_ERR_MEMALLOC:
3364 fprintf(stderr,
"\t reason: out of memory\n");
3367 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
3377 msg_prev = msg_pu.ptr;
3388 return getInternalMessage_goods_transactions_summary();
3398 return getInternalMessage_goods_transactions_summary();
3427 if (rc != MB_SUCCESS)
3429 fprintf(stderr,
"ERROR: Could not add message to 'centralbank_households_quarterly_cpi' board\n");
3431 case MB_ERR_INVALID:
3432 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board has not been created?\n");
3434 case MB_ERR_MEMALLOC:
3435 fprintf(stderr,
"\t reason: out of memory\n");
3438 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
3440 case MB_ERR_INTERNAL:
3441 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3444 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
3461 if (msg_prev != NULL)
3469 if (rc != MB_SUCCESS)
3471 fprintf(stderr,
"ERROR: Could not rewind 'centralbank_households_quarterly_cpi' Iterator\n");
3473 case MB_ERR_INVALID:
3474 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' Iterator has not been created?\n");
3477 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
3490 if (rc != MB_SUCCESS)
3492 fprintf(stderr,
"ERROR: Could not get message from 'centralbank_households_quarterly_cpi' Iterator\n");
3494 case MB_ERR_INVALID:
3495 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' Iterator has not been created?\n");
3497 case MB_ERR_MEMALLOC:
3498 fprintf(stderr,
"\t reason: out of memory\n");
3501 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
3511 msg_prev = msg_pu.ptr;
3522 return getInternalMessage_centralbank_households_quarterly_cpi();
3532 return getInternalMessage_centralbank_households_quarterly_cpi();
3559 rc = MB_AddMessage(
b_fired, &msg);
3561 if (rc != MB_SUCCESS)
3563 fprintf(stderr,
"ERROR: Could not add message to 'fired' board\n");
3565 case MB_ERR_INVALID:
3566 fprintf(stderr,
"\t reason: 'fired' board has not been created?\n");
3568 case MB_ERR_MEMALLOC:
3569 fprintf(stderr,
"\t reason: out of memory\n");
3572 fprintf(stderr,
"\t reason: 'fired' board is locked\n");
3574 case MB_ERR_INTERNAL:
3575 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3578 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
3588 inline static m_fired* getInternalMessage_fired(
void)
3590 static m_fired *msg_prev = NULL;
3595 if (msg_prev != NULL)
3601 rc = MB_Iterator_Rewind(
i_fired);
3603 if (rc != MB_SUCCESS)
3605 fprintf(stderr,
"ERROR: Could not rewind 'fired' Iterator\n");
3607 case MB_ERR_INVALID:
3608 fprintf(stderr,
"\t reason: 'fired' Iterator has not been created?\n");
3611 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
3622 rc = MB_Iterator_GetMessage(
i_fired, &(msg_pu.ptr_anon));
3624 if (rc != MB_SUCCESS)
3626 fprintf(stderr,
"ERROR: Could not get message from 'fired' Iterator\n");
3628 case MB_ERR_INVALID:
3629 fprintf(stderr,
"\t reason: 'fired' Iterator has not been created?\n");
3631 case MB_ERR_MEMALLOC:
3632 fprintf(stderr,
"\t reason: out of memory\n");
3635 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
3645 msg_prev = msg_pu.ptr;
3656 return getInternalMessage_fired();
3666 return getInternalMessage_fired();
3697 if (rc != MB_SUCCESS)
3699 fprintf(stderr,
"ERROR: Could not add message to 'vacancy_stage1' board\n");
3701 case MB_ERR_INVALID:
3702 fprintf(stderr,
"\t reason: 'vacancy_stage1' board has not been created?\n");
3704 case MB_ERR_MEMALLOC:
3705 fprintf(stderr,
"\t reason: out of memory\n");
3708 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is locked\n");
3710 case MB_ERR_INTERNAL:
3711 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3714 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
3731 if (msg_prev != NULL)
3739 if (rc != MB_SUCCESS)
3741 fprintf(stderr,
"ERROR: Could not rewind 'vacancy_stage1' Iterator\n");
3743 case MB_ERR_INVALID:
3744 fprintf(stderr,
"\t reason: 'vacancy_stage1' Iterator has not been created?\n");
3747 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
3760 if (rc != MB_SUCCESS)
3762 fprintf(stderr,
"ERROR: Could not get message from 'vacancy_stage1' Iterator\n");
3764 case MB_ERR_INVALID:
3765 fprintf(stderr,
"\t reason: 'vacancy_stage1' Iterator has not been created?\n");
3767 case MB_ERR_MEMALLOC:
3768 fprintf(stderr,
"\t reason: out of memory\n");
3771 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
3781 msg_prev = msg_pu.ptr;
3792 return getInternalMessage_vacancy_stage1();
3802 return getInternalMessage_vacancy_stage1();
3831 if (rc != MB_SUCCESS)
3833 fprintf(stderr,
"ERROR: Could not add message to 'job_application_stage2' board\n");
3835 case MB_ERR_INVALID:
3836 fprintf(stderr,
"\t reason: 'job_application_stage2' board has not been created?\n");
3838 case MB_ERR_MEMALLOC:
3839 fprintf(stderr,
"\t reason: out of memory\n");
3842 fprintf(stderr,
"\t reason: 'job_application_stage2' board is locked\n");
3844 case MB_ERR_INTERNAL:
3845 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3848 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
3865 if (msg_prev != NULL)
3873 if (rc != MB_SUCCESS)
3875 fprintf(stderr,
"ERROR: Could not rewind 'job_application_stage2' Iterator\n");
3877 case MB_ERR_INVALID:
3878 fprintf(stderr,
"\t reason: 'job_application_stage2' Iterator has not been created?\n");
3881 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
3894 if (rc != MB_SUCCESS)
3896 fprintf(stderr,
"ERROR: Could not get message from 'job_application_stage2' Iterator\n");
3898 case MB_ERR_INVALID:
3899 fprintf(stderr,
"\t reason: 'job_application_stage2' Iterator has not been created?\n");
3901 case MB_ERR_MEMALLOC:
3902 fprintf(stderr,
"\t reason: out of memory\n");
3905 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
3915 msg_prev = msg_pu.ptr;
3926 return getInternalMessage_job_application_stage2();
3936 return getInternalMessage_job_application_stage2();
3967 if (rc != MB_SUCCESS)
3969 fprintf(stderr,
"ERROR: Could not add message to 'job_application_stage1' board\n");
3971 case MB_ERR_INVALID:
3972 fprintf(stderr,
"\t reason: 'job_application_stage1' board has not been created?\n");
3974 case MB_ERR_MEMALLOC:
3975 fprintf(stderr,
"\t reason: out of memory\n");
3978 fprintf(stderr,
"\t reason: 'job_application_stage1' board is locked\n");
3980 case MB_ERR_INTERNAL:
3981 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3984 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
4001 if (msg_prev != NULL)
4009 if (rc != MB_SUCCESS)
4011 fprintf(stderr,
"ERROR: Could not rewind 'job_application_stage1' Iterator\n");
4013 case MB_ERR_INVALID:
4014 fprintf(stderr,
"\t reason: 'job_application_stage1' Iterator has not been created?\n");
4017 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
4030 if (rc != MB_SUCCESS)
4032 fprintf(stderr,
"ERROR: Could not get message from 'job_application_stage1' Iterator\n");
4034 case MB_ERR_INVALID:
4035 fprintf(stderr,
"\t reason: 'job_application_stage1' Iterator has not been created?\n");
4037 case MB_ERR_MEMALLOC:
4038 fprintf(stderr,
"\t reason: out of memory\n");
4041 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
4051 msg_prev = msg_pu.ptr;
4062 return getInternalMessage_job_application_stage1();
4072 return getInternalMessage_job_application_stage1();
4105 if (rc != MB_SUCCESS)
4107 fprintf(stderr,
"ERROR: Could not add message to 'job_match_stage1' board\n");
4109 case MB_ERR_INVALID:
4110 fprintf(stderr,
"\t reason: 'job_match_stage1' board has not been created?\n");
4112 case MB_ERR_MEMALLOC:
4113 fprintf(stderr,
"\t reason: out of memory\n");
4116 fprintf(stderr,
"\t reason: 'job_match_stage1' board is locked\n");
4118 case MB_ERR_INTERNAL:
4119 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4122 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
4139 if (msg_prev != NULL)
4147 if (rc != MB_SUCCESS)
4149 fprintf(stderr,
"ERROR: Could not rewind 'job_match_stage1' Iterator\n");
4151 case MB_ERR_INVALID:
4152 fprintf(stderr,
"\t reason: 'job_match_stage1' Iterator has not been created?\n");
4155 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
4168 if (rc != MB_SUCCESS)
4170 fprintf(stderr,
"ERROR: Could not get message from 'job_match_stage1' Iterator\n");
4172 case MB_ERR_INVALID:
4173 fprintf(stderr,
"\t reason: 'job_match_stage1' Iterator has not been created?\n");
4175 case MB_ERR_MEMALLOC:
4176 fprintf(stderr,
"\t reason: out of memory\n");
4179 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
4189 msg_prev = msg_pu.ptr;
4200 return getInternalMessage_job_match_stage1();
4210 return getInternalMessage_job_match_stage1();
4241 if (rc != MB_SUCCESS)
4243 fprintf(stderr,
"ERROR: Could not add message to 'job_change' board\n");
4245 case MB_ERR_INVALID:
4246 fprintf(stderr,
"\t reason: 'job_change' board has not been created?\n");
4248 case MB_ERR_MEMALLOC:
4249 fprintf(stderr,
"\t reason: out of memory\n");
4252 fprintf(stderr,
"\t reason: 'job_change' board is locked\n");
4254 case MB_ERR_INTERNAL:
4255 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4258 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
4268 inline static m_job_change* getInternalMessage_job_change(
void)
4275 if (msg_prev != NULL)
4283 if (rc != MB_SUCCESS)
4285 fprintf(stderr,
"ERROR: Could not rewind 'job_change' Iterator\n");
4287 case MB_ERR_INVALID:
4288 fprintf(stderr,
"\t reason: 'job_change' Iterator has not been created?\n");
4291 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
4302 rc = MB_Iterator_GetMessage(
i_job_change, &(msg_pu.ptr_anon));
4304 if (rc != MB_SUCCESS)
4306 fprintf(stderr,
"ERROR: Could not get message from 'job_change' Iterator\n");
4308 case MB_ERR_INVALID:
4309 fprintf(stderr,
"\t reason: 'job_change' Iterator has not been created?\n");
4311 case MB_ERR_MEMALLOC:
4312 fprintf(stderr,
"\t reason: out of memory\n");
4315 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
4325 msg_prev = msg_pu.ptr;
4336 return getInternalMessage_job_change();
4346 return getInternalMessage_job_change();
4377 if (rc != MB_SUCCESS)
4379 fprintf(stderr,
"ERROR: Could not add message to 'vacancy_stage2' board\n");
4381 case MB_ERR_INVALID:
4382 fprintf(stderr,
"\t reason: 'vacancy_stage2' board has not been created?\n");
4384 case MB_ERR_MEMALLOC:
4385 fprintf(stderr,
"\t reason: out of memory\n");
4388 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is locked\n");
4390 case MB_ERR_INTERNAL:
4391 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4394 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
4411 if (msg_prev != NULL)
4419 if (rc != MB_SUCCESS)
4421 fprintf(stderr,
"ERROR: Could not rewind 'vacancy_stage2' Iterator\n");
4423 case MB_ERR_INVALID:
4424 fprintf(stderr,
"\t reason: 'vacancy_stage2' Iterator has not been created?\n");
4427 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
4440 if (rc != MB_SUCCESS)
4442 fprintf(stderr,
"ERROR: Could not get message from 'vacancy_stage2' Iterator\n");
4444 case MB_ERR_INVALID:
4445 fprintf(stderr,
"\t reason: 'vacancy_stage2' Iterator has not been created?\n");
4447 case MB_ERR_MEMALLOC:
4448 fprintf(stderr,
"\t reason: out of memory\n");
4451 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
4461 msg_prev = msg_pu.ptr;
4472 return getInternalMessage_vacancy_stage2();
4482 return getInternalMessage_vacancy_stage2();
4515 if (rc != MB_SUCCESS)
4517 fprintf(stderr,
"ERROR: Could not add message to 'job_match_stage2' board\n");
4519 case MB_ERR_INVALID:
4520 fprintf(stderr,
"\t reason: 'job_match_stage2' board has not been created?\n");
4522 case MB_ERR_MEMALLOC:
4523 fprintf(stderr,
"\t reason: out of memory\n");
4526 fprintf(stderr,
"\t reason: 'job_match_stage2' board is locked\n");
4528 case MB_ERR_INTERNAL:
4529 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4532 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
4549 if (msg_prev != NULL)
4557 if (rc != MB_SUCCESS)
4559 fprintf(stderr,
"ERROR: Could not rewind 'job_match_stage2' Iterator\n");
4561 case MB_ERR_INVALID:
4562 fprintf(stderr,
"\t reason: 'job_match_stage2' Iterator has not been created?\n");
4565 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
4578 if (rc != MB_SUCCESS)
4580 fprintf(stderr,
"ERROR: Could not get message from 'job_match_stage2' Iterator\n");
4582 case MB_ERR_INVALID:
4583 fprintf(stderr,
"\t reason: 'job_match_stage2' Iterator has not been created?\n");
4585 case MB_ERR_MEMALLOC:
4586 fprintf(stderr,
"\t reason: out of memory\n");
4589 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
4599 msg_prev = msg_pu.ptr;
4610 return getInternalMessage_job_match_stage2();
4620 return getInternalMessage_job_match_stage2();
4653 if (rc != MB_SUCCESS)
4655 fprintf(stderr,
"ERROR: Could not add message to 'employment_status' board\n");
4657 case MB_ERR_INVALID:
4658 fprintf(stderr,
"\t reason: 'employment_status' board has not been created?\n");
4660 case MB_ERR_MEMALLOC:
4661 fprintf(stderr,
"\t reason: out of memory\n");
4664 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
4666 case MB_ERR_INTERNAL:
4667 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4670 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
4687 if (msg_prev != NULL)
4695 if (rc != MB_SUCCESS)
4697 fprintf(stderr,
"ERROR: Could not rewind 'employment_status' Iterator\n");
4699 case MB_ERR_INVALID:
4700 fprintf(stderr,
"\t reason: 'employment_status' Iterator has not been created?\n");
4703 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
4716 if (rc != MB_SUCCESS)
4718 fprintf(stderr,
"ERROR: Could not get message from 'employment_status' Iterator\n");
4720 case MB_ERR_INVALID:
4721 fprintf(stderr,
"\t reason: 'employment_status' Iterator has not been created?\n");
4723 case MB_ERR_MEMALLOC:
4724 fprintf(stderr,
"\t reason: out of memory\n");
4727 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
4737 msg_prev = msg_pu.ptr;
4748 return getInternalMessage_employment_status();
4758 return getInternalMessage_employment_status();
4789 if (rc != MB_SUCCESS)
4791 fprintf(stderr,
"ERROR: Could not add message to 'firm_household_wage_payment' board\n");
4793 case MB_ERR_INVALID:
4794 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board has not been created?\n");
4796 case MB_ERR_MEMALLOC:
4797 fprintf(stderr,
"\t reason: out of memory\n");
4800 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is locked\n");
4802 case MB_ERR_INTERNAL:
4803 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4806 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
4823 if (msg_prev != NULL)
4831 if (rc != MB_SUCCESS)
4833 fprintf(stderr,
"ERROR: Could not rewind 'firm_household_wage_payment' Iterator\n");
4835 case MB_ERR_INVALID:
4836 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' Iterator has not been created?\n");
4839 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
4852 if (rc != MB_SUCCESS)
4854 fprintf(stderr,
"ERROR: Could not get message from 'firm_household_wage_payment' Iterator\n");
4856 case MB_ERR_INVALID:
4857 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' Iterator has not been created?\n");
4859 case MB_ERR_MEMALLOC:
4860 fprintf(stderr,
"\t reason: out of memory\n");
4863 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
4873 msg_prev = msg_pu.ptr;
4884 return getInternalMessage_firm_household_wage_payment();
4894 return getInternalMessage_firm_household_wage_payment();
4927 if (rc != MB_SUCCESS)
4929 fprintf(stderr,
"ERROR: Could not add message to 'firm_bank_loan_request_1' board\n");
4931 case MB_ERR_INVALID:
4932 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board has not been created?\n");
4934 case MB_ERR_MEMALLOC:
4935 fprintf(stderr,
"\t reason: out of memory\n");
4938 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is locked\n");
4940 case MB_ERR_INTERNAL:
4941 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4944 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
4961 if (msg_prev != NULL)
4969 if (rc != MB_SUCCESS)
4971 fprintf(stderr,
"ERROR: Could not rewind 'firm_bank_loan_request_1' Iterator\n");
4973 case MB_ERR_INVALID:
4974 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' Iterator has not been created?\n");
4977 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
4990 if (rc != MB_SUCCESS)
4992 fprintf(stderr,
"ERROR: Could not get message from 'firm_bank_loan_request_1' Iterator\n");
4994 case MB_ERR_INVALID:
4995 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' Iterator has not been created?\n");
4997 case MB_ERR_MEMALLOC:
4998 fprintf(stderr,
"\t reason: out of memory\n");
5001 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
5011 msg_prev = msg_pu.ptr;
5022 return getInternalMessage_firm_bank_loan_request_1();
5032 return getInternalMessage_firm_bank_loan_request_1();
5065 if (rc != MB_SUCCESS)
5067 fprintf(stderr,
"ERROR: Could not add message to 'firm_bank_loan_request_2' board\n");
5069 case MB_ERR_INVALID:
5070 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board has not been created?\n");
5072 case MB_ERR_MEMALLOC:
5073 fprintf(stderr,
"\t reason: out of memory\n");
5076 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is locked\n");
5078 case MB_ERR_INTERNAL:
5079 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5082 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
5099 if (msg_prev != NULL)
5107 if (rc != MB_SUCCESS)
5109 fprintf(stderr,
"ERROR: Could not rewind 'firm_bank_loan_request_2' Iterator\n");
5111 case MB_ERR_INVALID:
5112 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' Iterator has not been created?\n");
5115 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
5128 if (rc != MB_SUCCESS)
5130 fprintf(stderr,
"ERROR: Could not get message from 'firm_bank_loan_request_2' Iterator\n");
5132 case MB_ERR_INVALID:
5133 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' Iterator has not been created?\n");
5135 case MB_ERR_MEMALLOC:
5136 fprintf(stderr,
"\t reason: out of memory\n");
5139 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
5149 msg_prev = msg_pu.ptr;
5160 return getInternalMessage_firm_bank_loan_request_2();
5170 return getInternalMessage_firm_bank_loan_request_2();
5203 if (rc != MB_SUCCESS)
5205 fprintf(stderr,
"ERROR: Could not add message to 'bank_firm_loan_acknowledge_1' board\n");
5207 case MB_ERR_INVALID:
5208 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board has not been created?\n");
5210 case MB_ERR_MEMALLOC:
5211 fprintf(stderr,
"\t reason: out of memory\n");
5214 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
5216 case MB_ERR_INTERNAL:
5217 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5220 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
5237 if (msg_prev != NULL)
5245 if (rc != MB_SUCCESS)
5247 fprintf(stderr,
"ERROR: Could not rewind 'bank_firm_loan_acknowledge_1' Iterator\n");
5249 case MB_ERR_INVALID:
5250 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' Iterator has not been created?\n");
5253 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
5266 if (rc != MB_SUCCESS)
5268 fprintf(stderr,
"ERROR: Could not get message from 'bank_firm_loan_acknowledge_1' Iterator\n");
5270 case MB_ERR_INVALID:
5271 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' Iterator has not been created?\n");
5273 case MB_ERR_MEMALLOC:
5274 fprintf(stderr,
"\t reason: out of memory\n");
5277 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
5287 msg_prev = msg_pu.ptr;
5298 return getInternalMessage_bank_firm_loan_acknowledge_1();
5308 return getInternalMessage_bank_firm_loan_acknowledge_1();
5341 if (rc != MB_SUCCESS)
5343 fprintf(stderr,
"ERROR: Could not add message to 'bank_firm_loan_acknowledge_2' board\n");
5345 case MB_ERR_INVALID:
5346 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board has not been created?\n");
5348 case MB_ERR_MEMALLOC:
5349 fprintf(stderr,
"\t reason: out of memory\n");
5352 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
5354 case MB_ERR_INTERNAL:
5355 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5358 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
5375 if (msg_prev != NULL)
5383 if (rc != MB_SUCCESS)
5385 fprintf(stderr,
"ERROR: Could not rewind 'bank_firm_loan_acknowledge_2' Iterator\n");
5387 case MB_ERR_INVALID:
5388 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' Iterator has not been created?\n");
5391 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
5404 if (rc != MB_SUCCESS)
5406 fprintf(stderr,
"ERROR: Could not get message from 'bank_firm_loan_acknowledge_2' Iterator\n");
5408 case MB_ERR_INVALID:
5409 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' Iterator has not been created?\n");
5411 case MB_ERR_MEMALLOC:
5412 fprintf(stderr,
"\t reason: out of memory\n");
5415 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
5425 msg_prev = msg_pu.ptr;
5436 return getInternalMessage_bank_firm_loan_acknowledge_2();
5446 return getInternalMessage_bank_firm_loan_acknowledge_2();
5477 if (rc != MB_SUCCESS)
5479 fprintf(stderr,
"ERROR: Could not add message to 'bank_centralbank_debt_request' board\n");
5481 case MB_ERR_INVALID:
5482 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board has not been created?\n");
5484 case MB_ERR_MEMALLOC:
5485 fprintf(stderr,
"\t reason: out of memory\n");
5488 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is locked\n");
5490 case MB_ERR_INTERNAL:
5491 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5494 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
5511 if (msg_prev != NULL)
5519 if (rc != MB_SUCCESS)
5521 fprintf(stderr,
"ERROR: Could not rewind 'bank_centralbank_debt_request' Iterator\n");
5523 case MB_ERR_INVALID:
5524 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' Iterator has not been created?\n");
5527 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
5540 if (rc != MB_SUCCESS)
5542 fprintf(stderr,
"ERROR: Could not get message from 'bank_centralbank_debt_request' Iterator\n");
5544 case MB_ERR_INVALID:
5545 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' Iterator has not been created?\n");
5547 case MB_ERR_MEMALLOC:
5548 fprintf(stderr,
"\t reason: out of memory\n");
5551 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
5561 msg_prev = msg_pu.ptr;
5572 return getInternalMessage_bank_centralbank_debt_request();
5582 return getInternalMessage_bank_centralbank_debt_request();
5611 if (rc != MB_SUCCESS)
5613 fprintf(stderr,
"ERROR: Could not add message to 'household_share' board\n");
5615 case MB_ERR_INVALID:
5616 fprintf(stderr,
"\t reason: 'household_share' board has not been created?\n");
5618 case MB_ERR_MEMALLOC:
5619 fprintf(stderr,
"\t reason: out of memory\n");
5622 fprintf(stderr,
"\t reason: 'household_share' board is locked\n");
5624 case MB_ERR_INTERNAL:
5625 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5628 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
5645 if (msg_prev != NULL)
5653 if (rc != MB_SUCCESS)
5655 fprintf(stderr,
"ERROR: Could not rewind 'household_share' Iterator\n");
5657 case MB_ERR_INVALID:
5658 fprintf(stderr,
"\t reason: 'household_share' Iterator has not been created?\n");
5661 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
5674 if (rc != MB_SUCCESS)
5676 fprintf(stderr,
"ERROR: Could not get message from 'household_share' Iterator\n");
5678 case MB_ERR_INVALID:
5679 fprintf(stderr,
"\t reason: 'household_share' Iterator has not been created?\n");
5681 case MB_ERR_MEMALLOC:
5682 fprintf(stderr,
"\t reason: out of memory\n");
5685 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
5695 msg_prev = msg_pu.ptr;
5706 return getInternalMessage_household_share();
5716 return getInternalMessage_household_share();
5745 if (rc != MB_SUCCESS)
5747 fprintf(stderr,
"ERROR: Could not add message to 'capital_tax' board\n");
5749 case MB_ERR_INVALID:
5750 fprintf(stderr,
"\t reason: 'capital_tax' board has not been created?\n");
5752 case MB_ERR_MEMALLOC:
5753 fprintf(stderr,
"\t reason: out of memory\n");
5756 fprintf(stderr,
"\t reason: 'capital_tax' board is locked\n");
5758 case MB_ERR_INTERNAL:
5759 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5762 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
5772 inline static m_capital_tax* getInternalMessage_capital_tax(
void)
5779 if (msg_prev != NULL)
5787 if (rc != MB_SUCCESS)
5789 fprintf(stderr,
"ERROR: Could not rewind 'capital_tax' Iterator\n");
5791 case MB_ERR_INVALID:
5792 fprintf(stderr,
"\t reason: 'capital_tax' Iterator has not been created?\n");
5795 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
5806 rc = MB_Iterator_GetMessage(
i_capital_tax, &(msg_pu.ptr_anon));
5808 if (rc != MB_SUCCESS)
5810 fprintf(stderr,
"ERROR: Could not get message from 'capital_tax' Iterator\n");
5812 case MB_ERR_INVALID:
5813 fprintf(stderr,
"\t reason: 'capital_tax' Iterator has not been created?\n");
5815 case MB_ERR_MEMALLOC:
5816 fprintf(stderr,
"\t reason: out of memory\n");
5819 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
5829 msg_prev = msg_pu.ptr;
5840 return getInternalMessage_capital_tax();
5850 return getInternalMessage_capital_tax();
5879 if (rc != MB_SUCCESS)
5881 fprintf(stderr,
"ERROR: Could not add message to 'labour_tax' board\n");
5883 case MB_ERR_INVALID:
5884 fprintf(stderr,
"\t reason: 'labour_tax' board has not been created?\n");
5886 case MB_ERR_MEMALLOC:
5887 fprintf(stderr,
"\t reason: out of memory\n");
5890 fprintf(stderr,
"\t reason: 'labour_tax' board is locked\n");
5892 case MB_ERR_INTERNAL:
5893 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5896 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
5906 inline static m_labour_tax* getInternalMessage_labour_tax(
void)
5913 if (msg_prev != NULL)
5921 if (rc != MB_SUCCESS)
5923 fprintf(stderr,
"ERROR: Could not rewind 'labour_tax' Iterator\n");
5925 case MB_ERR_INVALID:
5926 fprintf(stderr,
"\t reason: 'labour_tax' Iterator has not been created?\n");
5929 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
5940 rc = MB_Iterator_GetMessage(
i_labour_tax, &(msg_pu.ptr_anon));
5942 if (rc != MB_SUCCESS)
5944 fprintf(stderr,
"ERROR: Could not get message from 'labour_tax' Iterator\n");
5946 case MB_ERR_INVALID:
5947 fprintf(stderr,
"\t reason: 'labour_tax' Iterator has not been created?\n");
5949 case MB_ERR_MEMALLOC:
5950 fprintf(stderr,
"\t reason: out of memory\n");
5953 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
5963 msg_prev = msg_pu.ptr;
5974 return getInternalMessage_labour_tax();
5984 return getInternalMessage_labour_tax();
6013 if (rc != MB_SUCCESS)
6015 fprintf(stderr,
"ERROR: Could not add message to 'unemployment_benefit' board\n");
6017 case MB_ERR_INVALID:
6018 fprintf(stderr,
"\t reason: 'unemployment_benefit' board has not been created?\n");
6020 case MB_ERR_MEMALLOC:
6021 fprintf(stderr,
"\t reason: out of memory\n");
6024 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is locked\n");
6026 case MB_ERR_INTERNAL:
6027 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6030 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
6047 if (msg_prev != NULL)
6055 if (rc != MB_SUCCESS)
6057 fprintf(stderr,
"ERROR: Could not rewind 'unemployment_benefit' Iterator\n");
6059 case MB_ERR_INVALID:
6060 fprintf(stderr,
"\t reason: 'unemployment_benefit' Iterator has not been created?\n");
6063 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
6076 if (rc != MB_SUCCESS)
6078 fprintf(stderr,
"ERROR: Could not get message from 'unemployment_benefit' Iterator\n");
6080 case MB_ERR_INVALID:
6081 fprintf(stderr,
"\t reason: 'unemployment_benefit' Iterator has not been created?\n");
6083 case MB_ERR_MEMALLOC:
6084 fprintf(stderr,
"\t reason: out of memory\n");
6087 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
6097 msg_prev = msg_pu.ptr;
6108 return getInternalMessage_unemployment_benefit();
6118 return getInternalMessage_unemployment_benefit();
6147 if (rc != MB_SUCCESS)
6149 fprintf(stderr,
"ERROR: Could not add message to 'general_benefit' board\n");
6151 case MB_ERR_INVALID:
6152 fprintf(stderr,
"\t reason: 'general_benefit' board has not been created?\n");
6154 case MB_ERR_MEMALLOC:
6155 fprintf(stderr,
"\t reason: out of memory\n");
6158 fprintf(stderr,
"\t reason: 'general_benefit' board is locked\n");
6160 case MB_ERR_INTERNAL:
6161 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6164 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
6181 if (msg_prev != NULL)
6189 if (rc != MB_SUCCESS)
6191 fprintf(stderr,
"ERROR: Could not rewind 'general_benefit' Iterator\n");
6193 case MB_ERR_INVALID:
6194 fprintf(stderr,
"\t reason: 'general_benefit' Iterator has not been created?\n");
6197 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
6210 if (rc != MB_SUCCESS)
6212 fprintf(stderr,
"ERROR: Could not get message from 'general_benefit' Iterator\n");
6214 case MB_ERR_INVALID:
6215 fprintf(stderr,
"\t reason: 'general_benefit' Iterator has not been created?\n");
6217 case MB_ERR_MEMALLOC:
6218 fprintf(stderr,
"\t reason: out of memory\n");
6221 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
6231 msg_prev = msg_pu.ptr;
6242 return getInternalMessage_general_benefit();
6252 return getInternalMessage_general_benefit();
6283 if (rc != MB_SUCCESS)
6285 fprintf(stderr,
"ERROR: Could not add message to 'fund_request' board\n");
6287 case MB_ERR_INVALID:
6288 fprintf(stderr,
"\t reason: 'fund_request' board has not been created?\n");
6290 case MB_ERR_MEMALLOC:
6291 fprintf(stderr,
"\t reason: out of memory\n");
6294 fprintf(stderr,
"\t reason: 'fund_request' board is locked\n");
6296 case MB_ERR_INTERNAL:
6297 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6300 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
6310 inline static m_fund_request* getInternalMessage_fund_request(
void)
6317 if (msg_prev != NULL)
6325 if (rc != MB_SUCCESS)
6327 fprintf(stderr,
"ERROR: Could not rewind 'fund_request' Iterator\n");
6329 case MB_ERR_INVALID:
6330 fprintf(stderr,
"\t reason: 'fund_request' Iterator has not been created?\n");
6333 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
6346 if (rc != MB_SUCCESS)
6348 fprintf(stderr,
"ERROR: Could not get message from 'fund_request' Iterator\n");
6350 case MB_ERR_INVALID:
6351 fprintf(stderr,
"\t reason: 'fund_request' Iterator has not been created?\n");
6353 case MB_ERR_MEMALLOC:
6354 fprintf(stderr,
"\t reason: out of memory\n");
6357 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
6367 msg_prev = msg_pu.ptr;
6378 return getInternalMessage_fund_request();
6388 return getInternalMessage_fund_request();
6419 if (rc != MB_SUCCESS)
6421 fprintf(stderr,
"ERROR: Could not add message to 'fund_request_ack' board\n");
6423 case MB_ERR_INVALID:
6424 fprintf(stderr,
"\t reason: 'fund_request_ack' board has not been created?\n");
6426 case MB_ERR_MEMALLOC:
6427 fprintf(stderr,
"\t reason: out of memory\n");
6430 fprintf(stderr,
"\t reason: 'fund_request_ack' board is locked\n");
6432 case MB_ERR_INTERNAL:
6433 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6436 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
6453 if (msg_prev != NULL)
6461 if (rc != MB_SUCCESS)
6463 fprintf(stderr,
"ERROR: Could not rewind 'fund_request_ack' Iterator\n");
6465 case MB_ERR_INVALID:
6466 fprintf(stderr,
"\t reason: 'fund_request_ack' Iterator has not been created?\n");
6469 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
6482 if (rc != MB_SUCCESS)
6484 fprintf(stderr,
"ERROR: Could not get message from 'fund_request_ack' Iterator\n");
6486 case MB_ERR_INVALID:
6487 fprintf(stderr,
"\t reason: 'fund_request_ack' Iterator has not been created?\n");
6489 case MB_ERR_MEMALLOC:
6490 fprintf(stderr,
"\t reason: out of memory\n");
6493 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
6503 msg_prev = msg_pu.ptr;
6514 return getInternalMessage_fund_request_ack();
6524 return getInternalMessage_fund_request_ack();
6557 if (rc != MB_SUCCESS)
6559 fprintf(stderr,
"ERROR: Could not add message to 'new_entrant_loan' board\n");
6561 case MB_ERR_INVALID:
6562 fprintf(stderr,
"\t reason: 'new_entrant_loan' board has not been created?\n");
6564 case MB_ERR_MEMALLOC:
6565 fprintf(stderr,
"\t reason: out of memory\n");
6568 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is locked\n");
6570 case MB_ERR_INTERNAL:
6571 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6574 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
6591 if (msg_prev != NULL)
6599 if (rc != MB_SUCCESS)
6601 fprintf(stderr,
"ERROR: Could not rewind 'new_entrant_loan' Iterator\n");
6603 case MB_ERR_INVALID:
6604 fprintf(stderr,
"\t reason: 'new_entrant_loan' Iterator has not been created?\n");
6607 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
6620 if (rc != MB_SUCCESS)
6622 fprintf(stderr,
"ERROR: Could not get message from 'new_entrant_loan' Iterator\n");
6624 case MB_ERR_INVALID:
6625 fprintf(stderr,
"\t reason: 'new_entrant_loan' Iterator has not been created?\n");
6627 case MB_ERR_MEMALLOC:
6628 fprintf(stderr,
"\t reason: out of memory\n");
6631 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
6641 msg_prev = msg_pu.ptr;
6652 return getInternalMessage_new_entrant_loan();
6662 return getInternalMessage_new_entrant_loan();
6693 if (rc != MB_SUCCESS)
6695 fprintf(stderr,
"ERROR: Could not add message to 'firm_bank_interest_on_loan' board\n");
6697 case MB_ERR_INVALID:
6698 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board has not been created?\n");
6700 case MB_ERR_MEMALLOC:
6701 fprintf(stderr,
"\t reason: out of memory\n");
6704 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is locked\n");
6706 case MB_ERR_INTERNAL:
6707 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6710 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
6727 if (msg_prev != NULL)
6735 if (rc != MB_SUCCESS)
6737 fprintf(stderr,
"ERROR: Could not rewind 'firm_bank_interest_on_loan' Iterator\n");
6739 case MB_ERR_INVALID:
6740 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' Iterator has not been created?\n");
6743 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
6756 if (rc != MB_SUCCESS)
6758 fprintf(stderr,
"ERROR: Could not get message from 'firm_bank_interest_on_loan' Iterator\n");
6760 case MB_ERR_INVALID:
6761 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' Iterator has not been created?\n");
6763 case MB_ERR_MEMALLOC:
6764 fprintf(stderr,
"\t reason: out of memory\n");
6767 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
6777 msg_prev = msg_pu.ptr;
6788 return getInternalMessage_firm_bank_interest_on_loan();
6798 return getInternalMessage_firm_bank_interest_on_loan();
6829 if (rc != MB_SUCCESS)
6831 fprintf(stderr,
"ERROR: Could not add message to 'loan_writeoff' board\n");
6833 case MB_ERR_INVALID:
6834 fprintf(stderr,
"\t reason: 'loan_writeoff' board has not been created?\n");
6836 case MB_ERR_MEMALLOC:
6837 fprintf(stderr,
"\t reason: out of memory\n");
6840 fprintf(stderr,
"\t reason: 'loan_writeoff' board is locked\n");
6842 case MB_ERR_INTERNAL:
6843 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6846 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
6863 if (msg_prev != NULL)
6871 if (rc != MB_SUCCESS)
6873 fprintf(stderr,
"ERROR: Could not rewind 'loan_writeoff' Iterator\n");
6875 case MB_ERR_INVALID:
6876 fprintf(stderr,
"\t reason: 'loan_writeoff' Iterator has not been created?\n");
6879 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
6892 if (rc != MB_SUCCESS)
6894 fprintf(stderr,
"ERROR: Could not get message from 'loan_writeoff' Iterator\n");
6896 case MB_ERR_INVALID:
6897 fprintf(stderr,
"\t reason: 'loan_writeoff' Iterator has not been created?\n");
6899 case MB_ERR_MEMALLOC:
6900 fprintf(stderr,
"\t reason: out of memory\n");
6903 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
6913 msg_prev = msg_pu.ptr;
6924 return getInternalMessage_loan_writeoff();
6934 return getInternalMessage_loan_writeoff();
6965 if (rc != MB_SUCCESS)
6967 fprintf(stderr,
"ERROR: Could not add message to 'firm_bank_insolvent_account' board\n");
6969 case MB_ERR_INVALID:
6970 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board has not been created?\n");
6972 case MB_ERR_MEMALLOC:
6973 fprintf(stderr,
"\t reason: out of memory\n");
6976 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is locked\n");
6978 case MB_ERR_INTERNAL:
6979 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6982 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
6999 if (msg_prev != NULL)
7007 if (rc != MB_SUCCESS)
7009 fprintf(stderr,
"ERROR: Could not rewind 'firm_bank_insolvent_account' Iterator\n");
7011 case MB_ERR_INVALID:
7012 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' Iterator has not been created?\n");
7015 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
7028 if (rc != MB_SUCCESS)
7030 fprintf(stderr,
"ERROR: Could not get message from 'firm_bank_insolvent_account' Iterator\n");
7032 case MB_ERR_INVALID:
7033 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' Iterator has not been created?\n");
7035 case MB_ERR_MEMALLOC:
7036 fprintf(stderr,
"\t reason: out of memory\n");
7039 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
7049 msg_prev = msg_pu.ptr;
7060 return getInternalMessage_firm_bank_insolvent_account();
7070 return getInternalMessage_firm_bank_insolvent_account();
7103 if (rc != MB_SUCCESS)
7105 fprintf(stderr,
"ERROR: Could not add message to 'firm_net_profit' board\n");
7107 case MB_ERR_INVALID:
7108 fprintf(stderr,
"\t reason: 'firm_net_profit' board has not been created?\n");
7110 case MB_ERR_MEMALLOC:
7111 fprintf(stderr,
"\t reason: out of memory\n");
7114 fprintf(stderr,
"\t reason: 'firm_net_profit' board is locked\n");
7116 case MB_ERR_INTERNAL:
7117 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7120 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
7137 if (msg_prev != NULL)
7145 if (rc != MB_SUCCESS)
7147 fprintf(stderr,
"ERROR: Could not rewind 'firm_net_profit' Iterator\n");
7149 case MB_ERR_INVALID:
7150 fprintf(stderr,
"\t reason: 'firm_net_profit' Iterator has not been created?\n");
7153 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
7166 if (rc != MB_SUCCESS)
7168 fprintf(stderr,
"ERROR: Could not get message from 'firm_net_profit' Iterator\n");
7170 case MB_ERR_INVALID:
7171 fprintf(stderr,
"\t reason: 'firm_net_profit' Iterator has not been created?\n");
7173 case MB_ERR_MEMALLOC:
7174 fprintf(stderr,
"\t reason: out of memory\n");
7177 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
7187 msg_prev = msg_pu.ptr;
7198 return getInternalMessage_firm_net_profit();
7208 return getInternalMessage_firm_net_profit();
7239 if (rc != MB_SUCCESS)
7241 fprintf(stderr,
"ERROR: Could not add message to 'bank_net_profit' board\n");
7243 case MB_ERR_INVALID:
7244 fprintf(stderr,
"\t reason: 'bank_net_profit' board has not been created?\n");
7246 case MB_ERR_MEMALLOC:
7247 fprintf(stderr,
"\t reason: out of memory\n");
7250 fprintf(stderr,
"\t reason: 'bank_net_profit' board is locked\n");
7252 case MB_ERR_INTERNAL:
7253 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7256 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
7273 if (msg_prev != NULL)
7281 if (rc != MB_SUCCESS)
7283 fprintf(stderr,
"ERROR: Could not rewind 'bank_net_profit' Iterator\n");
7285 case MB_ERR_INVALID:
7286 fprintf(stderr,
"\t reason: 'bank_net_profit' Iterator has not been created?\n");
7289 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
7302 if (rc != MB_SUCCESS)
7304 fprintf(stderr,
"ERROR: Could not get message from 'bank_net_profit' Iterator\n");
7306 case MB_ERR_INVALID:
7307 fprintf(stderr,
"\t reason: 'bank_net_profit' Iterator has not been created?\n");
7309 case MB_ERR_MEMALLOC:
7310 fprintf(stderr,
"\t reason: out of memory\n");
7313 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
7323 msg_prev = msg_pu.ptr;
7334 return getInternalMessage_bank_net_profit();
7344 return getInternalMessage_bank_net_profit();
7375 if (rc != MB_SUCCESS)
7377 fprintf(stderr,
"ERROR: Could not add message to 'bank_centralbank_interest_payment' board\n");
7379 case MB_ERR_INVALID:
7380 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board has not been created?\n");
7382 case MB_ERR_MEMALLOC:
7383 fprintf(stderr,
"\t reason: out of memory\n");
7386 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is locked\n");
7388 case MB_ERR_INTERNAL:
7389 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7392 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
7409 if (msg_prev != NULL)
7417 if (rc != MB_SUCCESS)
7419 fprintf(stderr,
"ERROR: Could not rewind 'bank_centralbank_interest_payment' Iterator\n");
7421 case MB_ERR_INVALID:
7422 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' Iterator has not been created?\n");
7425 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
7438 if (rc != MB_SUCCESS)
7440 fprintf(stderr,
"ERROR: Could not get message from 'bank_centralbank_interest_payment' Iterator\n");
7442 case MB_ERR_INVALID:
7443 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' Iterator has not been created?\n");
7445 case MB_ERR_MEMALLOC:
7446 fprintf(stderr,
"\t reason: out of memory\n");
7449 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
7459 msg_prev = msg_pu.ptr;
7470 return getInternalMessage_bank_centralbank_interest_payment();
7480 return getInternalMessage_bank_centralbank_interest_payment();
7511 if (rc != MB_SUCCESS)
7513 fprintf(stderr,
"ERROR: Could not add message to 'bank_centralbank_debt_payment' board\n");
7515 case MB_ERR_INVALID:
7516 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board has not been created?\n");
7518 case MB_ERR_MEMALLOC:
7519 fprintf(stderr,
"\t reason: out of memory\n");
7522 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is locked\n");
7524 case MB_ERR_INTERNAL:
7525 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7528 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
7545 if (msg_prev != NULL)
7553 if (rc != MB_SUCCESS)
7555 fprintf(stderr,
"ERROR: Could not rewind 'bank_centralbank_debt_payment' Iterator\n");
7557 case MB_ERR_INVALID:
7558 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' Iterator has not been created?\n");
7561 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
7574 if (rc != MB_SUCCESS)
7576 fprintf(stderr,
"ERROR: Could not get message from 'bank_centralbank_debt_payment' Iterator\n");
7578 case MB_ERR_INVALID:
7579 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' Iterator has not been created?\n");
7581 case MB_ERR_MEMALLOC:
7582 fprintf(stderr,
"\t reason: out of memory\n");
7585 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
7595 msg_prev = msg_pu.ptr;
7606 return getInternalMessage_bank_centralbank_debt_payment();
7616 return getInternalMessage_bank_centralbank_debt_payment();
7645 if (rc != MB_SUCCESS)
7647 fprintf(stderr,
"ERROR: Could not add message to 'gov_centralbank_debt_request' board\n");
7649 case MB_ERR_INVALID:
7650 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board has not been created?\n");
7652 case MB_ERR_MEMALLOC:
7653 fprintf(stderr,
"\t reason: out of memory\n");
7656 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is locked\n");
7658 case MB_ERR_INTERNAL:
7659 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7662 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
7679 if (msg_prev != NULL)
7687 if (rc != MB_SUCCESS)
7689 fprintf(stderr,
"ERROR: Could not rewind 'gov_centralbank_debt_request' Iterator\n");
7691 case MB_ERR_INVALID:
7692 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' Iterator has not been created?\n");
7695 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
7708 if (rc != MB_SUCCESS)
7710 fprintf(stderr,
"ERROR: Could not get message from 'gov_centralbank_debt_request' Iterator\n");
7712 case MB_ERR_INVALID:
7713 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' Iterator has not been created?\n");
7715 case MB_ERR_MEMALLOC:
7716 fprintf(stderr,
"\t reason: out of memory\n");
7719 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
7729 msg_prev = msg_pu.ptr;
7740 return getInternalMessage_gov_centralbank_debt_request();
7750 return getInternalMessage_gov_centralbank_debt_request();
7779 if (rc != MB_SUCCESS)
7781 fprintf(stderr,
"ERROR: Could not add message to 'gov_centralbank_debt_payment' board\n");
7783 case MB_ERR_INVALID:
7784 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board has not been created?\n");
7786 case MB_ERR_MEMALLOC:
7787 fprintf(stderr,
"\t reason: out of memory\n");
7790 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is locked\n");
7792 case MB_ERR_INTERNAL:
7793 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7796 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
7813 if (msg_prev != NULL)
7821 if (rc != MB_SUCCESS)
7823 fprintf(stderr,
"ERROR: Could not rewind 'gov_centralbank_debt_payment' Iterator\n");
7825 case MB_ERR_INVALID:
7826 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' Iterator has not been created?\n");
7829 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
7842 if (rc != MB_SUCCESS)
7844 fprintf(stderr,
"ERROR: Could not get message from 'gov_centralbank_debt_payment' Iterator\n");
7846 case MB_ERR_INVALID:
7847 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' Iterator has not been created?\n");
7849 case MB_ERR_MEMALLOC:
7850 fprintf(stderr,
"\t reason: out of memory\n");
7853 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
7863 msg_prev = msg_pu.ptr;
7874 return getInternalMessage_gov_centralbank_debt_payment();
7884 return getInternalMessage_gov_centralbank_debt_payment();
7913 if (rc != MB_SUCCESS)
7915 fprintf(stderr,
"ERROR: Could not add message to 'centralbank_government_profit' board\n");
7917 case MB_ERR_INVALID:
7918 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board has not been created?\n");
7920 case MB_ERR_MEMALLOC:
7921 fprintf(stderr,
"\t reason: out of memory\n");
7924 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is locked\n");
7926 case MB_ERR_INTERNAL:
7927 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7930 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
7947 if (msg_prev != NULL)
7955 if (rc != MB_SUCCESS)
7957 fprintf(stderr,
"ERROR: Could not rewind 'centralbank_government_profit' Iterator\n");
7959 case MB_ERR_INVALID:
7960 fprintf(stderr,
"\t reason: 'centralbank_government_profit' Iterator has not been created?\n");
7963 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
7976 if (rc != MB_SUCCESS)
7978 fprintf(stderr,
"ERROR: Could not get message from 'centralbank_government_profit' Iterator\n");
7980 case MB_ERR_INVALID:
7981 fprintf(stderr,
"\t reason: 'centralbank_government_profit' Iterator has not been created?\n");
7983 case MB_ERR_MEMALLOC:
7984 fprintf(stderr,
"\t reason: out of memory\n");
7987 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
7997 msg_prev = msg_pu.ptr;
8008 return getInternalMessage_centralbank_government_profit();
8018 return getInternalMessage_centralbank_government_profit();
8047 if (rc != MB_SUCCESS)
8049 fprintf(stderr,
"ERROR: Could not add message to 'housing_price' board\n");
8051 case MB_ERR_INVALID:
8052 fprintf(stderr,
"\t reason: 'housing_price' board has not been created?\n");
8054 case MB_ERR_MEMALLOC:
8055 fprintf(stderr,
"\t reason: out of memory\n");
8058 fprintf(stderr,
"\t reason: 'housing_price' board is locked\n");
8060 case MB_ERR_INTERNAL:
8061 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8064 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
8081 if (msg_prev != NULL)
8089 if (rc != MB_SUCCESS)
8091 fprintf(stderr,
"ERROR: Could not rewind 'housing_price' Iterator\n");
8093 case MB_ERR_INVALID:
8094 fprintf(stderr,
"\t reason: 'housing_price' Iterator has not been created?\n");
8097 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
8110 if (rc != MB_SUCCESS)
8112 fprintf(stderr,
"ERROR: Could not get message from 'housing_price' Iterator\n");
8114 case MB_ERR_INVALID:
8115 fprintf(stderr,
"\t reason: 'housing_price' Iterator has not been created?\n");
8117 case MB_ERR_MEMALLOC:
8118 fprintf(stderr,
"\t reason: out of memory\n");
8121 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
8131 msg_prev = msg_pu.ptr;
8142 return getInternalMessage_housing_price();
8152 return getInternalMessage_housing_price();
8176 void add_buy_housing_message(
int buyer_id,
int bank_id,
double liquidity,
double quarterly_income,
double quarterly_mortgage_paid,
int mortgage_choice)
8191 if (rc != MB_SUCCESS)
8193 fprintf(stderr,
"ERROR: Could not add message to 'buy_housing' board\n");
8195 case MB_ERR_INVALID:
8196 fprintf(stderr,
"\t reason: 'buy_housing' board has not been created?\n");
8198 case MB_ERR_MEMALLOC:
8199 fprintf(stderr,
"\t reason: out of memory\n");
8202 fprintf(stderr,
"\t reason: 'buy_housing' board is locked\n");
8204 case MB_ERR_INTERNAL:
8205 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8208 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
8218 inline static m_buy_housing* getInternalMessage_buy_housing(
void)
8225 if (msg_prev != NULL)
8233 if (rc != MB_SUCCESS)
8235 fprintf(stderr,
"ERROR: Could not rewind 'buy_housing' Iterator\n");
8237 case MB_ERR_INVALID:
8238 fprintf(stderr,
"\t reason: 'buy_housing' Iterator has not been created?\n");
8241 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
8252 rc = MB_Iterator_GetMessage(
i_buy_housing, &(msg_pu.ptr_anon));
8254 if (rc != MB_SUCCESS)
8256 fprintf(stderr,
"ERROR: Could not get message from 'buy_housing' Iterator\n");
8258 case MB_ERR_INVALID:
8259 fprintf(stderr,
"\t reason: 'buy_housing' Iterator has not been created?\n");
8261 case MB_ERR_MEMALLOC:
8262 fprintf(stderr,
"\t reason: out of memory\n");
8265 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
8275 msg_prev = msg_pu.ptr;
8286 return getInternalMessage_buy_housing();
8296 return getInternalMessage_buy_housing();
8331 if (rc != MB_SUCCESS)
8333 fprintf(stderr,
"ERROR: Could not add message to 'sell_housing' board\n");
8335 case MB_ERR_INVALID:
8336 fprintf(stderr,
"\t reason: 'sell_housing' board has not been created?\n");
8338 case MB_ERR_MEMALLOC:
8339 fprintf(stderr,
"\t reason: out of memory\n");
8342 fprintf(stderr,
"\t reason: 'sell_housing' board is locked\n");
8344 case MB_ERR_INTERNAL:
8345 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8348 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
8358 inline static m_sell_housing* getInternalMessage_sell_housing(
void)
8365 if (msg_prev != NULL)
8373 if (rc != MB_SUCCESS)
8375 fprintf(stderr,
"ERROR: Could not rewind 'sell_housing' Iterator\n");
8377 case MB_ERR_INVALID:
8378 fprintf(stderr,
"\t reason: 'sell_housing' Iterator has not been created?\n");
8381 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
8394 if (rc != MB_SUCCESS)
8396 fprintf(stderr,
"ERROR: Could not get message from 'sell_housing' Iterator\n");
8398 case MB_ERR_INVALID:
8399 fprintf(stderr,
"\t reason: 'sell_housing' Iterator has not been created?\n");
8401 case MB_ERR_MEMALLOC:
8402 fprintf(stderr,
"\t reason: out of memory\n");
8405 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
8415 msg_prev = msg_pu.ptr;
8426 return getInternalMessage_sell_housing();
8436 return getInternalMessage_sell_housing();
8471 if (rc != MB_SUCCESS)
8473 fprintf(stderr,
"ERROR: Could not add message to 'bought_housing' board\n");
8475 case MB_ERR_INVALID:
8476 fprintf(stderr,
"\t reason: 'bought_housing' board has not been created?\n");
8478 case MB_ERR_MEMALLOC:
8479 fprintf(stderr,
"\t reason: out of memory\n");
8482 fprintf(stderr,
"\t reason: 'bought_housing' board is locked\n");
8484 case MB_ERR_INTERNAL:
8485 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8488 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
8505 if (msg_prev != NULL)
8513 if (rc != MB_SUCCESS)
8515 fprintf(stderr,
"ERROR: Could not rewind 'bought_housing' Iterator\n");
8517 case MB_ERR_INVALID:
8518 fprintf(stderr,
"\t reason: 'bought_housing' Iterator has not been created?\n");
8521 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
8534 if (rc != MB_SUCCESS)
8536 fprintf(stderr,
"ERROR: Could not get message from 'bought_housing' Iterator\n");
8538 case MB_ERR_INVALID:
8539 fprintf(stderr,
"\t reason: 'bought_housing' Iterator has not been created?\n");
8541 case MB_ERR_MEMALLOC:
8542 fprintf(stderr,
"\t reason: out of memory\n");
8545 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
8555 msg_prev = msg_pu.ptr;
8566 return getInternalMessage_bought_housing();
8576 return getInternalMessage_bought_housing();
8609 if (rc != MB_SUCCESS)
8611 fprintf(stderr,
"ERROR: Could not add message to 'sold_housing' board\n");
8613 case MB_ERR_INVALID:
8614 fprintf(stderr,
"\t reason: 'sold_housing' board has not been created?\n");
8616 case MB_ERR_MEMALLOC:
8617 fprintf(stderr,
"\t reason: out of memory\n");
8620 fprintf(stderr,
"\t reason: 'sold_housing' board is locked\n");
8622 case MB_ERR_INTERNAL:
8623 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8626 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
8636 inline static m_sold_housing* getInternalMessage_sold_housing(
void)
8643 if (msg_prev != NULL)
8651 if (rc != MB_SUCCESS)
8653 fprintf(stderr,
"ERROR: Could not rewind 'sold_housing' Iterator\n");
8655 case MB_ERR_INVALID:
8656 fprintf(stderr,
"\t reason: 'sold_housing' Iterator has not been created?\n");
8659 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
8672 if (rc != MB_SUCCESS)
8674 fprintf(stderr,
"ERROR: Could not get message from 'sold_housing' Iterator\n");
8676 case MB_ERR_INVALID:
8677 fprintf(stderr,
"\t reason: 'sold_housing' Iterator has not been created?\n");
8679 case MB_ERR_MEMALLOC:
8680 fprintf(stderr,
"\t reason: out of memory\n");
8683 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
8693 msg_prev = msg_pu.ptr;
8704 return getInternalMessage_sold_housing();
8714 return getInternalMessage_sold_housing();
8747 if (rc != MB_SUCCESS)
8749 fprintf(stderr,
"ERROR: Could not add message to 'bank_reagency_credibility' board\n");
8751 case MB_ERR_INVALID:
8752 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board has not been created?\n");
8754 case MB_ERR_MEMALLOC:
8755 fprintf(stderr,
"\t reason: out of memory\n");
8758 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is locked\n");
8760 case MB_ERR_INTERNAL:
8761 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8764 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
8781 if (msg_prev != NULL)
8789 if (rc != MB_SUCCESS)
8791 fprintf(stderr,
"ERROR: Could not rewind 'bank_reagency_credibility' Iterator\n");
8793 case MB_ERR_INVALID:
8794 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' Iterator has not been created?\n");
8797 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
8810 if (rc != MB_SUCCESS)
8812 fprintf(stderr,
"ERROR: Could not get message from 'bank_reagency_credibility' Iterator\n");
8814 case MB_ERR_INVALID:
8815 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' Iterator has not been created?\n");
8817 case MB_ERR_MEMALLOC:
8818 fprintf(stderr,
"\t reason: out of memory\n");
8821 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
8831 msg_prev = msg_pu.ptr;
8842 return getInternalMessage_bank_reagency_credibility();
8852 return getInternalMessage_bank_reagency_credibility();
8883 if (rc != MB_SUCCESS)
8885 fprintf(stderr,
"ERROR: Could not add message to 'mortgage_requests' board\n");
8887 case MB_ERR_INVALID:
8888 fprintf(stderr,
"\t reason: 'mortgage_requests' board has not been created?\n");
8890 case MB_ERR_MEMALLOC:
8891 fprintf(stderr,
"\t reason: out of memory\n");
8894 fprintf(stderr,
"\t reason: 'mortgage_requests' board is locked\n");
8896 case MB_ERR_INTERNAL:
8897 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8900 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
8917 if (msg_prev != NULL)
8925 if (rc != MB_SUCCESS)
8927 fprintf(stderr,
"ERROR: Could not rewind 'mortgage_requests' Iterator\n");
8929 case MB_ERR_INVALID:
8930 fprintf(stderr,
"\t reason: 'mortgage_requests' Iterator has not been created?\n");
8933 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
8946 if (rc != MB_SUCCESS)
8948 fprintf(stderr,
"ERROR: Could not get message from 'mortgage_requests' Iterator\n");
8950 case MB_ERR_INVALID:
8951 fprintf(stderr,
"\t reason: 'mortgage_requests' Iterator has not been created?\n");
8953 case MB_ERR_MEMALLOC:
8954 fprintf(stderr,
"\t reason: out of memory\n");
8957 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
8967 msg_prev = msg_pu.ptr;
8978 return getInternalMessage_mortgage_requests();
8988 return getInternalMessage_mortgage_requests();
9019 if (rc != MB_SUCCESS)
9021 fprintf(stderr,
"ERROR: Could not add message to 'mortgage_payment_from_sale' board\n");
9023 case MB_ERR_INVALID:
9024 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board has not been created?\n");
9026 case MB_ERR_MEMALLOC:
9027 fprintf(stderr,
"\t reason: out of memory\n");
9030 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is locked\n");
9032 case MB_ERR_INTERNAL:
9033 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9036 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
9053 if (msg_prev != NULL)
9061 if (rc != MB_SUCCESS)
9063 fprintf(stderr,
"ERROR: Could not rewind 'mortgage_payment_from_sale' Iterator\n");
9065 case MB_ERR_INVALID:
9066 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' Iterator has not been created?\n");
9069 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
9082 if (rc != MB_SUCCESS)
9084 fprintf(stderr,
"ERROR: Could not get message from 'mortgage_payment_from_sale' Iterator\n");
9086 case MB_ERR_INVALID:
9087 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' Iterator has not been created?\n");
9089 case MB_ERR_MEMALLOC:
9090 fprintf(stderr,
"\t reason: out of memory\n");
9093 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
9103 msg_prev = msg_pu.ptr;
9114 return getInternalMessage_mortgage_payment_from_sale();
9124 return getInternalMessage_mortgage_payment_from_sale();
9157 if (rc != MB_SUCCESS)
9159 fprintf(stderr,
"ERROR: Could not add message to 'mortgage_payment' board\n");
9161 case MB_ERR_INVALID:
9162 fprintf(stderr,
"\t reason: 'mortgage_payment' board has not been created?\n");
9164 case MB_ERR_MEMALLOC:
9165 fprintf(stderr,
"\t reason: out of memory\n");
9168 fprintf(stderr,
"\t reason: 'mortgage_payment' board is locked\n");
9170 case MB_ERR_INTERNAL:
9171 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9174 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
9191 if (msg_prev != NULL)
9199 if (rc != MB_SUCCESS)
9201 fprintf(stderr,
"ERROR: Could not rewind 'mortgage_payment' Iterator\n");
9203 case MB_ERR_INVALID:
9204 fprintf(stderr,
"\t reason: 'mortgage_payment' Iterator has not been created?\n");
9207 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
9220 if (rc != MB_SUCCESS)
9222 fprintf(stderr,
"ERROR: Could not get message from 'mortgage_payment' Iterator\n");
9224 case MB_ERR_INVALID:
9225 fprintf(stderr,
"\t reason: 'mortgage_payment' Iterator has not been created?\n");
9227 case MB_ERR_MEMALLOC:
9228 fprintf(stderr,
"\t reason: out of memory\n");
9231 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
9241 msg_prev = msg_pu.ptr;
9252 return getInternalMessage_mortgage_payment();
9262 return getInternalMessage_mortgage_payment();
9293 if (rc != MB_SUCCESS)
9295 fprintf(stderr,
"ERROR: Could not add message to 'mortgage_writeoff' board\n");
9297 case MB_ERR_INVALID:
9298 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board has not been created?\n");
9300 case MB_ERR_MEMALLOC:
9301 fprintf(stderr,
"\t reason: out of memory\n");
9304 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is locked\n");
9306 case MB_ERR_INTERNAL:
9307 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9310 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
9327 if (msg_prev != NULL)
9335 if (rc != MB_SUCCESS)
9337 fprintf(stderr,
"ERROR: Could not rewind 'mortgage_writeoff' Iterator\n");
9339 case MB_ERR_INVALID:
9340 fprintf(stderr,
"\t reason: 'mortgage_writeoff' Iterator has not been created?\n");
9343 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
9356 if (rc != MB_SUCCESS)
9358 fprintf(stderr,
"ERROR: Could not get message from 'mortgage_writeoff' Iterator\n");
9360 case MB_ERR_INVALID:
9361 fprintf(stderr,
"\t reason: 'mortgage_writeoff' Iterator has not been created?\n");
9363 case MB_ERR_MEMALLOC:
9364 fprintf(stderr,
"\t reason: out of memory\n");
9367 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
9377 msg_prev = msg_pu.ptr;
9388 return getInternalMessage_mortgage_writeoff();
9398 return getInternalMessage_mortgage_writeoff();
9429 if (rc != MB_SUCCESS)
9431 fprintf(stderr,
"ERROR: Could not add message to 'housing_transactions_summary' board\n");
9433 case MB_ERR_INVALID:
9434 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board has not been created?\n");
9436 case MB_ERR_MEMALLOC:
9437 fprintf(stderr,
"\t reason: out of memory\n");
9440 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is locked\n");
9442 case MB_ERR_INTERNAL:
9443 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9446 fprintf(stderr,
"\t MB_AddMessage returned error code: %d (see libmboard docs for details)\n", rc);
9463 if (msg_prev != NULL)
9471 if (rc != MB_SUCCESS)
9473 fprintf(stderr,
"ERROR: Could not rewind 'housing_transactions_summary' Iterator\n");
9475 case MB_ERR_INVALID:
9476 fprintf(stderr,
"\t reason: 'housing_transactions_summary' Iterator has not been created?\n");
9479 fprintf(stderr,
"\t MB_Iterator_Rewind returned error code: %d (see libmboard docs for details)\n", rc);
9492 if (rc != MB_SUCCESS)
9494 fprintf(stderr,
"ERROR: Could not get message from 'housing_transactions_summary' Iterator\n");
9496 case MB_ERR_INVALID:
9497 fprintf(stderr,
"\t reason: 'housing_transactions_summary' Iterator has not been created?\n");
9499 case MB_ERR_MEMALLOC:
9500 fprintf(stderr,
"\t reason: out of memory\n");
9503 fprintf(stderr,
"\t MB_Iterator_GetMessage returned error code: %d (see libmboard docs for details)\n", rc);
9513 msg_prev = msg_pu.ptr;
9524 return getInternalMessage_housing_transactions_summary();
9534 return getInternalMessage_housing_transactions_summary();