mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
31 lines
627 B
C
31 lines
627 B
C
|
|
/*
|
||
|
|
* Copyright 2008, OpenLDAP Foundation, All Rights Reserved.
|
||
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef LDIF_WRITER_H
|
||
|
|
#define LDIF_WRITER_H
|
||
|
|
|
||
|
|
#include <LDAPEntry.h>
|
||
|
|
#include <iosfwd>
|
||
|
|
#include <list>
|
||
|
|
|
||
|
|
class LdifWriter
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
LdifWriter( std::ostream& output, int version = 0 );
|
||
|
|
void writeRecord(const LDAPEntry& le);
|
||
|
|
void writeIncludeRecord(const std::string& target);
|
||
|
|
|
||
|
|
private:
|
||
|
|
void breakline( const std::string &line, std::ostream &out );
|
||
|
|
|
||
|
|
std::ostream& m_ldifstream;
|
||
|
|
int m_version;
|
||
|
|
bool m_addSeparator;
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif /* LDIF_WRITER_H */
|
||
|
|
|