Logo ROOT   6.14/05
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 
16 class TLDAPServer;
17 class TLDAPEntry;
18 
19 
20 class TLDAPResult : public TObject {
21 
22 friend class TLDAPServer;
23 
24 private:
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 
33 protected:
34  TLDAPResult(const TLDAPResult&);
36 
37 public:
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
const char Option_t
Definition: RtypesCore.h:62
TLDAPEntry * CreateEntry(LDAPMessage *entry)
Creates TLDAPEntry object from the data containing in the LDAPMessage structure and returns pointer t...
Definition: TLDAPResult.cxx:83
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:320
Int_t GetCount() const
Returns the number of entries in the search result.
TLDAPResult & operator=(const TLDAPResult &)
Equal operator.
Definition: TLDAPResult.cxx:43
LDAPMessage * fCurrentEntry
Definition: TLDAPResult.h:27
void Print(Option_t *option="") const
Prints all entries.
TLDAPEntry * GetNext()
Returns next entry from the search result.
Definition: TLDAPResult.cxx:68
Mother of all ROOT objects.
Definition: TObject.h:37
virtual ~TLDAPResult()
Deletes the LDAPMessage structure.
Definition: TLDAPResult.cxx:56
LDAPMessage * fSearchResult
Definition: TLDAPResult.h:26
LDAP * fLd
Definition: TLDAPResult.h:25