common c++ class for linux programming