From: Ralf Haferkamp Date: Thu, 20 Mar 2008 13:24:49 +0000 (+0000) Subject: missing pieces from last commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~65 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9277b5b45fdf9a8ec20b5114bdb98864db009468;p=openldap missing pieces from last commit --- diff --git a/contrib/ldapc++/src/LdifReader.h b/contrib/ldapc++/src/LdifReader.h index 3b6c72173f..8d0e751f03 100644 --- a/contrib/ldapc++/src/LdifReader.h +++ b/contrib/ldapc++/src/LdifReader.h @@ -15,8 +15,25 @@ class LdifReader { public: LdifReader( std::istream &input ); - int readNextRecord(); + + inline bool isEntryRecords() const + { + return !m_ldifTypeRequest; + } + + inline bool isChangeRecords() const + { + return m_ldifTypeRequest; + } + + inline int getVersion() const + { + return m_version; + } + LDAPEntry getEntryRecord(); + int readNextRecord( bool first=false ); + //LDAPRequest getChangeRecord(); private: int getLdifLine(std::string &line); @@ -29,7 +46,10 @@ class LdifReader std::istream &m_ldifstream; LdifRecord m_currentRecord; + int m_version; int m_curRecType; + bool m_ldifTypeRequest; + bool m_currentIsFirst; }; #endif /* LDIF_READER_H */