change controlmethod class from idl to c++