templates.includes.webclient.gsoap.factory.FaceDbSDKCore.body.vm Maven / Gradle / Ivy
${BASEINDENT} $!{PUBLIC}
${BASEINDENT} // 创建${sourceinfo.interfaceClass.simpleName}实例对象
${BASEINDENT} // faceAPI和host参数不可同时为空
${BASEINDENT} // 可以根据自己的习惯将主机名和端口号合并为一个字符串用host参数传递,也可以将主机名和端口号分别用host和port参数传递
${BASEINDENT} // 如果参数无效则抛出std::invalid_argument异常
${BASEINDENT} // faceAPI net::gdface::sdk::FaceAPICore实例指针
${BASEINDENT} // host 服务器主机地址(主机名[:端口])
${BASEINDENT} // port 服务器端口(默认值:8080)
${BASEINDENT} // paramSoap soap参数对象,可通过此参数调整soap调用的工作参数,如soap.send_timeout,soap.recv_timeout,
${BASEINDENT} // 关于soap的参数设置参见gsoap的官方文档:http://www.genivia.com/doc/soapdoc2.html
${BASEINDENT} std::shared_ptr<${sourceinfo.interfaceClass.simpleName}> $!{METHOD_PREFIX}makeGSoapInstance(const std::shared_ptr& faceAPI,const std::string& host#defaultParamValue("std::string()"), int port#defaultParamValue(-1), const soap& paramSoap#defaultParamValue("soap()"))const#if( $source_type == "h" );
#else{
${BASEINDENT} return std::make_shared<${className}>(faceAPI,makeEndpoint(host,port),paramSoap);
${BASEINDENT} }
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy