> b) .. where there are multiple implementing classes and the
> ii) .. and the different implementations are compile time
>
> generated via C++ template classes
>

I've made this going for my purposes (components for time-series)..

I'm mapping:

"@brainthat.com/omk/series;1?timing=<TM>;vtype=<VT>"

where TM is of {'sequence', 'sampled', 'point'}
and VT is of {'bool', 'uint8', 'uint16', 'uint32', 'double'}

to

template<class TM, class VT>
class btCSeries : public btISeries, public TM::SeriesInterface, public
VT::SeriesInterface {..}

with strongly typed interfaces

btISeriesBool, btISeriesUInt8, ...
btISequenceSeries, ...

details are here:

http://www.brainthat.com/cvspublic/cvsweb.cgi/bt/btcomponents/omk/btCSeries.
h
http://www.brainthat.com/cvspublic/cvsweb.cgi/bt/btcomponents/omk/


Toby.




Reply via email to