00001 //------------------------------------------------------------------------------ 00002 // Copyright (c) 2011-2017 by European Organization for Nuclear Research (CERN) 00003 // Author: Elvin Sindrilaru <esindril@cern.ch> 00004 //------------------------------------------------------------------------------ 00005 // This file is part of the XRootD software suite. 00006 // 00007 // XRootD is free software: you can redistribute it and/or modify 00008 // it under the terms of the GNU Lesser General Public License as published by 00009 // the Free Software Foundation, either version 3 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // XRootD is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Lesser General Public License 00018 // along with XRootD. If not, see <http://www.gnu.org/licenses/>. 00019 // 00020 // In applying this licence, CERN does not waive the privileges and immunities 00021 // granted to it by virtue of its status as an Intergovernmental Organization 00022 // or submit itself to any jurisdiction. 00023 //------------------------------------------------------------------------------ 00024 00025 #pragma once 00026 #include "XrdCl/XrdClPlugInInterface.hh" 00027 00028 namespace xrdcl_proxy 00029 { 00030 //------------------------------------------------------------------------------ 00032 //------------------------------------------------------------------------------ 00033 class ProxyFactory: public XrdCl::PlugInFactory 00034 { 00035 public: 00036 //---------------------------------------------------------------------------- 00040 //---------------------------------------------------------------------------- 00041 ProxyFactory(const std::map<std::string, std::string>* config); 00042 00043 //---------------------------------------------------------------------------- 00045 //---------------------------------------------------------------------------- 00046 virtual ~ProxyFactory(); 00047 00048 //---------------------------------------------------------------------------- 00050 //---------------------------------------------------------------------------- 00051 virtual XrdCl::FilePlugIn* CreateFile(const std::string& url); 00052 00053 //---------------------------------------------------------------------------- 00055 //---------------------------------------------------------------------------- 00056 virtual XrdCl::FileSystemPlugIn* CreateFileSystem(const std::string& url); 00057 }; 00058 00059 } // namespace xrdcl_proxy