123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #pragma once
- #include <iostream>
- #include <signal.h>
- #include "Util/logger.h"
- #include "Util/NoticeCenter.h"
- #include "Poller/EventPoller.h"
- #include "Player/PlayerProxy.h"
- #include "Rtmp/RtmpPusher.h"
- #include "Common/config.h"
- #include "Pusher/MediaPusher.h"
- #include "Extension/Frame.h"
- #include "Util/SqlPool.h"
- #include "Network/TcpClient.h"
- #include "TCPClient.h"
- #include "inifile.h"
- #include <gst/gst.h>
- #include <vector>
- #include "inference.h"
- using namespace toolkit;
- using namespace mediakit;
- using namespace inifile;
- using namespace std;
- #define ERR -1
- #define OK 0
- namespace VIA
- {
- class UserApp
- {
- public:
- static std::shared_ptr<UserApp> CreateNew();
- UserApp();
- ~UserApp();
- int32_t Init(std::string appName);
- void Destroy();
- void StartTask();
- private:
- IniFile m_ini;
- std::string m_appName;
- const std::string m_configSrc = "../config/config.ini";
- private:
-
- std::string Netty_ip;
- int32_t Netty_port;
- std::string Netty_idName;
-
- std::string PIS_ip;
- int32_t PIS_port;
- std::string PIS_IdName;
-
- std::string sql_ip;
- int32_t sql_port;
- std::string user;
- std::string password;
- std::string character;
- int device_id;
- std::string Log_src;
- private:
-
- std::shared_ptr<TCPClient> m_tcpClient;
- };
- }
|