summaryrefslogtreecommitdiff
path: root/support/fastpictex/src/main.cc
blob: e1f593954e460bac31050cab35b4d0c0177770d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Program  main.cc (FastPicTeX) */
/* By Harald Stauss              */
/* Last change January 12, 2008  */

#include <iostream>
#include "fastpictex.h"

#ifdef DUMA
  #include <new>
  #include "../../duma/duma.h"
  #include "../../duma/dumapp.h"
#endif

/* global variables */
#define VERSION "0.9"
FASTPICTEX fpt;

main(int argc, char *argv[]) {
  int        rc=0;

  /* hello world */
  std::cout << "FastPicTeX by Harald M. Stauss, Ver. " << VERSION << "\n";

  /* allocate memory */

  /* get command line parameters */
  if (argc!=3) {
    rc=1;
    std::cout << "number of parameters wrong! \n";
    std::cout << "usage: fastpictex fin fout \n";
    goto ende;
  }

  fpt.Read(argv[1]);
  
  fpt.Write(argv[2]);

ende:
  return(rc);
} /* Ende von main */