Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __BARRY_LDIFIO_H__
00023 #define __BARRY_LDIFIO_H__
00024
00025 #include "dll.h"
00026 #include "ldif.h"
00027 #include <memory>
00028 #include <iostream>
00029 #include <fstream>
00030
00031 namespace Barry {
00032
00033 class Builder;
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 class BXEXPORT LdifStore
00051 {
00052 std::auto_ptr<std::ifstream> m_ifs;
00053 std::auto_ptr<std::ofstream> m_ofs;
00054 std::istream &m_is;
00055 std::ostream &m_os;
00056 bool m_end_of_file;
00057
00058 Barry::ContactLdif m_ldif;
00059
00060 public:
00061
00062 LdifStore(const std::string &filename);
00063 LdifStore(std::istream &is);
00064
00065
00066 LdifStore(const std::string &filename, const std::string &baseDN,
00067 const std::string &dnattr);
00068 LdifStore(std::ostream &os, const std::string &baseDN,
00069 const std::string &dnattr);
00070
00071
00072 void operator() (const Contact &rec);
00073
00074
00075 bool operator() (Contact &rec, const Builder &builder);
00076 };
00077
00078 }
00079
00080 #endif
00081