ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #ifndef ROOT_TNamed
13 #include "TNamed.h"
14 #endif
15 #ifndef ROOT_TList
16 #include "TList.h"
17 #endif
18 #ifndef ROOT_CintLDAP
19 #include "CintLDAP.h"
20 #endif
21 
22 class TLDAPEntry;
23 
24 
25 class TLDAPAttribute : public TNamed {
26 
27 friend class TLDAPEntry;
28 
29 private:
30  TList *fValues; // list of values
31  mutable Int_t fNCount; // next value to be returned by GetValue()
32 
33  LDAPMod *GetMod(Int_t op); // for getting mod for attribute
34 
35 protected:
37 
38 public:
39  TLDAPAttribute(const char *name);
40  TLDAPAttribute(const char *name, const char *value);
42  virtual ~TLDAPAttribute();
43 
44  void AddValue(const char *value);
45  void DeleteValue(const char *value);
46  const char *GetValue() const;
47  Int_t GetCount() const { return fValues->GetSize(); }
48  void Print(Option_t * = "") const;
49 
50  ClassDef(TLDAPAttribute, 0) //interface to LDAP
51 };
52 
53 #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)
Int_t GetCount() const
const char * GetValue() const
Get next value of the attribute.
#define ClassDef(name, id)
Definition: Rtypes.h:254
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
A doubly linked list.
Definition: TList.h:47
TLDAPAttribute & operator=(const TLDAPAttribute &)
Equal operator.
void Print(Option_t *="") const
Print an attribute.
virtual Int_t GetSize() const
Definition: TCollection.h:95
#define name(a, b)
Definition: linkTestLib0.cpp:5
LDAPMod * GetMod(Int_t op)
Get "LDAPMod" structure for attribute.
float value
Definition: math.cpp:443
virtual ~TLDAPAttribute()
destructor