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.
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 TList* GetDetectors() const;
31 Bool_t HasDetector(const char* detector) const;
32 const char* GetHost(const char* detector) const;
33 Int_t GetPort(const char* detector) const;
34 const TList* GetAliases(const char* detector) const;
36 virtual void Print(Option_t* option = NULL) const;
40 class ConfigHolder: public TObject {
48 ConfigHolder(const TLDAPEntry* entry);
51 const char* GetDetector() const {return fDetector.Data();};
52 const char* GetHost() const {return fHost.Data();};
53 Int_t GetPort() const {return fPort;};
54 const TList* GetAliases() const {return &fAliases;};
56 Bool_t IsValid() const {return fIsValid;};
58 ClassDef(ConfigHolder, 0);
67 ClassDef(AliShuttleConfig, 0);