ROOT logo
// @(#)root/ldap:$Id$
// Author: Evgenia Smirnova   21/09/2001

/*************************************************************************
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TLDAPAttribute
#define ROOT_TLDAPAttribute

#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOT_TList
#include "TList.h"
#endif
#ifndef ROOT_CintLDAP
#include "CintLDAP.h"
#endif

class TLDAPEntry;


class TLDAPAttribute : public TNamed {

friend class TLDAPEntry;

private:
   TList          *fValues;        // list of values
   mutable Int_t   fNCount;        // next value to be returned by GetValue()

   LDAPMod    *GetMod(Int_t op);   // for getting mod for attribute

protected:
   TLDAPAttribute& operator=(const TLDAPAttribute &);

public:
   TLDAPAttribute(const char *name);
   TLDAPAttribute(const char *name, const char *value);
   TLDAPAttribute(const TLDAPAttribute &attr);
   virtual ~TLDAPAttribute();

   void            AddValue(const char *value);
   void            DeleteValue(const char *value);
   const char     *GetValue() const;
   Int_t           GetCount() const { return fValues->GetSize(); }
   void            Print(Option_t * = "") const;

   ClassDef(TLDAPAttribute, 0) //interface to LDAP
};

#endif
 TLDAPAttribute.h:1
 TLDAPAttribute.h:2
 TLDAPAttribute.h:3
 TLDAPAttribute.h:4
 TLDAPAttribute.h:5
 TLDAPAttribute.h:6
 TLDAPAttribute.h:7
 TLDAPAttribute.h:8
 TLDAPAttribute.h:9
 TLDAPAttribute.h:10
 TLDAPAttribute.h:11
 TLDAPAttribute.h:12
 TLDAPAttribute.h:13
 TLDAPAttribute.h:14
 TLDAPAttribute.h:15
 TLDAPAttribute.h:16
 TLDAPAttribute.h:17
 TLDAPAttribute.h:18
 TLDAPAttribute.h:19
 TLDAPAttribute.h:20
 TLDAPAttribute.h:21
 TLDAPAttribute.h:22
 TLDAPAttribute.h:23
 TLDAPAttribute.h:24
 TLDAPAttribute.h:25
 TLDAPAttribute.h:26
 TLDAPAttribute.h:27
 TLDAPAttribute.h:28
 TLDAPAttribute.h:29
 TLDAPAttribute.h:30
 TLDAPAttribute.h:31
 TLDAPAttribute.h:32
 TLDAPAttribute.h:33
 TLDAPAttribute.h:34
 TLDAPAttribute.h:35
 TLDAPAttribute.h:36
 TLDAPAttribute.h:37
 TLDAPAttribute.h:38
 TLDAPAttribute.h:39
 TLDAPAttribute.h:40
 TLDAPAttribute.h:41
 TLDAPAttribute.h:42
 TLDAPAttribute.h:43
 TLDAPAttribute.h:44
 TLDAPAttribute.h:45
 TLDAPAttribute.h:46
 TLDAPAttribute.h:47
 TLDAPAttribute.h:48
 TLDAPAttribute.h:49
 TLDAPAttribute.h:50
 TLDAPAttribute.h:51
 TLDAPAttribute.h:52
 TLDAPAttribute.h:53