C++ class of PID