Logo ROOT   6.10/09
Reference Guide
TLDAPAttribute.h
Go to the documentation of this file.
1 // @(#)root/ldap:$Id$
2 // Author: Evgenia Smirnova 21/09/2001
3 
4 /*************************************************************************
5  * For the licensing terms see $ROOTSYS/LICENSE. *
6  * For the list of contributors see $ROOTSYS/README/CREDITS. *
7  *************************************************************************/
8 
9 #ifndef ROOT_TLDAPAttribute
10 #define ROOT_TLDAPAttribute
11 
12 #include "TNamed.h"
13 #include "TList.h"
14 #include "CintLDAP.h"
15 
16 class TLDAPEntry;
17 
18 
19 class TLDAPAttribute : public TNamed {
20 
21 friend class TLDAPEntry;
22 
23 private:
24  TList *fValues; // list of values
25  mutable Int_t fNCount; // next value to be returned by GetValue()
26 
27  LDAPMod *GetMod(Int_t op); // for getting mod for attribute
28 
29 protected:
31 
32 public:
33  TLDAPAttribute(const char *name);
34  TLDAPAttribute(const char *name, const char *value);
35  TLDAPAttribute(const TLDAPAttribute &attr);
36  virtual ~TLDAPAttribute();
37 
38  void AddValue(const char *value);
39  void DeleteValue(const char *value);
40  const char *GetValue() const;
41  Int_t GetCount() const { return fValues->GetSize(); }
42  void Print(Option_t * = "") const;
43 
44  ClassDef(TLDAPAttribute, 0) //interface to LDAP
45 };
46 
47 #endif
void DeleteValue(const char *value)
Delete value by name.
void AddValue(const char *value)
Add a value to the attribute.
const char Option_t
Definition: RtypesCore.h:62
int Int_t
Definition: RtypesCore.h:41
TLDAPAttribute(const char *name)
constructor
#define ClassDef(name, id)
Definition: Rtypes.h:297
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
A doubly linked list.
Definition: TList.h:43
TLDAPAttribute & operator=(const TLDAPAttribute &)
Equal operator.
Int_t GetCount() const
LDAPMod * GetMod(Int_t op)
Get "LDAPMod" structure for attribute.
virtual Int_t GetSize() const
Definition: TCollection.h:89
virtual ~TLDAPAttribute()
destructor
const char * GetValue() const
Get next value of the attribute.
void Print(Option_t *="") const
Print an attribute.