From 995039163b27983555d71ec9ad8cecf4e70fd229 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Wed, 22 Apr 2015 00:35:08 +0200 Subject: [PATCH] Add descriptive behaviour for command arguments. --- include/descriptive.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/descriptive.h diff --git a/include/descriptive.h b/include/descriptive.h new file mode 100644 index 0000000..d93c931 --- /dev/null +++ b/include/descriptive.h @@ -0,0 +1,33 @@ +#ifndef __COMMAND_DESCRIPTIVE_H +#define __COMMAND_DESCRIPTIVE_H + +#include + +namespace command { + /** + * Descriptive behaviour class. + */ + class Descriptive { + std::string description; + public: + /** + * Default constructor. + * + * @param description Description + */ + Descriptive(std::string description) + : description(description) { + } + + /** + * Returns description of the current class. + * + * @return provided description for the class + */ + std::string describe() { + return description; + } + }; +} + +#endif /* __COMMAND_DESCRIPTIVE_H */ -- 2.30.2