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