zipios++  2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
Enumerations | Functions | Variables
anonymous_namespace{zipios.cpp} Namespace Reference

A few static variables and functions. More...

Enumerations

enum  func_t {
  func_t::UNDEFINED,
  func_t::COUNT,
  func_t::COUNT_DIRECTORIES,
  func_t::COUNT_FILES
}
 The function to apply. More...
 

Functions

void usage ()
 Usage of the zipios tool. More...
 

Variables

char * g_progname
 Name of the program. More...
 

Detailed Description

This namesapce includes various declarations, variables, and funtions that are specific to the zipios tool, not to be shared with anyone else.

Enumeration Type Documentation

enum anonymous_namespace{zipios.cpp}::func_t
strong

This enumeration lists all the functions the zipios tool can apply to a Zip archive file.

Enumerator
UNDEFINED 

Still undefined.

This is used to know whether the user had a function on the command line that would be run by zipios.

COUNT 

Count the number of files in a Zip archive.

This function is used when the user specify –count. It represents the total number of entries in a Zip archive.

COUNT_DIRECTORIES 

Count the number of directories in a Zip archive.

This function is used when the user specify –count-directories. It represents the number of entries representing directories.

COUNT_FILES 

Count the number of regular files in a Zip archive.

This function is used when the user specify –count-files. It represents the number of entries representing regular files found in a Zip archive.

Definition at line 76 of file zipios.cpp.

Function Documentation

void anonymous_namespace{zipios.cpp}::usage ( )

This function prints out the zipios tool usage and then exits with error code 1.

Definition at line 57 of file zipios.cpp.

Referenced by main().

Variable Documentation

char* anonymous_namespace{zipios.cpp}::g_progname

This variable holds the name of the program. As soon as the main() function is entered, this variable gets defined.

Definition at line 49 of file zipios.cpp.

Referenced by main().