ROOT logo
// @(#)root/ldap:$Id: TLDAPResult.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Oleksandr Grebenyuk   21/09/2001

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

#ifndef ROOT_TLDAPResult
#define ROOT_TLDAPResult

#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_CintLDAP
#include "CintLDAP.h"
#endif


class TLDAPServer;
class TLDAPEntry;


class TLDAPResult : public TObject {

friend class TLDAPServer;

private:
   LDAP         *fLd;              // LDAP handle of current connection
   LDAPMessage  *fSearchResult;    // Pointer to the LDAP structure that contain search results
   LDAPMessage  *fCurrentEntry;    // Pointer to the current entry to be returned from the next GetNext() call

   TLDAPEntry   *CreateEntry(LDAPMessage *entry);
   TLDAPResult() : fLd(NULL), fSearchResult(NULL), fCurrentEntry(NULL) { }
   TLDAPResult(LDAP *ld, LDAPMessage *searchresult);

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

public:
   virtual ~TLDAPResult();

   Int_t         GetCount() const;
   TLDAPEntry   *GetNext();
   void          Print(Option_t *option="") const;

   ClassDef(TLDAPResult, 0)  // LDAP search result set
};

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