#include "components/segmentation_platform/internal/database/config_holder.h"
#include "components/segmentation_platform/internal/config_parser.h"
#include "components/segmentation_platform/internal/metadata/metadata_utils.h"
#include "components/segmentation_platform/public/proto/segmentation_platform.pb.h"
namespace segmentation_platform {
ConfigHolder::ConfigHolder(std::vector<std::unique_ptr<Config>> configs)
: … { … }
ConfigHolder::~ConfigHolder() = default;
std::optional<std::string> ConfigHolder::GetKeyForSegmentId(
proto::SegmentId segment_id) const { … }
const Config* ConfigHolder::GetConfigForSegmentId(
proto::SegmentId segment_id) const { … }
bool ConfigHolder::IsLegacySegmentationKey(
const std::string& segmentation_key) const { … }
Config* ConfigHolder::GetConfigForSegmentationKey(
const std::string& segmentation_key) const { … }
}