#include "components/segmentation_platform/internal/database/signal_key.h"
#include <ostream>
#include <sstream>
#include <string>
#include "base/time/time.h"
#include "components/segmentation_platform/internal/database/signal_key_internal.h"
namespace segmentation_platform {
namespace {
char ToInternalSignalKindRepresentation(SignalKey::Kind kind) { … }
SignalKey::Kind FromInternalSignalKindRepresentation(char kind) { … }
base::Time StripResolutionSmallerThanSeconds(base::Time time) { … }
}
SignalKey::SignalKey(Kind kind,
uint64_t name_hash,
base::Time range_start,
base::Time range_end)
: … { … }
SignalKey::SignalKey() : … { … }
SignalKey::~SignalKey() = default;
bool SignalKey::IsValid() const { … }
std::string SignalKey::ToBinary() const { … }
std::string SignalKey::GetPrefixInBinary() const { … }
bool SignalKey::FromBinary(const std::string& input, SignalKey* output) { … }
std::string SignalKey::ToDebugString() const { … }
bool SignalKey::operator<(const SignalKey& other) const { … }
std::ostream& operator<<(std::ostream& os, const SignalKey& key) { … }
}