X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltParser.h;fp=mlt%2B%2B%2Fsrc%2FMltParser.h;h=397834ec13113798454b6ec7f2bcf7e2840a50a6;hb=86d5ec6413cb945b81475a91ee998b46c6c95a73;hp=0000000000000000000000000000000000000000;hpb=bb5183402001f5b7e481af14d631c68f62035abd;p=melted diff --git a/mlt++/src/MltParser.h b/mlt++/src/MltParser.h new file mode 100644 index 0000000..397834e --- /dev/null +++ b/mlt++/src/MltParser.h @@ -0,0 +1,67 @@ +/** + * MltParser.h - MLT Wrapper + * Copyright (C) 2004-2005 Charles Yates + * Author: Charles Yates + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef _MLTPP_PARSER_H_ +#define _MLTPP_PARSER_H_ + +#include +#include "MltProperties.h" + +namespace Mlt +{ + class Properties; + class Service; + class Producer; + class Playlist; + class Tractor; + class Multitrack; + class Filter; + class Transition; + + class Parser : public Properties + { + private: + mlt_parser parser; + protected: + virtual mlt_properties get_properties( ); + public: + Parser( ); + ~Parser( ); + int start( Service &service ); + virtual int on_invalid( Service *object ); + virtual int on_unknown( Service *object ); + virtual int on_start_producer( Producer *object ); + virtual int on_end_producer( Producer *object ); + virtual int on_start_playlist( Playlist *object ); + virtual int on_end_playlist( Playlist *object ); + virtual int on_start_tractor( Tractor *object ); + virtual int on_end_tractor( Tractor *object ); + virtual int on_start_multitrack( Multitrack *object ); + virtual int on_end_multitrack( Multitrack *object ); + virtual int on_start_track( ); + virtual int on_end_track( ); + virtual int on_start_filter( Filter *object ); + virtual int on_end_filter( Filter *object ); + virtual int on_start_transition( Transition *object ); + virtual int on_end_transition( Transition *object ); + }; +} + +#endif