DOCQ OS ,rewrite from https://github.com/docqstudio/docqos-old ,use C++ instead of C