Frog
Macros | Functions | Variables
Frog.cxx File Reference
#include <cstdlib>
#include <cstdio>
#include <sys/wait.h>
#include <signal.h>
#include <string>
#include <cstring>
#include <random>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include "config.h"
#include "timbl/TimblAPI.h"
#include "ticcutils/FdStream.h"
#include "ticcutils/ServerBase.h"
#include "frog/Frog-util.h"
#include "frog/FrogAPI.h"
#include "frog/ucto_tokenizer_mod.h"
#include "frog/tagger_base.h"
#include "ticcutils/StringOps.h"
#include "ticcutils/CommandLine.h"
#include "ticcutils/FileUtils.h"
Include dependency graph for Frog.cxx:

Macros

#define LOG   *TiCC::Log(theErrLog)
 
#define DBG   *TiCC::Log(theDbgLog)
 

Functions

void usage ()
 
bool parse_args (TiCC::CL_Options &Opts, FrogOptions &options, TiCC::LogStream *theErrLog)
 
void KillServerFun (int Signal)
 
unsigned long long random64 ()
 
string randnum (int len)
 
int main (int argc, char *argv[])
 

Variables

string testDirName
 
string outputFileName
 
bool wantOUT
 
string XMLoutFileName
 
string outputDirName
 
string xmlDirName
 
set< string > fileNames
 
TiCC::Configuration configuration
 

Macro Definition Documentation

◆ DBG

#define DBG   *TiCC::Log(theDbgLog)

◆ LOG

#define LOG   *TiCC::Log(theErrLog)

Function Documentation

◆ KillServerFun()

void KillServerFun ( int  Signal)

◆ main()

int main ( int  argc,
char *  argv[] 
)

Frog's main program.

◆ parse_args()

bool parse_args ( TiCC::CL_Options &  Opts,
FrogOptions options,
TiCC::LogStream *  theErrLog 
)

process the command line and fill FrogOptions to initialize the API also fill some globals we use for our own main.

Parameters
OptsThe command line options we have received
optionsThe FrogOptions structure we will fill
theErrLogthe stream to send error messages to return true on succes

◆ randnum()

string randnum ( int  len)

generate a rather random string of length len

Parameters
lenThe length of the output string

We generate a 64 bit random number an convert is to a string. Then this string is truncated at len characters. (which means that the result migth be NOT unique!)

◆ random64()

unsigned long long random64 ( )

generate a 64 bit random number

◆ usage()

void usage ( )

Variable Documentation

◆ configuration

TiCC::Configuration configuration

◆ fileNames

set<string> fileNames

◆ outputDirName

string outputDirName

◆ outputFileName

string outputFileName

◆ testDirName

string testDirName

◆ wantOUT

bool wantOUT

◆ xmlDirName

string xmlDirName

◆ XMLoutFileName

string XMLoutFileName