blob: f0d40f81da5ca282bee8ff67670f1262b2284d60 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_SYSTEM_LOG_RECORDER_ENCODING_IDENTITY_DECODER_H_
#define SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_SYSTEM_LOG_RECORDER_ENCODING_IDENTITY_DECODER_H_
#include <string>
#include "src/developer/forensics/feedback_data/system_log_recorder/encoding/decoder.h"
#include "src/developer/forensics/feedback_data/system_log_recorder/encoding/version.h"
namespace forensics {
namespace feedback_data {
namespace system_log_recorder {
class IdentityDecoder : public Decoder {
public:
IdentityDecoder(){}
virtual ~IdentityDecoder(){}
virtual EncodingVersion GetEncodingVersion() const { return EncodingVersion::kIdentity; }
// |Decoder|
virtual std::string Decode(const std::string& block) { return block; }
};
} // namespace system_log_recorder
} // namespace feedback_data
} // namespace forensics
#endif // SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_SYSTEM_LOG_RECORDER_ENCODING_IDENTITY_DECODER_H_