-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate about the possibility to make the BufferMananger manage different data types #76
Comments
This goes in #34 direction |
During a meeting we had with @traversaro @GiulioRomualdi @AlexAntn and @Nicogene, we thought that it might be indeed interesting to have this fixed. The main reasons are:
One possibility would be to use https://en.cppreference.com/w/cpp/utility/any or https://en.cppreference.com/w/cpp/utility/variant |
I just figured that rather than using variant/any up to
if possible. Then, In this way, the modifications remain limited to the |
I would prefer using |
The types supported by |
In the direction of being compatible with different data types, a possibility could be also to store videos. I suppose the type of the channel, in this case, could be some sort of image (or even a char array). Related issue #155 |
I am currently working on this in https://github.com/S-Dafarra/yarp-telemetry/tree/multiple_types In the end, I opted for |
Corresponding PR: #168 |
Not sure if it can be relevant (and even if it is, we can totally go for std::any for now): https://github.com/stephane-caron/palimpsest . See also section https://github.com/stephane-caron/palimpsest#alternatives . |
Interesting! If I understood correctly, it is more like a container that can hold different types. In some sense, it is more comparable to |
At this moment the
BufferManager
is a template class, then it can handle only one type of data.It would be nice if we can implement only template functions(maybe moving them outside the class) in order to make it possible to handle different data types with just one
BufferManager
(maybe it would become a singleton?)The text was updated successfully, but these errors were encountered: