diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-08-17 19:31:37 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-08-17 19:31:37 -0300 |
commit | e0c29962e6f334452f0c9db2caaf6ed18065de85 (patch) | |
tree | cee27801c196fbcacf6130ad64216af133b555dd /tests/libsample/kindergarten.h |
The End Is the Beginning Is the End
Diffstat (limited to 'tests/libsample/kindergarten.h')
-rw-r--r-- | tests/libsample/kindergarten.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/libsample/kindergarten.h b/tests/libsample/kindergarten.h new file mode 100644 index 000000000..b0a083dce --- /dev/null +++ b/tests/libsample/kindergarten.h @@ -0,0 +1,29 @@ +#ifndef KINDERGARTEN_H +#define KINDERGARTEN_H + +#include <list> +#include "abstract.h" + +class KinderGarten +{ +public: + typedef std::list<Abstract*> ChildList; + + KinderGarten() {} + ~KinderGarten(); + + void addChild(Abstract* child); + Abstract* releaseChild(Abstract* child); + ChildList children() { return m_children; } + + void killChildren(); + void killChild(Abstract* child); + + void show(); + +private: + ChildList m_children; +}; + +#endif // KINDERGARTEN_H + |