mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2026-01-27 10:23:12 +00:00
45 lines
906 B
C++
45 lines
906 B
C++
//
|
|
// License type: BSD 3-Clause License
|
|
// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE
|
|
//
|
|
// Created by Stephane Bourque on 2021-03-04.
|
|
// Arilia Wireless Inc.
|
|
//
|
|
|
|
#include "StorageService.h"
|
|
|
|
namespace OpenWifi {
|
|
|
|
class Storage *Storage::instance_ = nullptr;
|
|
|
|
int Storage::Start() {
|
|
std::lock_guard Guard(Mutex_);
|
|
|
|
Logger_.setLevel(Poco::Message::PRIO_NOTICE);
|
|
|
|
StorageClass::Start();
|
|
|
|
Create_Tables();
|
|
|
|
return 0;
|
|
}
|
|
|
|
void Storage::Stop() {
|
|
std::lock_guard Guard(Mutex_);
|
|
Logger_.notice("Stopping.");
|
|
StorageClass::Stop();
|
|
}
|
|
|
|
std::string Storage::TrimRevision(const std::string &R) {
|
|
std::string Result = R;
|
|
/* if(R.size()>63)
|
|
Result = R.substr(0,63);
|
|
else
|
|
Result = R;
|
|
*/
|
|
return Result;
|
|
}
|
|
|
|
|
|
}
|
|
// namespace
|