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_single (const char *attr, pst_string value)
void print_ldif_address (const char *attr, int nvalues, pst_string value,...)
void print_ldif_dn (const char *attr, pst_string value, const char *base)
void print_ldif_multi (const char *dn, pst_string value)
void print_ldif_two (const char *attr, pst_string value1, pst_string value2)
void print_escaped_dn (const char *value)
void build_cn (char *cn, size_t len, int nvalues, pst_string 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_tree *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
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,
pst_string  value,
  ...
 

Definition at line 527 of file pst2ldif.cpp.

References pst_string::str.

char * check_filename char *  fname  ) 
 

Definition at line 708 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 579 of file pst2ldif.cpp.

References all_strings, pst_desc_tree::child, pst_file::d_head, DEBUG_ENT, DEBUG_INIT, 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_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 739 of file pst2ldif.cpp.

Referenced by print_ldif_dn().

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

Definition at line 419 of file pst2ldif.cpp.

References DEBUG_ENT, DEBUG_RET, print_ldif_single(), and pst_string::str.

Here is the call graph for this function:

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

Definition at line 722 of file pst2ldif.cpp.

References print_escaped_dn(), and pst_string::str.

Here is the call graph for this function:

void print_ldif_multi const char *  dn,
pst_string  value
 

Definition at line 490 of file pst2ldif.cpp.

References print_ldif_single(), and pst_string::str.

Here is the call graph for this function:

void print_ldif_single const char *  attr,
pst_string  value
 

Definition at line 358 of file pst2ldif.cpp.

References pst_string::str.

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

void print_ldif_single const char *  attr,
const char *  value
 

Definition at line 367 of file pst2ldif.cpp.

References pst_base64_encode().

Here is the call graph for this function:

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

Definition at line 502 of file pst2ldif.cpp.

References memcpy(), print_ldif_single(), and pst_string::str.

Here is the call graph for this function:

void process pst_desc_tree d_ptr  )  [static]
 

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

Definition at line 88 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 75 of file pst2ldif.cpp.

References x.

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

Definition at line 97 of file pst2ldif.cpp.

References all_strings, and register_string().

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().

char* ldap_base = NULL
 

Definition at line 38 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 39 of file pst2ldif.cpp.

bool old_schema = false
 

Definition at line 37 of file pst2ldif.cpp.

Referenced by main().

char* prog_name
 

Definition at line 35 of file pst2ldif.cpp.

pst_file pstfile
 

Definition at line 36 of file pst2ldif.cpp.


Generated on Fri Dec 11 08:46:56 2009 for 'LibPst' by  doxygen 1.3.9.1