aflibFileItem.h

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 using std::string;
00034 using std::list;
00035 using std::vector;
00036 
00037 
00038 
00043 class aflibFileItem {
00044 
00045 public:
00046 
00047    aflibFileItem ();
00048 
00049    aflibFileItem(
00050       const string&  mod_format,
00051       const string&  mod_dscr,
00052       const string&  mod_ext,
00053       const string&  mod_magic,
00054       const string&  mod_name,
00055       const string&  mod_value1,
00056       const string&  mod_value2,
00057       const string&  mod_value3);
00058 
00059    ~aflibFileItem();
00060 
00061    bool
00062    operator==(const vector<unsigned char>& array) const;
00063 
00064    void
00065    setFormat(const string& mod_format);
00066 
00067    const string&
00068    getFormat() const;
00069 
00070    void
00071    setDescription(const string& mod_dscr);
00072 
00073    const string&
00074    getDescription() const;
00075 
00076    void
00077    setExtension(const string& mod_ext);
00078 
00079    const list<string>&
00080    getExtensions() const;
00081 
00082    void
00083    setMagic(const string& mod_magic);
00084 
00085    const list<string>&
00086    getMagic() const;
00087 
00088    void
00089    setName(const string& mod_name);
00090 
00091    const string&
00092    getName() const;
00093 
00094    void
00095    setValue1(const string& mod_value1);
00096 
00097    const string&
00098    getValue1() const;
00099 
00100    void
00101    setValue2(const string& mod_value2);
00102 
00103    const string&
00104    getValue2() const;
00105 
00106    void
00107    setValue3(const string& mod_value3);
00108 
00109    const string&
00110    getValue3() const;
00111 
00112 private:
00113 
00114    string  _mod_format;
00115    string  _mod_dscr;
00116    list<string>  _mod_ext;
00117    string  _mod_name;
00118    string  _mod_value1;
00119    string  _mod_value2;
00120    string  _mod_value3;
00121 
00122    list<string> _mod_magic;
00123 
00124 };
00125 
00126 #endif

Generated on Tue Jan 16 12:42:55 2007 for Open Source Audio Library Project by  doxygen 1.4.6