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

Generated at Sun May 13 16:18:53 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001