Logo ROOT   6.16/01
Reference Guide
TLDAPResult.h
Go to the documentation of this file.
1// @(#)root/ldap:$Id$
2// Author: Oleksandr Grebenyuk 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_TLDAPResult
10#define ROOT_TLDAPResult
11
12#include "TObject.h"
13#include "CintLDAP.h"
14
15
16class TLDAPServer;
17class TLDAPEntry;
18
19
20class TLDAPResult : public TObject {
21
22friend class TLDAPServer;
23
24private:
25 LDAP *fLd; // LDAP handle of current connection
26 LDAPMessage *fSearchResult; // Pointer to the LDAP structure that contain search results
27 LDAPMessage *fCurrentEntry; // Pointer to the current entry to be returned from the next GetNext() call
28
29 TLDAPEntry *CreateEntry(LDAPMessage *entry);
30 TLDAPResult() : fLd(NULL), fSearchResult(NULL), fCurrentEntry(NULL) { }
31 TLDAPResult(LDAP *ld, LDAPMessage *searchresult);
32
33protected:
36
37public:
38 virtual ~TLDAPResult();
39
40 Int_t GetCount() const;
42 void Print(Option_t *option="") const;
43
44 ClassDef(TLDAPResult, 0) // LDAP search result set
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 ~TLDAPResult()
Deletes the LDAPMessage structure.
Definition: TLDAPResult.cxx:56
TLDAPEntry * GetNext()
Returns next entry from the search result.
Definition: TLDAPResult.cxx:68
LDAPMessage * fCurrentEntry
Definition: TLDAPResult.h:27
TLDAPResult & operator=(const TLDAPResult &)
Equal operator.
Definition: TLDAPResult.cxx:43
TLDAPEntry * CreateEntry(LDAPMessage *entry)
Creates TLDAPEntry object from the data containing in the LDAPMessage structure and returns pointer t...
Definition: TLDAPResult.cxx:83
LDAPMessage * fSearchResult
Definition: TLDAPResult.h:26
LDAP * fLd
Definition: TLDAPResult.h:25
Int_t GetCount() const
Returns the number of entries in the search result.
void Print(Option_t *option="") const
Prints all entries.
Mother of all ROOT objects.
Definition: TObject.h:37