Battery informations

Hi, I want to plot my current and voltage over the time but I can’t find in which class I can find thoses informations and how to add it on my plot cpp class. Do you know where I can find it and how can I use them ?
Thanks for your help.