1 #ifndef _rgb_h 2 #define _rgb_h 3 4 class RGBColor { 5 public: 6 int SetColor( const char *name ); 7 RGBColor()8 RGBColor() { red=green=blue = 0; } RGBColor(int r,int g,int b)9 RGBColor(int r, int g, int b) { red=r; green=g; blue=b; } RGBColor(const char * name)10 RGBColor( const char *name ) { SetColor(name); } 11 ~RGBColor()12 ~RGBColor() {} 13 14 int red; 15 int green; 16 int blue; 17 18 private: 19 int SetInternalColor( const char *name ); 20 }; 21 22 #endif 23