XrdFileCacheDecision.hh

Go to the documentation of this file.
00001 #ifndef __XRDFILECACHE_DECISION_HH__
00002 #define __XRDFILECACHE_DECISION_HH__
00003 //----------------------------------------------------------------------------------
00004 // Copyright (c) 2014 by Board of Trustees of the Leland Stanford, Jr., University
00005 // Author: Alja Mrak-Tadel, Matevz Tadel, Brian Bockelman
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 <string>
00022 #include <iostream>
00023 #include <stdio.h>
00024 #include "XrdOss/XrdOss.hh"
00025 
00026 class XrdSysError;
00027 
00028 namespace XrdFileCache
00029 {
00030    //----------------------------------------------------------------------------
00032    //----------------------------------------------------------------------------
00033    class Decision
00034    {
00035       public:
00036          //--------------------------------------------------------------------------
00038          //--------------------------------------------------------------------------
00039          virtual ~Decision() {}
00040 
00041          //---------------------------------------------------------------------
00048          //---------------------------------------------------------------------
00049          virtual bool Decide(const std::string &, XrdOss &) const = 0;
00050 
00051          //------------------------------------------------------------------------------
00057          //------------------------------------------------------------------------------
00058          virtual bool ConfigDecision(const char* params) 
00059          { 
00060            (void) params;
00061            return true; 
00062          }
00063    };
00064 }
00065 
00066 #endif

Generated on 5 Oct 2016 for xrootd by  doxygen 1.4.7