xrootd
XrdPfcPrint.hh
Go to the documentation of this file.
1 #ifndef __XRDFILECACHE_PRINT_HH__
2 #define __XRDFILECACHE_PRINT_HH__
3 //----------------------------------------------------------------------------------
4 // Copyright (c) 2014 by Board of Trustees of the Leland Stanford, Jr., University
5 // Author: Alja Mrak-Tadel
6 //----------------------------------------------------------------------------------
7 // XRootD is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Lesser General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // XRootD is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with XRootD. If not, see <http://www.gnu.org/licenses/>.
19 //----------------------------------------------------------------------------------
20 
21 #include "XrdOuc/XrdOucEnv.hh"
22 
23 class XrdOss;
24 class XrdOssDF;
25 
26 namespace XrdPfc
27 {
28 class Print {
29 public:
30  //------------------------------------------------------------------------
32  //------------------------------------------------------------------------
33  Print(XrdOss* oss, bool v, const char* path);
34 
35 private:
38  bool m_verbose;
39  const char* m_ossUser;
40 
41  //---------------------------------------------------------------------
43  //---------------------------------------------------------------------
44  bool isInfoFile(const char* path);
45 
46  //---------------------------------------------------------------------
48  //---------------------------------------------------------------------
49  void printFile(const std::string& path);
50 
51  //---------------------------------------------------------------------
53  //---------------------------------------------------------------------
54  void printDir(XrdOssDF* iOssDF, const std::string& path);
55 };
56 }
57 
58 #endif
bool m_verbose
env used by file system
Definition: XrdPfcPrint.hh:38
Definition: XrdPfc.hh:40
Definition: XrdOucEnv.hh:41
bool isInfoFile(const char *path)
file system user
XrdOss * m_oss
Definition: XrdPfcPrint.hh:36
void printFile(const std::string &path)
Print information in meta-data file.
const char * m_ossUser
print each block
Definition: XrdPfcPrint.hh:39
XrdOucEnv m_env
file system
Definition: XrdPfcPrint.hh:37
Definition: XrdPfcPrint.hh:28
Definition: XrdOss.hh:498
Definition: XrdOss.hh:62
Print(XrdOss *oss, bool v, const char *path)
Constructor.
void printDir(XrdOssDF *iOssDF, const std::string &path)
Print information in meta-data file recursivly.