FilterProcess -> Legacy_FilterProcess로 변경 sfilterprocess -> FilterProcess로 변경 git-svn-id: svn://192.168.0.12/source@316 8346c931-da38-4b9b-9d4c-e48b93cbd075
43 lines
1004 B
C++
43 lines
1004 B
C++
#include <iostream>
|
|
#include "sfilterprocess.h"
|
|
#include <QCoreApplication>
|
|
#include <QLocale>
|
|
#include <QDate>
|
|
#include "shttpsender.h"
|
|
using namespace std;
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication a(argc, argv);
|
|
cout << "build date : ";
|
|
cout << QLocale("en_US").toDate(QString(__DATE__).simplified(), "MMM d yyyy").toString("yyyy-MM-dd").toStdString();
|
|
cout << " ";
|
|
cout << QString(__TIME__).toStdString() << endl;
|
|
SFilterProcess filter;
|
|
|
|
if (argc != 3)
|
|
{
|
|
cout << "check argument " << endl;
|
|
return -1;
|
|
}
|
|
|
|
a.processEvents();
|
|
|
|
if (!filter.init(argv[1], argv[2]))
|
|
//if (!filter.init(QString::number(370), "Check"))
|
|
{
|
|
cout << "filter init error" << endl;
|
|
exit(1);
|
|
}
|
|
|
|
if (!filter.run())
|
|
{
|
|
cout << "filter run error" << endl;
|
|
exit(1);
|
|
}
|
|
|
|
SHttpSender httpSender;
|
|
httpSender.SendData(filter.getCompanyNum());
|
|
|
|
return a.exec();
|
|
}
|