08be41e8be3638613191c17d4515c70bf9591d47
[command.git] / include / descriptive.h
1 #ifndef __COMMAND_DESCRIPTIVE_H
2 #define __COMMAND_DESCRIPTIVE_H
3
4 #include <string>
5
6 namespace command {
7     /**
8      * Descriptive behaviour class.
9      */
10     class Descriptive {
11         std::string description;
12     public:
13         /**
14          * Default constructor.
15          *
16          * @param description Description
17          */
18         Descriptive(const std::string& description)
19             : description(description) {
20         }
21
22         /**
23          * Returns description of the current class.
24          *
25          * @return provided description for the class
26          */
27         std::string describe() {
28             return description;
29         }
30     };
31 }
32
33 #endif /* __COMMAND_DESCRIPTIVE_H */