00001
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00073
00074
00075
00076
00077
00079
00080 #ifndef _ICCTAGPROFSEQID_H
00081 #define _ICCTAGPROFSEQID_H
00082
00083 #include "IccProfile.h"
00084 #include "IccTag.h"
00085 #include <memory>
00086 #include <list>
00087
00088 #ifdef USESAMPLEICCNAMESPACE
00089 namespace sampleICC {
00090 #endif
00091
00092 class ICCPROFLIB_API CIccProfileIdDesc
00093 {
00094 public:
00095 CIccProfileIdDesc();
00096 CIccProfileIdDesc(CIccProfile &profile);
00097 CIccProfileIdDesc(icProfileID id, CIccTagMultiLocalizedUnicode desc);
00098 CIccProfileIdDesc(const CIccProfileIdDesc &pid);
00099 CIccProfileIdDesc &operator=(const CIccProfileIdDesc &pid);
00100
00101 void Describe(std::string &sDescription);
00102
00103 bool Read(icUInt32Number size, CIccIO *pIO);
00104 bool Write(CIccIO *pIO);
00105
00106 icValidateStatus Validate(icTagSignature sig, std::string &sReport, const CIccProfile* pProfile=NULL) const;
00107
00108 CIccTagMultiLocalizedUnicode m_desc;
00109 icProfileID m_profileID;
00110 };
00111
00112 typedef std::list<CIccProfileIdDesc> CIccProfileIdDescList;
00113
00121 class ICCPROFLIB_API CIccTagProfileSequenceId : public CIccTag
00122 {
00123 public:
00124 CIccTagProfileSequenceId();
00125 CIccTagProfileSequenceId(const CIccTagProfileSequenceId &lut);
00126 CIccTagProfileSequenceId &operator=(const CIccTagProfileSequenceId &lut);
00127 virtual CIccTag *NewCopy() const { return new CIccTagProfileSequenceId(*this);}
00128 virtual ~CIccTagProfileSequenceId();
00129
00130 static CIccTagProfileSequenceId *ParseMem(icUInt8Number *pMem, icUInt32Number size);
00131
00132 virtual icTagTypeSignature GetType() { return icSigProfileSequceIdType; }
00133 virtual const icChar *GetClassName() { return "CIccTagProfileSequenceId"; }
00134
00135 virtual void Describe(std::string &sDescription);
00136
00137 virtual bool Read(icUInt32Number size, CIccIO *pIO);
00138 virtual bool Write(CIccIO *pIO);
00139
00140 virtual icValidateStatus Validate(icTagSignature sig, std::string &sReport, const CIccProfile* pProfile=NULL) const;
00141
00142 bool AddProfileDescription(CIccProfile &profile) { return AddProfileDescription(CIccProfileIdDesc(profile)); }
00143 bool AddProfileDescription(const CIccProfileIdDesc &profileDesc);
00144
00145 CIccProfileIdDesc *GetFirst();
00146 CIccProfileIdDesc *GetLast();
00147
00148 CIccProfileIdDescList::iterator begin() { return m_list->begin(); }
00149 CIccProfileIdDescList::iterator end() { return m_list->end(); }
00150
00151 protected:
00152 void Cleanup();
00153
00154 CIccProfileIdDescList *m_list;
00155 };
00156
00157
00158
00159
00160 #ifdef USESAMPLEICCNAMESPACE
00161 }
00162 #endif
00163
00164 #endif //_ICCTAGPROFSEQID_H