Originally asked here: Dynamically call lambda based on stream input Dynamically call lambda based on stream input
The following version is based heavily on the answer provided by @iavr @iavr, though I hope that I have done enough more to make it worth reviewing again.
Originally asked here: Dynamically call lambda based on stream input
The following version is based heavily on the answer provided by @iavr, though I hope that I have done enough more to make it worth reviewing again.
Originally asked here: Dynamically call lambda based on stream input
The following version is based heavily on the answer provided by @iavr, though I hope that I have done enough more to make it worth reviewing again.
The following version is based heavily on the answer provided by @iavr , though I hope that I have done enough more to mkaemake it worth reviewing again.
The actual calling of the functor based on reading data from a stream (via ResultSetRowResultSetRow
(but I am sure that can be easily generalized)).
Done in 2 parts:
This
This is the part you call:
Part 2:
Here
Here we extract the parameters from the stream then call the action.
###Edit 1:
Here it will read an int
(IDID
), a std::string
(personperson
) a double
(item1item1
) and a float
(item2item2
) from the stream (represented by row). Then, then call the lambda provided.
The following version is based heavily on the answer provided by @iavr though I hope that I have done enough more to mkae it worth reviewing again.
The actual calling of the functor based on reading data from a stream (via ResultSetRow (but I am sure that can be easily generalized)).
Done in 2 parts:
This is the part you call:
Part 2:
Here we extract the parameters from the stream then call the action.
###Edit 1:
Here it will read an int
(ID), a std::string
(person) a double
(item1) and a float
(item2) from the stream (represented by row). Then call the lambda provided.
The following version is based heavily on the answer provided by @iavr , though I hope that I have done enough more to make it worth reviewing again.
The actual calling of the functor based on reading data from a stream (via ResultSetRow
(but I am sure that can be easily generalized)).
Done in 2 parts:
This is the part you call:
Part 2:
Here we extract the parameters from the stream then call the action.
Here it will read an int
(ID
), a std::string
(person
) a double
(item1
) and a float
(item2
) from the stream (represented by row), then call the lambda provided.