Timer and Timout used in a class. How to get it working

To be able to drive several steppemotors I need to generate a class with several io pins and local timers to be able to execute the required steps. I can not find an example how to do. I am familiar with C and a little bit with C++.
Regards, Jacques