00001 #ifndef __XRDCNSSSICFG_H__ 00002 #define __XRDCNSSSICFG_H__ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d C n s S s i C f g . h h */ 00006 /* */ 00007 /* (c) 2009 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 // $Id: XrdCnsSsiCfg.hh 30949 2009-11-02 16:37:58Z ganis $ 00014 00015 class XrdCnsLogServer; 00016 class XrdOucTList; 00017 class XrdOucName2Name; 00018 class XrdSysLogger; 00019 00020 class XrdCnsSsiCfg 00021 { 00022 public: 00023 00024 char *bPath; // Backup path 00025 char *logFN; // Logmsg path 00026 XrdOucTList *dirList; // Backup directories (refreshed) 00027 const char *Func; 00028 char Xeq; // What we will be doing 00029 char Lopt; 00030 char Verbose; 00031 00032 static const char Lmode = 0x01; 00033 static const char Lsize = 0x02; 00034 static const char Lfmts = 0x80; 00035 static const char Lhost = 0x04; 00036 static const char Lname = 0x08; 00037 static const char Lmount= 0x10; 00038 static const char Lfull = 0x17; 00039 00040 int Configure(int argc, char **argv); 00041 00042 int Configure(int argc, char **argv, const char *Opts); 00043 00044 XrdCnsSsiCfg() : bPath(0), dirList(0), Func("?"), 00045 Xeq(0), Lopt(0), 00046 Verbose(0) 00047 {} 00048 ~XrdCnsSsiCfg() {} 00049 private: 00050 void Usage(const char *T1, const char *T2=0); 00051 }; 00052 #endif