| 1 | /** |
| 2 | \file nutshell.h |
| 3 | An overly extended example of how to use breathe |
| 4 | */ |
| 5 | |
| 6 | /*! |
| 7 | With a little bit of a elaboration, should you feel it necessary. |
| 8 | */ |
| 9 | class Nutshell |
| 10 | { |
| 11 | public: |
| 12 | |
| 13 | //! Our tool set |
| 14 | /*! The various tools we can opt to use to crack this particular nut */ |
| 15 | enum Tool |
| 16 | { |
| 17 | kHammer = 0, //!< What? It does the job |
| 18 | kNutCrackers, //!< Boring |
| 19 | kNinjaThrowingStars //!< Stealthy |
| 20 | }; |
| 21 | |
| 22 | //! Nutshell constructor |
| 23 | Nutshell(); |
| 24 | |
| 25 | //! Nutshell destructor |
| 26 | ~Nutshell(); |
| 27 | |
| 28 | /*! Crack that shell with specified tool |
| 29 | |
| 30 | \param tool - the tool with which to crack the nut |
| 31 | */ |
| 32 | void crack( Tool tool ); |
| 33 | |
| 34 | /*! |
| 35 | \return Whether or not the nut is cracked |
| 36 | */ |
| 37 | bool isCracked(); |
| 38 | |
| 39 | private: |
| 40 | |
| 41 | //! Our cracked state |
| 42 | bool m_isCracked; |
| 43 | |
| 44 | }; |
| 45 | |
| 46 |