Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
src/MPD/AbstractComposite.hh
Go to the documentation of this file.
00001 #ifndef FREYA_ABSTRACT_COMPOSITE
00002 #define FREYA_ABSTRACT_COMPOSITE
00003 
00004 #include <vector>
00005 
00006 namespace MPD
00007 {
00008     class AbstractComposite
00009     {
00010     public:
00011 
00012         AbstractComposite(bool is_leaf)
00013         {
00014             m_IsLeaf = is_leaf;
00015         }
00016         virtual ~AbstractComposite() {}
00024         bool is_leaf()
00025         {
00026             return m_IsLeaf;
00027         }
00033         virtual const char * get_path() = 0;
00034 
00035     private:
00036         bool m_IsLeaf;
00037     };
00038 }
00039 
00040 #endif /* end of include guard: FREYA_ABSTRACT_COMPOSITE */