X-Git-Url: https://ruin.nu/git/?p=germs.git;a=blobdiff_plain;f=src%2Fsortaction.h;h=66c337ca625cac468b113debc86c1cd224029a76;hp=0e59cd385e1701eff4b2a592fbd0dc9aae2c73bb;hb=6ed5c4682ee599c7d03d8c67dcca3ac4033a63ec;hpb=5f37e9f08f736f4fe4576dd530c60ecb87017907 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;