00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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