3 * Copyright 2008-2012 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
10 #include <LDAPEntry.h>
14 typedef std::list< std::pair<std::string, std::string> > LdifRecord;
18 LdifReader( std::istream &input );
20 inline bool isEntryRecords() const
22 return !m_ldifTypeRequest;
25 inline bool isChangeRecords() const
27 return m_ldifTypeRequest;
30 inline int getVersion() const
35 LDAPEntry getEntryRecord();
36 int readNextRecord( bool first=false );
37 //LDAPRequest getChangeRecord();
40 int getLdifLine(std::string &line);
42 void splitLine(const std::string& line,
44 std::string &value ) const;
46 std::string readIncludeLine( const std::string &line) const;
48 std::istream &m_ldifstream;
49 LdifRecord m_currentRecord;
53 bool m_ldifTypeRequest;
54 bool m_currentIsFirst;
57 #endif /* LDIF_READER_H */