Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

aflibFileItem.h

Go to the documentation of this file.
00001 /*
00002  * Copyright: (C) 2000-2001 Bruce W. Forsberg
00003  *
00004  *   This library is free software; you can redistribute it and/or
00005  *   modify it under the terms of the GNU Lesser General Public
00006  *   License as published by the Free Software Foundation; either
00007  *   version 2.1 of the License, or any later version.
00008  *
00009  *   This library is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *   Lesser General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU Lesser General Public
00015  *   License along with this library; if not, write to the Free Software
00016  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00017  *
00018  *   Bruce Forsberg  forsberg@tns.net
00019  *
00020  */
00021 
00022 
00023 #ifndef _AFLIBFILEITEM_H_
00024 #define _AFLIBFILEITEM_H_
00025 
00026 #ifdef HAVE_CONFIG_H
00027 #include <config.h>
00028 #endif
00029 
00030 #include <string>
00031 #include <vector>
00032 #include <list>
00033 #if __GNUC__ >= 3
00034 using std::string;
00035 using std::list;
00036 using std::vector;
00037 #endif
00038 
00039 
00040 
00045 class aflibFileItem {
00046 
00047 public:
00048 
00049    aflibFileItem ();
00050 
00051    aflibFileItem(
00052       const string&  mod_format,
00053       const string&  mod_dscr,
00054       const string&  mod_ext,
00055       const string&  mod_magic,
00056       const string&  mod_name,
00057       const string&  mod_value1,
00058       const string&  mod_value2,
00059       const string&  mod_value3);
00060 
00061    ~aflibFileItem();
00062 
00063    bool
00064    operator==(const vector<unsigned char>& array) const;
00065 
00066    void
00067    setFormat(const string& mod_format);
00068 
00069    const string&
00070    getFormat() const;
00071 
00072    void
00073    setDescription(const string& mod_dscr);
00074 
00075    const string&
00076    getDescription() const;
00077 
00078    void
00079    setExtension(const string& mod_ext);
00080 
00081    const list<string>&
00082    getExtensions() const;
00083 
00084    void
00085    setMagic(const string& mod_magic);
00086 
00087    const list<string>&
00088    getMagic() const;
00089 
00090    void
00091    setName(const string& mod_name);
00092 
00093    const string&
00094    getName() const;
00095 
00096    void
00097    setValue1(const string& mod_value1);
00098 
00099    const string&
00100    getValue1() const;
00101 
00102    void
00103    setValue2(const string& mod_value2);
00104 
00105    const string&
00106    getValue2() const;
00107 
00108    void
00109    setValue3(const string& mod_value3);
00110 
00111    const string&
00112    getValue3() const;
00113 
00114 private:
00115 
00116    string  _mod_format;
00117    string  _mod_dscr;
00118    list<string>  _mod_ext;
00119    string  _mod_name;
00120    string  _mod_value1;
00121    string  _mod_value2;
00122    string  _mod_value3;
00123 
00124    list<string> _mod_magic;
00125 
00126 };
00127 
00128 #endif

Generated at Tue Aug 7 22:18:06 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001