Enumerations | Functions | Variables

csv2yapet/main.cc File Reference

Go to the source code of this file.

Enumerations

enum  {
  ERR_CMDLINE = 1, ERR_PASSWDMISMATCH = 2, ERR_FILEEXISTS = 3, ERR_FATAL = 4,
  MAX_PASSWD = 1024, MAX_FILEPATH = 1024
}

Functions

void disable_echo ()
void enable_echo ()
int main (int argc, char **argv)
void show_copyright ()
void show_help (char *prgname)
void show_version ()

Variables

const char COPYRIGHT [] = "along with this program. If not, see <http://www.gnu.org/licenses/>.\n"

Enumeration Type Documentation

anonymous enum
Enumerator:
ERR_CMDLINE 

Error on command line, i.e. missing parameter.

ERR_PASSWDMISMATCH 

The passwords supplied by the user do not match.

ERR_FILEEXISTS 

The destination file already exists.

ERR_FATAL 

A fatal error. Does not indicate convert errors which are handled/logged by CSVImport.

MAX_PASSWD 

The max password length

MAX_FILEPATH 

The max file path length.

Definition at line 78 of file main.cc.


Function Documentation

void disable_echo (  ) 

Disables the echoing of input when using stdin. Uses tcgetattr and tcsetattr in order to disable the echoing.

Definition at line 126 of file main.cc.

Referenced by main().

Here is the caller graph for this function:

void enable_echo (  ) 

Same as disable_echo, but reversed.

Definition at line 146 of file main.cc.

Referenced by main().

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)
void show_copyright (  ) 

Definition at line 169 of file main.cc.

References COPYRIGHT.

void show_help ( char *  prgname  ) 

Definition at line 173 of file main.cc.

void show_version (  ) 

Definition at line 163 of file main.cc.


Variable Documentation

const char COPYRIGHT[] = "along with this program. If not, see <http://www.gnu.org/licenses/>.\n"

Definition at line 105 of file main.cc.