DEBUG(LDAP_DEBUG_TRACE,"LDAPAttribute::getAttributeByName()" << endl);
DEBUG(LDAP_DEBUG_TRACE | LDAP_DEBUG_PARAMETER,
" name:" << name << endl);
- AttrList::const_iterator i;
+ LDAPAttributeList::const_iterator i;
for( i = m_attrs.begin(); i != m_attrs.end(); i++){
const std::string& tmpType = i->getName();
if(name.size() == tmpType.size()){
const std::string::size_type attrLen = attrType.size();
std::string::size_type tmpAttrLen = 0;
bool done=false;
- AttrList::iterator i;
+ LDAPAttributeList::iterator i;
for( i=m_attrs.begin(); i != m_attrs.end(); i++ ){
const std::string tmpAttrType = i->getName();
tmpAttrLen = tmpAttrType.size();
LDAPMod** LDAPAttributeList::toLDAPModArray() const{
DEBUG(LDAP_DEBUG_TRACE,"LDAPAttribute::toLDAPModArray()" << endl);
LDAPMod **ret = (LDAPMod**) malloc((m_attrs.size()+1) * sizeof(LDAPMod*));
- AttrList::const_iterator i;
+ LDAPAttributeList::const_iterator i;
int j=0;
for (i=m_attrs.begin(); i!= m_attrs.end(); i++, j++){
ret[j]=i->toLDAPMod();
}
ostream& operator << (ostream& s, const LDAPAttributeList& al){
- AttrList::const_iterator i;
+ LDAPAttributeList::const_iterator i;
for(i=al.m_attrs.begin(); i!=al.m_attrs.end(); i++){
s << *i << "; ";
}
class LDAPAsynConnection;
class LDAPMsg;
-typedef std::list<LDAPAttribute> AttrList;
-
/**
* This container class is used to store multiple LDAPAttribute-objects.
*/
class LDAPAttributeList{
+ typedef std::list<LDAPAttribute> ListType;
+
private :
- AttrList m_attrs;
+ ListType m_attrs;
public :
- typedef AttrList::const_iterator const_iterator;
- typedef AttrList::iterator iterator;
+ typedef ListType::const_iterator const_iterator;
+ typedef ListType::iterator iterator;
/**
class LDAPEntry;
-typedef std::list<LDAPEntry> EntryList;
-
/**
* For internal use only.
*
* LDAPEntry-Objects
*/
class LDAPEntryList{
+ typedef std::list<LDAPEntry> ListType;
+
public:
- typedef EntryList::const_iterator const_iterator;
+ typedef ListType::const_iterator const_iterator;
/**
* Copy-Constructor
void addEntry(const LDAPEntry& e);
private:
- EntryList m_entries;
+ ListType m_entries;
};
#endif // LDAP_ENTRY_LIST_H
LDAPMod **ret = (LDAPMod**) malloc(
(m_modList.size()+1) * sizeof(LDAPMod*));
ret[m_modList.size()]=0;
- ModList::const_iterator i;
+ LDAPModList::ListType::const_iterator i;
int j=0;
for (i=m_modList.begin(); i != m_modList.end(); i++ , j++){
ret[j]=i->toLDAPMod();
#include <list>
#include <LDAPModification.h>
-typedef std::list<LDAPModification> ModList;
-
/**
* This container class is used to store multiple LDAPModification-objects.
*/
class LDAPModList{
+ typedef std::list<LDAPModification> ListType;
public :
/**
* Constructs an empty list.
*/
- LDAPModList();
+ LDAPModList();
/**
* Copy-constructor
* Adds one element to the end of the list.
* @param mod The LDAPModification to add to the std::list.
*/
- void addModification(const LDAPModification &mod);
+ void addModification(const LDAPModification &mod);
/**
* Translates the list to a 0-terminated array of
LDAPMod** toLDAPModArray();
private :
- ModList m_modList;
+ ListType m_modList;
};
#endif //LDAP_MOD_LIST_H
class LDAPSearchReference;
-typedef std::list<LDAPSearchReference> RefList;
-
/**
* Container class for storing a list of Search References
*
* Used internally only by LDAPSearchResults
*/
class LDAPReferenceList{
+ typedef std::list<LDAPSearchReference> ListType;
+
public:
- typedef RefList::const_iterator const_iterator;
+ typedef ListType::const_iterator const_iterator;
/**
* Constructs an empty list.
void addReference(const LDAPSearchReference& e);
private:
- RefList m_refs;
+ ListType m_refs;
};
#endif // LDAP_REFERENCE_LIST_H
LDAPUrlList::LDAPUrlList(){
DEBUG(LDAP_DEBUG_CONSTRUCT," LDAPUrlList::LDAPUrlList()" << endl);
- m_urls=UrlList();
+ m_urls=LDAPUrlList::ListType();
}
LDAPUrlList::LDAPUrlList(const LDAPUrlList& urls){
#include <list>
#include <LDAPUrl.h>
-typedef std::list<LDAPUrl> UrlList;
-
/**
* This container class is used to store multiple LDAPUrl-objects.
*/
class LDAPUrlList{
+ typedef std::list<LDAPUrl> ListType;
+
public:
- typedef UrlList::const_iterator const_iterator;
+ typedef ListType::const_iterator const_iterator;
/**
* Constructs an empty list.
void add(const LDAPUrl& url);
private :
- UrlList m_urls;
+ ListType m_urls;
};
#endif //LDAP_URL_LIST_H
LDAPSearchRequest.h
libldapcpp_la_LIBADD = -lldap -llber
-libldapcpp_la_LDFLAGS = -version-info 0:1:0
+libldapcpp_la_LDFLAGS = -version-info 0:2:0
}
StringList::StringList(const StringList& sl){
- m_data= ListType(sl.m_data);
+ m_data= StringList::ListType(sl.m_data);
}
StringList::StringList(char** values){
if(values == 0){
- m_data=ListType();
+ m_data=StringList::ListType();
}else{
char** i;
for(i=values; *i != 0; i++){
#include <string>
#include <list>
-typedef std::list<std::string> ListType;
-
/**
* Container class to store multiple string-objects
*/
class StringList{
+ typedef std::list<std::string> ListType;
+
private:
ListType m_data;