Lines 50-58
Link Here
|
50 |
#include <string> |
50 |
#include <string> |
51 |
using namespace std; |
51 |
using namespace std; |
52 |
|
52 |
|
53 |
|
53 |
#define MYNAME "hbcixml2" |
54 |
#define PRG_VERSION_INFO \ |
54 |
#define PRG_VERSION_INFO \ |
55 |
"hbcixml v1.99 (part of AqHBCI v"AQHBCI_VERSION_STRING")\n"\ |
55 |
MYNAME " v1.99 (part of AqHBCI v"AQHBCI_VERSION_STRING")\n"\ |
56 |
"(c) 2005 Martin Preuss<martin@libchipcard.de>\n" \ |
56 |
"(c) 2005 Martin Preuss<martin@libchipcard.de>\n" \ |
57 |
"This program is free software licensed under GPL.\n"\ |
57 |
"This program is free software licensed under GPL.\n"\ |
58 |
"See COPYING for details.\n" |
58 |
"See COPYING for details.\n" |
Lines 60-66
Link Here
|
60 |
|
60 |
|
61 |
void usage(const char *prg) { |
61 |
void usage(const char *prg) { |
62 |
fprintf(stderr, |
62 |
fprintf(stderr, |
63 |
"HBCIXML - A tool to work on data in a HBCI XML file.\n" |
63 |
MYNAME " - A tool to work on data in a HBCI XML file.\n" |
64 |
"(c) 2003 Martin Preuss<martin@libchipcard.de>\n" |
64 |
"(c) 2003 Martin Preuss<martin@libchipcard.de>\n" |
65 |
"This library is free software; you can redistribute it and/or\n" |
65 |
"This library is free software; you can redistribute it and/or\n" |
66 |
"modify it under the terms of the GNU Lesser General Public\n" |
66 |
"modify it under the terms of the GNU Lesser General Public\n" |
Lines 123-131
Link Here
|
123 |
" Default is \"warning\".\n" |
123 |
" Default is \"warning\".\n" |
124 |
"\n" |
124 |
"\n" |
125 |
"The simplest usage of this program is:\n" |
125 |
"The simplest usage of this program is:\n" |
126 |
" hbcixml show -j JobDialogInit\n" |
126 |
" " MYNAME " show -j JobDialogInit\n" |
127 |
"This shows the properties used by the job \"JobInit\". Other example:\n" |
127 |
"This shows the properties used by the job \"JobInit\". Other example:\n" |
128 |
" hbcixml show -t seg -j Balance\n" |
128 |
" " MYNAME " show -t seg -j Balance\n" |
129 |
"shows the response segment of a JobGetBalance.\n", |
129 |
"shows the response segment of a JobGetBalance.\n", |
130 |
prg); |
130 |
prg); |
131 |
} |
131 |
} |
Lines 162-168
Link Here
|
162 |
args.typ="job"; |
162 |
args.typ="job"; |
163 |
args.version=0; |
163 |
args.version=0; |
164 |
args.hversion=210; |
164 |
args.hversion=210; |
165 |
args.logFile="hbcixml2.log"; |
165 |
args.logFile=MYNAME ".log"; |
166 |
args.logType=GWEN_LoggerTypeConsole; |
166 |
args.logType=GWEN_LoggerTypeConsole; |
167 |
args.logLevel=GWEN_LoggerLevelWarning; |
167 |
args.logLevel=GWEN_LoggerLevelWarning; |
168 |
args.trustLevel=0; |
168 |
args.trustLevel=0; |
Lines 944-950
Link Here
|
944 |
|
944 |
|
945 |
|
945 |
|
946 |
if (GWEN_Logger_Open(0, |
946 |
if (GWEN_Logger_Open(0, |
947 |
"hbcixml", |
947 |
MYNAME, |
948 |
args.logFile.c_str(), |
948 |
args.logFile.c_str(), |
949 |
args.logType, |
949 |
args.logType, |
950 |
GWEN_LoggerFacilityUser)) { |
950 |
GWEN_LoggerFacilityUser)) { |