Gnash  0.8.11dev
filter_factory.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 #ifndef GNASH_FILTER_FACTORY_H
20 #define GNASH_FILTER_FACTORY_H
21 
22 #include <vector>
23 #include <memory>
24 
25 namespace gnash {
26  class SWFStream;
27  class BitmapFilter;
28 }
29 
30 namespace gnash {
31 
32 typedef std::vector<std::unique_ptr<BitmapFilter> > Filters;
33 
35 {
36 public:
41  static int read(SWFStream& in, bool read_multiple,
42  Filters* store);
43 };
44 
45 } // Namespace gnash
46 
47 #endif // GNASH_FILTER_FACTORY_H
std::vector< std::unique_ptr< BitmapFilter > > Filters
Definition: filter_factory.h:32
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Definition: filter_factory.h:34
static int read(SWFStream &in, bool read_multiple, Filters *store)
Read one, possibly multiple filters from the stream, and push them into the vector store...
Definition: filter_factory.cpp:41
SWF stream wrapper class.
Definition: SWFStream.h:58