2 * Copyright 2008, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
13 typedef std::list< std::pair<std::string, std::string> > LdifRecord;
17 LdifReader( std::istream &input );
19 inline bool isEntryRecords() const
21 return !m_ldifTypeRequest;
24 inline bool isChangeRecords() const
26 return m_ldifTypeRequest;
29 inline int getVersion() const
34 LDAPEntry getEntryRecord();
35 int readNextRecord( bool first=false );
36 //LDAPRequest getChangeRecord();
39 int getLdifLine(std::string &line);
41 int splitLine(const std::string& line,
45 std::string readIncludeLine( const std::string &line) const;
47 std::istream &m_ldifstream;
48 LdifRecord m_currentRecord;
51 bool m_ldifTypeRequest;
52 bool m_currentIsFirst;
55 #endif /* LDIF_READER_H */