1 #ifndef ALI_SHUTTLE_CONFIG_H
2 #define ALI_SHUTTLE_CONFIG_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 // This class keeps the AliShuttle configuration.
11 // It reads the configuration for LDAP server.
16 #include <TObjArray.h>
18 #include <TLDAPServer.h>
20 class AliShuttleConfig: public TObject {
22 AliShuttleConfig(const char* host, Int_t port = LDAP_PORT,
23 const char* binddn = 0, const char* password = 0,
24 const char* basedn = "dc=alice,dc=cern,dc=ch");
25 virtual ~AliShuttleConfig();
27 Bool_t IsValid() const {return fIsValid;};
29 const char* GetLogBookURI() const {return fLogBookURI.Data();}
30 const char* GetLogBookUser() const {return fLogBookUser.Data();}
31 const char* GetLogBookPassword() const {return fLogBookPassword.Data();}
33 const TObjArray* GetDetectors() const;
35 Bool_t HasDetector(const char* detector) const;
36 const char* GetHost(const char* detector) const;
37 Int_t GetPort(const char* detector) const;
38 const TObjArray* GetAliases(const char* detector) const;
40 virtual void Print(Option_t* option = NULL) const;
44 class ConfigHolder: public TObject {
52 ConfigHolder(const TLDAPEntry* entry);
55 const char* GetDetector() const {return fDetector.Data();};
56 const char* GetHost() const {return fHost.Data();};
57 Int_t GetPort() const {return fPort;};
58 const TObjArray* GetAliases() const {return &fAliases;};
60 Bool_t IsValid() const {return fIsValid;};
62 ClassDef(ConfigHolder, 0);
70 TString fLogBookPassword;
73 TObjArray fDetectorList;
75 ClassDef(AliShuttleConfig, 0);