ad_map_access
include
ad
map
serialize
IChecksum.hpp
Go to the documentation of this file.
1
// ----------------- BEGIN LICENSE BLOCK ---------------------------------
2
//
3
// Copyright (C) 2018-2021 Intel Corporation
4
//
5
// SPDX-License-Identifier: MIT
6
//
7
// ----------------- END LICENSE BLOCK -----------------------------------
12
#pragma once
13
14
#include <string.h>
15
16
#include "
ad/map/serialize/IStorage.hpp
"
17
19
namespace
ad
{
21
namespace
map {
23
namespace
serialize {
24
28
class
IChecksum
:
virtual
public
IStorage
29
{
30
protected
:
// Constructor/Destructor
31
IChecksum
() =
default
;
32
virtual
~
IChecksum
() =
default
;
33
34
public
:
// Info
35
virtual
const
char
*getChecksumType() = 0;
36
37
protected
:
// To be implemented: Checksum
38
virtual
void
initChecksum() = 0;
39
virtual
void
updateChecksum(
const
void
*x,
size_t
bytes) = 0;
40
virtual
bool
writeChecksum() = 0;
41
virtual
bool
checksumOK() = 0;
42
};
43
44
}
// namespace serialize
45
}
// namespace map
46
}
// namespace ad
ad
namespace ad
Definition:
GeometryStoreItem.hpp:28
ad::map::serialize::IStorage
Storage Interface.
Definition:
IStorage.hpp:26
ad::map::serialize::IChecksum
Interface for Checksum.
Definition:
IChecksum.hpp:28
IStorage.hpp
Generated by
1.8.17