Main Page   Class Hierarchy   Compound List   File List   Compound Members  

channelio.h

00001 // -*- c++ -*-
00002 
00003 /*
00004  *
00005  * Copyright (C) 2002 Richard Moore <rich@kde.org>
00006  * Copyright (C) 2002 George Staikos <staikos@kde.org>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Library General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Library General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Library General Public License
00019  * along with this library; see the file COPYING.LIB.  If not, write to
00020  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00021  * Boston, MA 02111-1307, USA.
00022  */
00023 
00024 #ifndef CHANNELIO_H
00025 #define CHANNELIO_H
00026 
00027 #include <qptrlist.h>
00028 #include <qstring.h>
00029 
00030 #include "channelioformat.h"
00031 
00032 class ChannelStore;
00033 class QtVision;
00034 
00040 class ChannelIO
00041 {
00042 public:
00043     typedef ChannelIOFormat Format;
00044     typedef ChannelIOFormatList FormatList;
00045 
00049     static ChannelFileMetaInfo getMetaInfo( QtVision *qtv, const QString& filename, const char *fmt = 0 );
00050 
00054     static bool load( QtVision *qtv, ChannelStore *store, const QString &filename, const char *fmt=0 );
00055 
00059     static bool save( QtVision *qtv, ChannelStore *store, const QString &filename, const char *fmt=0 );
00060 
00064     static void registerFormat( QtVision *qtv, ChannelIOFormat *format );
00065 
00069     static ChannelIOFormatList *formats(QtVision *qtv);
00070 
00076     static ChannelIOFormat *findFormat( QtVision *qtv, const char *fmt, int flags = ChannelIOFormat::FormatRead );
00077 
00078 private:
00082     static void registerFormats(QtVision *qtv);
00083 
00084     static ChannelIOFormat* guessFormat( QtVision *qtv, const QString &filename, int flags );
00085 };
00086 
00087 
00088 #endif // CHANNELIO_H
00089 
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 

Generated at Thu Jan 30 02:56:02 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001