serialization of accumulators available?
Hi! I'm just starting to use the accumulators package. Cool library btw! I was just wondering if there is some sort of serialization available for the accumulators package. I guess it is for sure possible to somehow serialize the accumulator_set or their corresponding set of extractor objects such that all defined statistics end up being serialized. Is there something available or planned like this? Thanks in advance! Greetings, Sebastian
Sebastian Weber wrote:
I'm just starting to use the accumulators package. Cool library btw! I was just wondering if there is some sort of serialization available for the accumulators package. I guess it is for sure possible to somehow serialize the accumulator_set or their corresponding set of extractor objects such that all defined statistics end up being serialized. Is there something available or planned like this? Thanks in advance!
Hi Sebastian, There is currently no serialization support in Boost.Accumulators, but it would certainly be a useful addition. There are a number of people in industry who have a vested interest in Boost.Accumulators, and after you sent your message they contacted me about possibly adding serialization support at some point in the future. So consider it on the ToDo list. I can't give you an ETA, so if you need something in the short term, I'm afraid you'll have to roll your own solution. If you go that route, you'll need to make each individual accumulator serializable and use the accumulator_set's visitation interface to serialize each accumulator in the set. HTH, -- Eric Niebler BoostPro Computing http://www.boostpro.com
Might I suggest that the interested parties offer to pay Eric/BoostPro for this kind of effort? a) It doesn't sound like a trivial task b) I suspect it would cost less than each party rolling its own c) It would likely get done sooner d) with documentation e) and tests f) if it were rolled into the "official" accumulators library you would probably get free testing and ongoing maintenance. g) I'm sure interested parties would get acknowledgement of support in the documentation - along with a free link to the companies home page. Having your company associated with boost in this manner could pay big dividends in attracting and hiring future programmers. Seems like a no-brainer to me. But then I don't work within a large organization. Robert Ramey Eric Niebler wrote:
Sebastian Weber wrote:
I'm just starting to use the accumulators package. Cool library btw! I was just wondering if there is some sort of serialization available for the accumulators package. I guess it is for sure possible to somehow serialize the accumulator_set or their corresponding set of extractor objects such that all defined statistics end up being serialized. Is there something available or planned like this? Thanks in advance!
Hi Sebastian,
There is currently no serialization support in Boost.Accumulators, but it would certainly be a useful addition. There are a number of people in industry who have a vested interest in Boost.Accumulators, and after you sent your message they contacted me about possibly adding serialization support at some point in the future. So consider it on the ToDo list. I can't give you an ETA, so if you need something in the short term, I'm afraid you'll have to roll your own solution. If you go that route, you'll need to make each individual accumulator serializable and use the accumulator_set's visitation interface to serialize each accumulator in the set.
HTH,
participants (3)
-
Eric Niebler
-
Robert Ramey
-
Sebastian Weber