X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Fsortaction.h;h=66c337ca625cac468b113debc86c1cd224029a76;hb=90e2c43b99205b0d7a300209011231cd8d11f7a0;hp=0e59cd385e1701eff4b2a592fbd0dc9aae2c73bb;hpb=1c14858d7eb8283d147fbe11963d7b32b221a98b;p=germs.git diff --git a/src/sortaction.h b/src/sortaction.h index 0e59cd3..66c337c 100644 --- a/src/sortaction.h +++ b/src/sortaction.h @@ -22,6 +22,7 @@ #define __SORTACTION_H__ #include +#include class GeneOrder; /** * Abstraction of a sort action, all child actions has to be immutable. @@ -63,6 +64,13 @@ class SortAction{ virtual bool operator==(const SortAction& sa) const{ return (*_action) == (sa._action.get() == 0 ? sa : *sa._action); } + + /** + * Gives a string representation of the action, for output + */ + virtual std::string toString() const{ + return _action->toString(); + } private: ActionPointer _action;