00001 #ifndef __XRDFILECACHE_PRINT_HH__ 00002 #define __XRDFILECACHE_PRINT_HH__ 00003 //---------------------------------------------------------------------------------- 00004 // Copyright (c) 2014 by Board of Trustees of the Leland Stanford, Jr., University 00005 // Author: Alja Mrak-Tadel 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 00021 #include "XrdOuc/XrdOucEnv.hh" 00022 00023 class XrdOss; 00024 class XrdOssDF; 00025 00026 namespace XrdPfc 00027 { 00028 class Print { 00029 public: 00030 //------------------------------------------------------------------------ 00032 //------------------------------------------------------------------------ 00033 Print(XrdOss* oss, bool v, const char* path); 00034 00035 private: 00036 XrdOss* m_oss; 00037 XrdOucEnv m_env; 00038 bool m_verbose; 00039 const char* m_ossUser; 00040 00041 //--------------------------------------------------------------------- 00043 //--------------------------------------------------------------------- 00044 bool isInfoFile(const char* path); 00045 00046 //--------------------------------------------------------------------- 00048 //--------------------------------------------------------------------- 00049 void printFile(const std::string& path); 00050 00051 //--------------------------------------------------------------------- 00053 //--------------------------------------------------------------------- 00054 void printDir(XrdOssDF* iOssDF, const std::string& path); 00055 }; 00056 } 00057 00058 #endif