Characteristics of the soliton solutions in a generalized variable-coefficient nonlinear Schr\”{o}dinger equation with single and double poles