Пример #1
0
IStreamUrlRef loadUrlStream( const std::string &url, const std::string &user, const std::string &password )
{
	try {
		IStreamUrlRef result = IStreamUrl::createRef( url, user, password );
		return result;
	}
	catch( ... ) {
		return IStreamUrlRef();
	}
}
Пример #2
0
//////////////////////////////////////////////////////////////////////////////////////////////////////
// loadUrl
IStreamUrlRef loadUrlStream( const Url &url )
{
	try {
		IStreamUrlRef result = IStreamUrl::createRef( url.str(), "", "" );
		return result;
	}
	catch( ... ) {
		return IStreamUrlRef();
	}
}
Пример #3
0
//////////////////////////////////////////////////////////////////////////////////////////////////////
// IStreamUrl
IStreamUrlRef IStreamUrl::createRef( const std::string &url, const std::string &user, const std::string &password )
{
	return IStreamUrlRef( new IStreamUrl( url, user, password ) );
}
Пример #4
0
//////////////////////////////////////////////////////////////////////////////////////////////////////
// IStreamUrl
IStreamUrlRef IStreamUrl::create( const Url &url, const std::string &user, const std::string &password, const UrlOptions &options )
{
    return IStreamUrlRef( new IStreamUrl( url.str(), user, password, options ) );
}