Pression  1.2.0
Compressor, decompressor, uploader and downloader plugins
types.h
1 
2 /* Copyright (c) 2007-2016, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License version 2.1 as published
6  * by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  */
17 
18 #ifndef PRESSION_TYPES_H
19 #define PRESSION_TYPES_H
20 
21 #include <pression/defines.h>
22 #include <lunchbox/visitorResult.h> // enum
23 #include <lunchbox/types.h>
24 
26 struct EqCompressorInfo;
27 typedef std::vector< EqCompressorInfo > EqCompressorInfos;
28 typedef EqCompressorInfos::const_iterator EqCompressorInfosCIter;
31 namespace pression
32 {
33 
34 using lunchbox::Strings;
35 using lunchbox::StringsCIter;
36 using lunchbox::VisitorResult;
37 using lunchbox::TRAVERSE_CONTINUE;
38 using lunchbox::TRAVERSE_PRUNE;
39 using lunchbox::TRAVERSE_TERMINATE;
40 
41 class Plugin;
42 class PluginRegistry;
43 class Uploader;
44 
45 struct CompressorResult;
46 
47 typedef lunchbox::Array< void > CompressorChunk;
48 typedef std::vector< CompressorChunk > CompressorChunks;
49 typedef std::vector< Plugin* > Plugins;
50 typedef Plugins::const_iterator PluginsCIter;
51 
52 template< class, class > class PluginVisitorT;
53 typedef PluginVisitorT< Plugin, EqCompressorInfo > PluginVisitor;
54 typedef PluginVisitorT< const Plugin,
55  const EqCompressorInfo > ConstPluginVisitor;
56 
58 struct CompressorInfo;
59 typedef std::vector< CompressorInfo > CompressorInfos;
60 typedef CompressorInfos::const_iterator CompressorInfosCIter;
61 typedef CompressorInfos::iterator CompressorInfosIter;
63 }
64 
65 #endif //PRESSION_TYPES_H
Information about one compressor.
Includes compile-time defines of Pression.