jigdo API

jigdo-file.cc File Reference

#include <config.h>
#include <fstream>
#include <glibc-getopt.h>
#include <errno.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd-jigdo.h>
#include <zlib.h>
#include <compat.hh>
#include <configfile.hh>
#include <debug.hh>
#include <jigdo-file-cmd.hh>
#include <jigdoconfig.hh>
#include <log.hh>
#include <mkimage.hh>
#include <mktemplate.hh>
#include <recursedir.hh>
#include <scan.hh>
#include <string.hh>

Enumerations

enum  {
  LONGOPT_BUFSIZE = 0x100, LONGOPT_NOFORCE, LONGOPT_MINSIZE, LONGOPT_MD5SIZE,
  LONGOPT_MKIMAGECHECK, LONGOPT_NOMKIMAGECHECK, LONGOPT_LABEL, LONGOPT_URI,
  LONGOPT_ADDSERVERS, LONGOPT_NOADDSERVERS, LONGOPT_ADDIMAGE, LONGOPT_NOADDIMAGE,
  LONGOPT_NOCACHE, LONGOPT_CACHEEXPIRY, LONGOPT_MERGE, LONGOPT_HEX,
  LONGOPT_NOHEX, LONGOPT_DEBUG, LONGOPT_NODEBUG, LONGOPT_MATCHEXEC,
  LONGOPT_BZIP2, LONGOPT_GZIP, LONGOPT_SCANWHOLEFILE, LONGOPT_NOSCANWHOLEFILE,
  LONGOPT_GREEDYMATCHING, LONGOPT_NOGREEDYMATCHING
}

Functions

MyProgressReporter reporterDefault (true)
MyProgressReporter reporterNoprogress (false)
void printUsage (bool detailed, size_t blockLength, size_t md5BlockLength, size_t readAmount)
size_t scanMemSize (const char *str)
size_t scanTimespan (const char *str)
void deduceName2 (string &dest, const char *ext, const string &src)
void deduceName (string &dest, const char *ext, const string &src)
void outOfMemory ()
void exit_tryHelp ()
 Prints "jigdo-file: Try `jigdo-file --help' or `man jigdo-file' for more information", then throws Cleanup(3).
int main (int argc, char *argv[])

Variables

const size_t MINIMUM_BLOCKLENGTH = 256
char optHelp = '\0'
bool optVersion = false
int returnValue = 0
static uint64 imageSize
MyGrepProgressReporter reporterGrep
MyQuietProgressReporter reporterQuiet

Enumeration Type Documentation

anonymous enum

Enumerator:
LONGOPT_BUFSIZE 
LONGOPT_NOFORCE 
LONGOPT_MINSIZE 
LONGOPT_MD5SIZE 
LONGOPT_MKIMAGECHECK 
LONGOPT_NOMKIMAGECHECK 
LONGOPT_LABEL 
LONGOPT_URI 
LONGOPT_ADDSERVERS 
LONGOPT_NOADDSERVERS 
LONGOPT_ADDIMAGE 
LONGOPT_NOADDIMAGE 
LONGOPT_NOCACHE 
LONGOPT_CACHEEXPIRY 
LONGOPT_MERGE 
LONGOPT_HEX 
LONGOPT_NOHEX 
LONGOPT_DEBUG 
LONGOPT_NODEBUG 
LONGOPT_MATCHEXEC 
LONGOPT_BZIP2 
LONGOPT_GZIP 
LONGOPT_SCANWHOLEFILE 
LONGOPT_NOSCANWHOLEFILE 
LONGOPT_GREEDYMATCHING 
LONGOPT_NOGREEDYMATCHING 


Function Documentation

void @28::deduceName ( string &  dest,
const char *  ext,
const string &  src 
) [inline, static]

References deduceName2().

void @28::deduceName2 ( string &  dest,
const char *  ext,
const string &  src 
) [static]

References Paranoid.

Referenced by deduceName().

void exit_tryHelp (  ) 

Prints "jigdo-file: Try `jigdo-file --help' or `man jigdo-file' for more information", then throws Cleanup(3).

References _, JigdoFileCmd::binName, and subst.

void @28::outOfMemory (  )  [static]

References _, binName(), and subst.

Referenced by main().

void @28::printUsage ( bool  detailed,
size_t  blockLength,
size_t  md5BlockLength,
size_t  readAmount 
) [inline, static]

References _, binName(), subst, and WINDOWS.

MyProgressReporter @28::reporterDefault ( true   )  [static]

MyProgressReporter @28::reporterNoprogress ( false   )  [static]

size_t @28::scanMemSize ( const char *  str  )  [static]

References _, binName(), subst, and x.

size_t @28::scanTimespan ( const char *  str  )  [static]

References _, binName(), subst, and x.


Variable Documentation

uint64 imageSize [static]

Referenced by JigdoDesc::makeImage(), and writeMerge().

const size_t MINIMUM_BLOCKLENGTH = 256 [static]

char optHelp = '\0' [static]

Referenced by cmdOptions().

bool optVersion = false [static]

Referenced by cmdOptions().

string prevLine [static]

const unsigned PROGRESS_WIDTH = 23 [static]

MyGrepProgressReporter reporterGrep [static]

MyQuietProgressReporter reporterQuiet [static]

int returnValue = 0 [static]

uint64 totalAll [static]


Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6