foundation class for C++