2
//////////////////////////////////////////////////////////////////////////////
4
// Copyright (C) 2008 by Mateusz Loskot <mateusz@loskot.net>
6
// This program is free software; you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation; either version 2 of the License,
9
// or (at your option) any later version.
11
//////////////////////////////////////////////////////////////////////////////
12
#ifndef QGIS_PLUGIN_OGRCONV_FORMATS_H_INCLUDED
13
#define QGIS_PLUGIN_OGRCONV_FORMATS_H_INCLUDED
32
Format( QString const& c, QString const& n );
33
Format( QString const& c, QString const& n, unsigned char const& t );
34
Format( QString const& c, QString const& n, QString const& p, unsigned char const& t );
36
QString const& code() const;
37
QString const& name() const;
38
QString const& protocol() const;
39
unsigned char const& type() const;
46
unsigned char mTypeFlags;
49
inline bool isFormatType( unsigned char const& frmt, Format::Type const& type )
51
return (( frmt & type ) == type );
60
void add( Format const& frmt );
61
Format const& find( QString const& code );
67
QMap<QString, Format> mFrmts;
71
#endif // QGIS_PLUGIN_OGRCONV_FORMATS_H_INCLUDED