| 607 | }; |
| 608 | |
| 609 | struct CommandComment |
| 610 | { |
| 611 | CommandComment(const CommentPlacement &p, const std::string &c) |
| 612 | : placement(p), comment(c) |
| 613 | { |
| 614 | } |
| 615 | |
| 616 | const std::string GetComment(const CommentPlacement &p) const |
| 617 | { |
| 618 | return (p == placement ? comment + "\n" : ""); |
| 619 | } |
| 620 | |
| 621 | const CommentPlacement placement; |
| 622 | const std::string comment; |
| 623 | }; |
| 624 | using CmdComments = std::vector<CommandComment>; |
| 625 | |
| 626 |