#include <LdifReader.h>
Public Member Functions | |
| LdifReader (std::istream &input) | |
| bool | isEntryRecords () const |
| bool | isChangeRecords () const |
| int | getVersion () const |
| LDAPEntry | getEntryRecord () |
| int | readNextRecord (bool first=false) |
Private Member Functions | |
| int | getLdifLine (std::string &line) |
| void | splitLine (const std::string &line, std::string &type, std::string &value) const |
| std::string | readIncludeLine (const std::string &line) const |
Private Attributes | |
| std::istream & | m_ldifstream |
| LdifRecord | m_currentRecord |
| int | m_version |
| int | m_curRecType |
| int | m_lineNumber |
| bool | m_ldifTypeRequest |
| bool | m_currentIsFirst |
| LdifReader::LdifReader | ( | std::istream & | input | ) |
References DEBUG, LDAP_DEBUG_TRACE, m_currentIsFirst, m_version, and readNextRecord().
| LDAPEntry LdifReader::getEntryRecord | ( | ) |
| int LdifReader::getLdifLine | ( | std::string & | line | ) | [private] |
| int LdifReader::getVersion | ( | ) | const [inline] |
References m_version.
| bool LdifReader::isChangeRecords | ( | ) | const [inline] |
References m_ldifTypeRequest.
| bool LdifReader::isEntryRecords | ( | ) | const [inline] |
References m_ldifTypeRequest.
| std::string LdifReader::readIncludeLine | ( | const std::string & | line | ) | const [private] |
References DEBUG, and LDAP_DEBUG_TRACE.
| int LdifReader::readNextRecord | ( | bool | first = false |
) |
References LDAPMsg::ADD_REQUEST, DEBUG, LDAPMsg::DELETE_REQUEST, getLdifLine(), LDAP_DEBUG_TRACE, m_curRecType, m_currentIsFirst, m_currentRecord, m_ldifTypeRequest, m_lineNumber, m_version, LDAPMsg::MODIFY_REQUEST, LDAPMsg::MODRDN_REQUEST, LDAPMsg::SEARCH_ENTRY, and splitLine().
Referenced by LdifReader().
| void LdifReader::splitLine | ( | const std::string & | line, | |
| std::string & | type, | |||
| std::string & | value | |||
| ) | const [private] |
References DEBUG, LDAP_DEBUG_ANY, LDAP_DEBUG_TRACE, and m_lineNumber.
Referenced by readNextRecord().
int LdifReader::m_curRecType [private] |
Referenced by getEntryRecord(), and readNextRecord().
bool LdifReader::m_currentIsFirst [private] |
Referenced by LdifReader(), and readNextRecord().
LdifRecord LdifReader::m_currentRecord [private] |
Referenced by getEntryRecord(), and readNextRecord().
std::istream& LdifReader::m_ldifstream [private] |
Referenced by getLdifLine().
bool LdifReader::m_ldifTypeRequest [private] |
Referenced by isChangeRecords(), isEntryRecords(), and readNextRecord().
int LdifReader::m_lineNumber [private] |
Referenced by getLdifLine(), readNextRecord(), and splitLine().
int LdifReader::m_version [private] |
Referenced by getVersion(), LdifReader(), and readNextRecord().