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
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