| 566 | |
| 567 | template <typename Processor> |
| 568 | void dump_message() |
| 569 | { |
| 570 | header(); |
| 571 | int num_objects = 0; |
| 572 | |
| 573 | // Add the object |
| 574 | int x = 30; |
| 575 | int y = 30 + 50 * 2; |
| 576 | |
| 577 | fmt::print(outfile, "#X obj {} {} {};\n", x, y, avnd::get_c_name<Processor>()); |
| 578 | num_objects++; |
| 579 | |
| 580 | // Add a print |
| 581 | x = 30; |
| 582 | y = 30 + 50 * 4; |
| 583 | fmt::print(outfile, "#X obj {} {} print;\n", x, y); |
| 584 | num_objects++; |
| 585 | |
| 586 | x = 50; |
| 587 | y = 30 + 50; |
| 588 | dump_controls<Processor>(x, y, 1, num_objects); |
| 589 | |
| 590 | x = 70; |
| 591 | y = 30 + 80; |
| 592 | dump_messages<Processor>(x, y, 1, num_objects); |
| 593 | } |
| 594 | |
| 595 | #include <fstream> |
| 596 | #include <iostream> |