TDEABC::LDIF Class Reference
#include <ldif.h>
Public Member Functions | |
void | startParsing () |
ParseVal | processLine () |
ParseVal | nextItem () |
void | setLDIF (const TQByteArray &ldif) |
void | endLDIF () |
EntryType | entryType () const |
int | modType () const |
const TQString & | dn () const |
const TQString & | newRdn () const |
const TQString & | newSuperior () const |
bool | delOldRdn () const |
const TQString & | attr () const |
const TQByteArray & | val () const |
bool | isUrl () const |
bool | critical () const |
const TQString & | oid () const |
uint | lineNo () const |
Static Public Member Functions | |
static TQCString | assembleLine (const TQString &fieldname, const TQByteArray &value, uint linelen=0, bool url=false) |
static TQCString | assembleLine (const TQString &fieldname, const TQCString &value, uint linelen=0, bool url=false) |
static TQCString | assembleLine (const TQString &fieldname, const TQString &value, uint linelen=0, bool url=false) |
static bool | splitLine (const TQCString &line, TQString &fieldname, TQByteArray &value) |
static bool | splitControl (const TQCString &line, TQString &oid, bool &critical, TQByteArray &value) |
Detailed Description
LDIF.
LDIF implements an RFC 2849 compliant LDIF parser. LDIF files are used to represent directory information on LDAP-based servers, or to describe a set of changes which are to be applied to a directory.
Member Function Documentation
◆ assembleLine() [1/3]
|
static |
Assembles fieldname and value into a valid LDIF line, BASE64 encodes the value if neccessary and optionally splits into more lines.
- Parameters
-
fieldname The name of the entry. value The value of the entry. linelen Maximum length of the lines in the result. url If true, encode value as url ( use :< ).
◆ assembleLine() [2/3]
|
static |
◆ assembleLine() [3/3]
|
static |
◆ attr()
|
inline |
◆ critical()
|
inline |
◆ delOldRdn()
|
inline |
◆ dn()
|
inline |
◆ endLDIF()
void LDIF::endLDIF | ( | ) |
Indicates the end of the LDIF file/stream.
Call if nextItem() returned MoreData, but actually you don't have more data.
◆ entryType()
|
inline |
◆ isUrl()
|
inline |
◆ lineNo()
|
inline |
◆ modType()
|
inline |
Returns the LDAP modify request type if entryType() returned Entry_Mod.
◆ newRdn()
|
inline |
◆ newSuperior()
|
inline |
◆ nextItem()
LDIF::ParseVal LDIF::nextItem | ( | ) |
Process the LDIF until a complete item can be returned.
- Returns
- NewEntry if a new DN encountered, Item if a new item returned, Err if the LDIF contains error, EndEntry if the parser reached the end of the current entry and MoreData if the parser encountered the end of the current chunk of the LDIF. If you want to finish the parsing after receiving MoreData, then call endLDIF(), so the parser can safely flush the current entry.
◆ oid()
|
inline |
◆ processLine()
LDIF::ParseVal LDIF::processLine | ( | ) |
◆ setLDIF()
|
inline |
Sets a chunk of LDIF.
Call before startParsing(), or if nextItem() returned MoreData.
◆ splitControl()
|
static |
◆ splitLine()
|
static |
◆ startParsing()
void LDIF::startParsing | ( | ) |
◆ val()
|
inline |
The documentation for this class was generated from the following files: