MDF Lib 2.2
Interface against MDF 3/4 files
Loading...
Searching...
No Matches
iblock.h
Go to the documentation of this file.
1/*
2 * * Copyright 2022 Ingemar Hedvall
3 * SPDX-License-Identifier: MIT
4 */
5
10#pragma once
11#include <cstdint>
12#include <string>
13
14
15namespace mdf {
19class IBlock {
20 public:
21 virtual ~IBlock() = default;
22
32 [[nodiscard]] virtual int64_t Index() const = 0;
33
41 [[nodiscard]] virtual std::string BlockType() const = 0;
42
43};
44
45} // namespace mdf
Base class for all MDF blocks.
Definition iblock.h:19
virtual int64_t Index() const =0
File position within the file.
virtual ~IBlock()=default
Default destructor.
virtual std::string BlockType() const =0
Returns the block type.
Main namespace for the MDF library.
Definition canmessage.h:17