Run time type identification
[melted] / mlt++ / src / MltService.h
index 297f954..9aef193 100644 (file)
@@ -31,6 +31,20 @@ namespace Mlt
        class Properties;
        class Frame;
 
+       enum service_type
+       {
+               invalid_type,
+               unknown_type,
+               producer_type,
+               playlist_type,
+               tractor_type,
+               multitrack_type,
+               filter_type,
+               transition_type,
+               consumer_type,
+               field_type
+       };
+
        class Service : public Properties
        {
                private:
@@ -46,6 +60,7 @@ namespace Mlt
                        Service *consumer( );
                        Service *producer( );
                        Frame *get_frame( int index = 0 );
+                       service_type type( );
        };
 }