more updates
[synfig.git] / synfig-core / trunk / src / synfig / listimporter.h
1 /* === S I N F G =========================================================== */
2 /*!     \file listimporter.h
3 **      \brief Template Header
4 **
5 **      $Id: listimporter.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SINFG_LISTIMPORTER_H
25 #define __SINFG_LISTIMPORTER_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include "importer.h"
30 #include "surface.h"
31 #include <ETL/smart_ptr>
32 #include <vector>
33 //#include <deque>
34 #include <list>
35 #include <utility>
36
37 /* === M A C R O S ========================================================= */
38
39 /* === T Y P E D E F S ===================================================== */
40
41 /* === C L A S S E S & S T R U C T S ======================================= */
42
43 namespace sinfg {
44
45 /*!     \class ListImporter
46 **      \todo Write more detailed description
47 */
48 class ListImporter : public Importer
49 {
50         float fps;
51         std::vector<String> filename_list;
52         std::list<std::pair<int,Surface> > frame_cache;
53 protected:
54         ListImporter(const String &filename);
55
56 public:
57
58         virtual ~ListImporter();
59
60         virtual bool get_frame(Surface &surface,Time time, ProgressCallback *callback=NULL);
61
62         virtual bool is_animated();
63
64         static Importer* create(const char *filename);
65 };
66         
67 }; // END of namespace sinfg
68
69 /* === E N D =============================================================== */
70
71 #endif