Jean-Marc Lasgouttes wrote:
Le 07/04/2009 17:33, rgheck a écrit :
My only question about this is how open-ended the formats will be. If there's only a certain number that are possible, then BufferParams::outputFormat could be an int, or better an enum, and we can keep track of the ones we have available in a central location.

What problem are you trying to solve? Why restrict the formats?

The question was just where the formats are being defined, and whether they're supposed to be extensible by the user. If not, then rather than comparing strings whenever we need to check this, it seemed easier to compare ints. And then we don't have to worry about typos, translating, etc.

rh

Reply via email to