srgs converted to c++
working on C wrapper for srgs