mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
missing pieces from last commit
This commit is contained in:
parent
213c9358b8
commit
9277b5b45f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user