-
Notifications
You must be signed in to change notification settings - Fork 0
/
XrdOpenLocal.hh
66 lines (59 loc) · 2.61 KB
/
XrdOpenLocal.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#ifndef __XRDREDIRCT_TOLOCAL_PLUGIN_HH___
#define __XRDREDIRCT_TOLOCAL_PLUGIN_HH___
#include <stdio.h>
#include "XrdCl/XrdClPlugInInterface.hh"
#include <algorithm>
#include "XrdCl/XrdClFile.hh"
#include "XrdCl/XrdClFileSystem.hh"
#include "XrdCl/XrdClPlugInInterface.hh"
#include "XrdCl/XrdClLog.hh"
#include "XrdCl/XrdClDefaultEnv.hh"
#include "XrdCl/XrdClURL.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdOuc/XrdOucString.hh"
#include "XrdVersion.hh"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdexcept>
#include <iostream>
#include <sstream>
#include <fstream>
#include <utility>
extern XrdCl::Log XrdClRFSLog;
namespace XrdRedirectToLocal {
//----------------------------------------------------------------------------
// Plugin factory
//----------------------------------------------------------------------------
class ReadLocalFactory: public XrdCl::PlugInFactory {
public:
//------------------------------------------------------------------------
// Constructore
//------------------------------------------------------------------------
ReadLocalFactory(const std::map<std::string, std::string> &config);
//------------------------------------------------------------------------
// Destructor
virtual ~ReadLocalFactory();
//------------------------------------------------------------------------
// Create a file plug-in for the given URL
//------------------------------------------------------------------------
virtual XrdCl::FilePlugIn *CreateFile( const std::string &url );
//------------------------------------------------------------------------
// Create a file system plug-in for the give/Lon URL
virtual XrdCl::FileSystemPlugIn *CreateFileSystem(const std::string &url);
//------------------------------------------------------------------------
// load default config:
void loadDefaultConf(std::map<std::string,std::string>& config);
//------------------------------------------------------------------------
private:
};
};
#endif // __XRDREDIRCT_TOLOCAL_PLUGIN_HH___