Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

pst2ldif.cpp File Reference

#include <set>
#include <vector>
#include <string>
#include "define.h"
#include "lzfu.h"

Include dependency graph for pst2ldif.cpp:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  ltstr

Typedefs

typedef set< const char *,
ltstr
string_set

Functions

void usage (void)
void version (void)
char * check_filename (char *fname)
void print_ldif_single (const char *attr, const char *value)
void print_ldif_address (const char *attr, int nvalues, char *value,...)
void print_ldif_dn (const char *attr, const char *value, const char *base)
void print_ldif_multi (const char *dn, const char *value)
void print_ldif_two (const char *attr, const char *value1, const char *value2)
void print_escaped_dn (const char *value)
void build_cn (char *cn, size_t len, int nvalues, char *value,...)
void free_strings (string_set &s)
const char * register_string (string_set &s, const char *name)
const char * register_string (const char *name)
const char * unique_string (const char *name)
void process (pst_desc_ll *d_ptr)
int main (int argc, char *const *argv)

Variables

char * prog_name
pst_file pstfile
bool old_schema = false
char * ldap_base = NULL
int ldif_extra_line_count = 0
iconv_t cd = 0
vector< string > ldap_class
vector< string > ldif_extra_line
string_set all_strings


Typedef Documentation

typedef set<const char *, ltstr> string_set
 

Definition at line 52 of file pst2ldif.cpp.


Function Documentation

void build_cn char *  cn,
size_t  len,
int  nvalues,
char *  value,
  ...
 

Definition at line 491 of file pst2ldif.cpp.

Referenced by process().

void check_filename char *  fname  ) 
 

Definition at line 684 of file pst2ldif.cpp.

void free_strings string_set s  )  [static]
 

Definition at line 61 of file pst2ldif.cpp.

Referenced by main().

int main int  argc,
char *const *  argv
 

Definition at line 544 of file pst2ldif.cpp.

References all_strings, cd, pst_desc_tree::child, pst_file::d_head, DEBUG_ENT, DEBUG_INIT, DEBUG_REGISTER_CLOSE, DEBUG_RET, DIE, free_strings(), getopt(), ldap_base, ldap_class, ldap_org, ldif_extra_line, pst_item::message_store, old_schema, optarg, print_ldif_single(), process(), prog_name, pst_close(), pst_desc_ll, pst_freeItem(), pst_getTopOfFolders(), pst_load_extended_attributes(), pst_load_index(), pst_open(), pst_parse_item(), pstfile, RET_DERROR, usage(), and version().

Here is the call graph for this function:

void print_escaped_dn const char *  value  ) 
 

Definition at line 714 of file pst2ldif.cpp.

References cd.

Referenced by print_ldif_dn().

void print_ldif_address const char *  attr,
int  nvalues,
char *  value,
  ...
 

Definition at line 386 of file pst2ldif.cpp.

References print_ldif_single().

Referenced by process().

Here is the call graph for this function:

void print_ldif_dn const char *  attr,
const char *  value,
const char *  base
 

Definition at line 698 of file pst2ldif.cpp.

References print_escaped_dn().

Referenced by process().

Here is the call graph for this function:

void print_ldif_multi const char *  dn,
const char *  value
 

Definition at line 455 of file pst2ldif.cpp.

References print_ldif_single().

Referenced by process().

Here is the call graph for this function:

void print_ldif_single const char *  attr,
const char *  value
 

Definition at line 314 of file pst2ldif.cpp.

References base64_encode(), and cd.

Referenced by main(), print_ldif_address(), print_ldif_multi(), print_ldif_two(), and process().

Here is the call graph for this function:

void print_ldif_two const char *  attr,
const char *  value1,
const char *  value2
 

Definition at line 466 of file pst2ldif.cpp.

References print_ldif_single().

Referenced by process().

Here is the call graph for this function:

void process pst_desc_ll d_ptr  )  [static]
 

Definition at line 110 of file pst2ldif.cpp.

References pst_item_contact::address1, pst_item_contact::address1a, pst_item_contact::address2, pst_item_contact::address2a, pst_item_contact::address3, pst_item_contact::address3a, build_cn(), pst_item_contact::business_address, pst_item_contact::business_city, pst_item_contact::business_country, pst_item_contact::business_fax, pst_item_contact::business_homepage, pst_item_contact::business_phone, pst_item_contact::business_po_box, pst_item_contact::business_postal_code, pst_item_contact::business_state, pst_item_contact::business_street, pst_item_contact::car_phone, pst_desc_tree::child, pst_item::comment, pst_item_contact::company_name, pst_item::contact, DEBUG_INFO, pst_desc_tree::desc, pst_item_contact::display_name_prefix, pst_item::file_as, pst_item_contact::first_name, pst_item::folder, pst_item_contact::home_address, pst_item_contact::home_city, pst_item_contact::home_country, pst_item_contact::home_fax, pst_item_contact::home_phone, pst_item_contact::home_po_box, pst_item_contact::home_postal_code, pst_item_contact::home_state, pst_item_contact::home_street, pst_item_contact::job_title, ldap_base, ldap_class, pst_item_contact::mobile_phone, pst_desc_tree::next, pst_item_contact::other_address, pst_item_contact::other_city, pst_item_contact::other_country, pst_item_contact::other_phone, pst_item_contact::other_po_box, pst_item_contact::other_postal_code, pst_item_contact::other_state, pst_item_contact::other_street, pst_item_contact::personal_homepage, print_ldif_address(), print_ldif_dn(), print_ldif_multi(), print_ldif_single(), print_ldif_two(), process(), pst_desc_ll, pst_freeItem(), pst_parse_item(), pstfile, pst_item_contact::suffix, pst_item_contact::surname, pst_item::type, and unique_string().

Here is the call graph for this function:

const char * register_string const char *  name  )  [static]
 

Definition at line 87 of file pst2ldif.cpp.

References all_strings.

Referenced by unique_string().

const char * register_string string_set s,
const char *  name
[static]
 

Definition at line 74 of file pst2ldif.cpp.

const char * unique_string const char *  name  )  [static]
 

Definition at line 96 of file pst2ldif.cpp.

References all_strings, and register_string().

Referenced by process().

Here is the call graph for this function:

void usage void   ) 
 

void version void   ) 
 


Variable Documentation

string_set all_strings [static]
 

Definition at line 54 of file pst2ldif.cpp.

Referenced by main(), register_string(), and unique_string().

iconv_t cd = 0
 

Definition at line 39 of file pst2ldif.cpp.

Referenced by main(), print_escaped_dn(), and print_ldif_single().

char* ldap_base = NULL
 

Definition at line 37 of file pst2ldif.cpp.

vector<string> ldap_class
 

Definition at line 40 of file pst2ldif.cpp.

vector<string> ldif_extra_line
 

Definition at line 41 of file pst2ldif.cpp.

Referenced by main().

int ldif_extra_line_count = 0
 

Definition at line 38 of file pst2ldif.cpp.

bool old_schema = false
 

Definition at line 36 of file pst2ldif.cpp.

Referenced by main().

char* prog_name
 

Definition at line 34 of file pst2ldif.cpp.

Referenced by main(), and usage().

pst_file pstfile
 

Definition at line 35 of file pst2ldif.cpp.


Generated on Thu Feb 26 13:40:27 2009 for 'LibPst' by  doxygen 1.3.9.1