feat: load rng_models.json on startup
This commit is contained in:
parent
4821cb9d36
commit
022993ab5a
@ -4,6 +4,7 @@
|
|||||||
#include <utility/IniProperty.h>
|
#include <utility/IniProperty.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <TestProject/RNG/model/ModelRegistry.h>
|
||||||
#include "mix_cc/debug/pre_define.h"
|
#include "mix_cc/debug/pre_define.h"
|
||||||
|
|
||||||
using namespace baosight;
|
using namespace baosight;
|
||||||
@ -16,6 +17,7 @@ int RNG::start() {
|
|||||||
logger_->Info() << "-------RNG::start-------" << std::endl;
|
logger_->Info() << "-------RNG::start-------" << std::endl;
|
||||||
con_mag_ = std::make_shared<ConnectionMag>();
|
con_mag_ = std::make_shared<ConnectionMag>();
|
||||||
con_mag_->dbLogin();
|
con_mag_->dbLogin();
|
||||||
|
ModelRegistry::instance().loadModels("/users/dsc/code/TestProject/RNG/json/rng_models.json");
|
||||||
try {
|
try {
|
||||||
auto module_name = name();
|
auto module_name = name();
|
||||||
RNG_server = new RNGICEI();
|
RNG_server = new RNGICEI();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user