00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PALETTE_H_
00021 #define __PALETTE_H_
00022
00023 #ifdef HAVE_CONFIG_H
00024 #include "config.h"
00025 #endif
00026
00027 #include <ostream>
00028 #include <exception>
00029 #include <vector>
00030 #include "color.h"
00031
00036 class palette {
00037 private:
00038 std::vector<color> _colors;
00039 public:
00040 palette() throw(std::exception);
00041 palette(unsigned char *) throw(std::exception);
00042 palette(const palette &) throw(std::exception);
00043 const color & operator[](int) const throw(std::exception);
00044 color & operator[](int) throw(std::exception);
00045 palette & operator=(const palette &) throw();
00046 };
00047
00048 std::ostream & operator <<(std::ostream &, const palette &);
00049
00050 #endif