Logo ROOT   6.16/01
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
16class TLDAPEntry;
17
18
19class TLDAPAttribute : public TNamed {
20
21friend class TLDAPEntry;
22
23private:
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
29protected:
31
32public:
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
int Int_t
Definition: RtypesCore.h:41
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:324
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Definition: TCollection.h:182
Int_t GetCount() const
void Print(Option_t *="") const
Print an attribute.
TLDAPAttribute(const char *name)
constructor
void AddValue(const char *value)
Add a value to the attribute.
LDAPMod * GetMod(Int_t op)
Get "LDAPMod" structure for attribute.
void DeleteValue(const char *value)
Delete value by name.
const char * GetValue() const
Get next value of the attribute.
TLDAPAttribute & operator=(const TLDAPAttribute &)
Equal operator.
virtual ~TLDAPAttribute()
destructor
A doubly linked list.
Definition: TList.h:44
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29