Pression  1.0.0
Compressor, decompressor, uploader and downloader plugins
 All Classes Files Functions Variables Macros Pages
types.h
1 
2 /* Copyright (c) 2007-2014, 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 
32 #ifndef PRESSION_TYPES_H
33 #define PRESSION_TYPES_H
34 
35 #include <pression/defines.h>
36 #include <lunchbox/visitorResult.h> // enum
37 #include <lunchbox/types.h>
38 
40 struct EqCompressorInfo;
41 typedef std::vector< EqCompressorInfo > EqCompressorInfos;
42 typedef EqCompressorInfos::const_iterator EqCompressorInfosCIter;
45 namespace pression
46 {
47 
48 using lunchbox::Strings;
49 using lunchbox::StringsCIter;
50 using lunchbox::VisitorResult;
51 using lunchbox::TRAVERSE_CONTINUE;
52 using lunchbox::TRAVERSE_PRUNE;
53 using lunchbox::TRAVERSE_TERMINATE;
54 
55 class Plugin;
56 class PluginRegistry;
57 class Uploader;
58 
59 struct CompressorResult;
60 
61 typedef lunchbox::Array< void > CompressorChunk;
62 typedef std::vector< CompressorChunk > CompressorChunks;
63 typedef std::vector< Plugin* > Plugins;
64 typedef Plugins::const_iterator PluginsCIter;
65 
66 template< class, class > class PluginVisitorT;
67 typedef PluginVisitorT< Plugin, EqCompressorInfo > PluginVisitor;
68 typedef PluginVisitorT< const Plugin,
69  const EqCompressorInfo > ConstPluginVisitor;
70 
72 struct CompressorInfo;
73 typedef std::vector< CompressorInfo > CompressorInfos;
74 typedef CompressorInfos::const_iterator CompressorInfosCIter;
75 typedef CompressorInfos::iterator CompressorInfosIter;
77 }
78 
79 #endif //PRESSION_TYPES_H
Information about one compressor.
Includes compile-time defines of Pression.