2019-11-11 23:56:03 +00:00
|
|
|
#pragma once
|
2019-11-17 04:48:25 +00:00
|
|
|
#include <inttypes.h>
|
|
|
|
|
2023-02-05 18:49:07 +00:00
|
|
|
#include <palPoco.h>
|
|
|
|
#include <pallogger.h>
|
|
|
|
#include <eventtask.h>
|
|
|
|
#include <baseapp.h>
|
2023-02-07 06:27:19 +00:00
|
|
|
#include "app.h"
|
2023-02-05 18:49:07 +00:00
|
|
|
#include "qoptions.h"
|
|
|
|
#include "util.h"
|
|
|
|
//#include <httpserver.h>
|
2019-11-11 23:56:03 +00:00
|
|
|
|
2019-11-17 04:48:25 +00:00
|
|
|
#ifndef UNUSED
|
|
|
|
#define UNUSED (void)
|
|
|
|
#endif
|
|
|
|
|
2019-11-11 23:56:03 +00:00
|
|
|
#define CLASS PAL_APPCLASS
|
|
|
|
using namespace PAL_NAMESPACE;
|
|
|
|
|
|
|
|
class CLASS : public PAL_BASEAPP
|
|
|
|
{
|
|
|
|
protected:
|
2019-11-15 13:31:42 +00:00
|
|
|
void showerror(int ecode,std::string fname);
|
2019-11-11 23:56:03 +00:00
|
|
|
virtual int runCommandLineApp(void);
|
2022-01-17 19:21:57 +00:00
|
|
|
#ifdef SERVERAPP
|
2019-11-11 23:56:03 +00:00
|
|
|
virtual int runServerApp(PAL_EVENTMANAGER *em);
|
2022-01-17 19:21:57 +00:00
|
|
|
#endif
|
2019-11-15 13:31:42 +00:00
|
|
|
virtual void displayVersion();
|
2023-02-08 23:46:38 +00:00
|
|
|
virtual void displayHelp();
|
2019-11-15 13:31:42 +00:00
|
|
|
|
2019-11-11 23:56:03 +00:00
|
|
|
public:
|
2023-02-07 06:27:19 +00:00
|
|
|
|
2019-11-11 23:56:03 +00:00
|
|
|
};
|
|
|
|
|
2023-02-07 06:27:19 +00:00
|
|
|
extern PAL_LOGGER logger;
|
|
|
|
|
2019-11-11 23:56:03 +00:00
|
|
|
#undef CLASS
|