
22 Mar
2004
22 Mar
'04
9:56 a.m.
Janusz Piwowarski wrote:
And, second question, do you think about interface to create own validators? [...] If you want to customize the parsing, the current way is:
1. Declare some class derived from typed_value<YourType> and override the 'parse' method.
2. Specialize the 'value' function to return instance of your type.
It's it, thanks.
In fact, I've given you the most powerfull method, which can be used to override everything. For changing the parsing behaviour, specializing 'validator' might be easier. - Volodya