#include "mix_cc/debug/pre_define.h" #include #include #include #include #include #include using namespace baosight; RICS::RICS() { logger_ = std::make_unique("RICS"); } RICS::~RICS() { logger_->Info() << "-------RICS::end-------" << std::endl; } int RICS::start() { logger_->Info() << "-------RICS::start-------" << std::endl; con_mag_ = std::make_shared(); con_mag_->dbLogin(); try { auto module_name = name(); RICS_server = new RICSICEI(); this->add(string("baosight/") + name(), RICS_server); } catch (::Ice::LocalException &e) { logger_->Error() << "Can not add baosight/RICS, error: " << e << endl; return (-1); } return 0; } // PACE_SERVER_INSTALL(RICS) //应用程序主入口,传入参数为定义的类名 PACE_PLATFORM_SERVER_INSTALL(RICS, APPVERSION);