GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Env.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * agata(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program 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 General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
34 #ifndef GW_ENV_H
35 #define GW_ENV_H
36 
37 #ifndef ROOT_Rtypes
38 #include <Rtypes.h>
39 #endif
40 
41 #include <CentralLog.h>
42 
44 
47 namespace Gw {
48 
49 class Env
50 {
51 public:
52  Env()
53  {;}
54  virtual ~Env()
55  {;}
56 
58  static void AddRMimeType();
59 
61 
72  static const char *GetPath(const char *);
73 
75  static const char *GetVersion();
76 
78  static Bool_t ChangeCollector(std::string whichlog = std::string("Null"))
79  {
80  return CentralLog::theCentralLog()->ChangeCollector(whichlog);
81  }
82 
84  static void SetDebug(short) ;
85 
87  ClassDef(Env,0); // Gammaware environment
88 };
89 
90 } // namespace
91 #endif
static const char * GetVersion()
to get the current gammaware version
Definition: Env.cpp:44
Definition: Env.h:49
static void AddRMimeType()
check mime type and add those proper to gw
Definition: Env.cpp:81
bool ChangeCollector(std::string whichlog=std::string("Null"))
to change the current collector
static Bool_t ChangeCollector(std::string whichlog=std::string("Null"))
Change the current log collector.
Definition: Env.h:78
ClassDef(Env, 0)
Root dictionary related.
virtual ~Env()
Definition: Env.h:54
static void SetDebug(short)
change the global level
Definition: Env.cpp:76
Env()
Definition: Env.h:52
static const char * GetPath(const char *)
to get a particular GW environment variable
Definition: Env.cpp:47
static CentralLog * theCentralLog()
CentralLog is a singleton.