Back to index

nordugrid-arc-nox  1.1.0~rc6
environment.h
Go to the documentation of this file.
00001 #ifndef __GM_ENVIRONMENT_H__
00002 #define __GM_ENVIRONMENT_H__
00003 
00004 #include <string>
00005 
00006 /*
00007 #include <arc/Thread.h>
00008 
00009 class prstring {
00010  private:
00011   Glib::Mutex lock_;
00012   std::string val_;
00013  public:
00014   prstring(void);
00015   prstring(const char*);
00016   prstring(const prstring&);
00017   void operator=(const char*);
00018   void operator=(const std::string&);
00019   void operator=(const prstring&);
00020   void operator+=(const char*);
00021   void operator+=(const std::string&);
00022   std::string operator+(const char*) const;
00023   std::string operator+(const std::string&) const;
00024   operator std::string(void) const;
00025   std::string str(void) const;
00026   bool empty() const;
00027 };
00028 
00029 std::string operator+(const char*,const prstring&);
00030 std::string operator+(const std::string&,const prstring&);
00031 */
00032 
00034 std::string globus_loc(void);
00035 // Various Globus scripts - $GLOBUS_LOCATION/libexec
00036 std::string globus_scripts_loc(void);
00038 std::string nordugrid_loc(void);
00040 std::string nordugrid_libexec_loc(void);
00041 // ARC libraries and plugins - $ARC_LOCATION/lib/arc, $ARC_LOCATION/lib
00042 std::string nordugrid_lib_loc(void);
00043 // ARC adminstrator tools - $ARC_LOCATION/sbin
00044 std::string nordugrid_sbin_loc(void);
00048 std::string nordugrid_config_loc(void);
00049 void nordugrid_config_loc(const std::string&);
00050 
00051 // Certificates directory location
00052 std::string cert_dir_loc();
00053 
00054 // RTE setup scripts
00055 std::string runtime_config_dir(void);
00056 void runtime_config_dir(const std::string&);
00059 std::string support_mail_address(void);
00060 void support_mail_address(const std::string&);
00063 std::string globus_gridmap(void);
00064 
00071 bool read_env_vars(bool guess = false);
00072 
00073 #endif // __GM_ENVIRONMENT_H__