[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
color_radio_property implementation
From: |
Shai Ayal |
Subject: |
color_radio_property implementation |
Date: |
Wed, 25 Apr 2007 06:51:01 +0300 |
Hi All,
we have a color_property class in src/graphics.cc. Soon I will be
adding a radio_property class following John's suggestion. The
radio_property can have one of a list of predetermined string values
(e.g. line.marker can be one of +,o,.,t,....).
Another property class which is missing is the color_radio_property
class. This is a combination of a color and radio -- i.e. line.color
can be a color or "none".
I currently have 2 ideas on how to do this
1) Using 3 classes: color_propery, radio_property & color_radio_property
2) Using 2 classes: radio_property & color_radio_property where
color_property is replaced by color_radio_property with an empty list
of radio values.
Using approach 2 has the benefit of less code duplication, but this
comes at the cost of less compile-time type checks.
Any ideas?
Shai
- color_radio_property implementation,
Shai Ayal <=
- Re: color_radio_property implementation, Michael Goffioul, 2007/04/25
- Re: color_radio_property implementation, John W. Eaton, 2007/04/25
- Re: color_radio_property implementation, Michael Goffioul, 2007/04/25
- Re: color_radio_property implementation, John W. Eaton, 2007/04/25
- Re: color_radio_property implementation, Michael Goffioul, 2007/04/25
- Re: color_radio_property implementation, John W. Eaton, 2007/04/25
- Re: color_radio_property implementation, Przemek Klosowski, 2007/04/25
- Re: color_radio_property implementation, Michael Goffioul, 2007/04/26
- Re: color_radio_property implementation, Przemek Klosowski, 2007/04/26
- Re: color_radio_property implementation, John W. Eaton, 2007/04/25