Back to Serial Studio

MDF Lib: include/mdf/iblock.h Source File

lib/mdflib/docs/manual/html/iblock_8h_source.html

3.2.71.8 KB
Original Source

| 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:

21virtual ~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

mdf::IBlock

Base class for all MDF blocks.

Definition iblock.h:19

mdf::IBlock::Index

virtual int64_t Index() const =0

File position within the file.

mdf::IBlock::~IBlock

virtual ~IBlock()=default

Default destructor.

mdf::IBlock::BlockType

virtual std::string BlockType() const =0

Returns the block type.

mdf

Main namespace for the MDF library.

Definition canmessage.h:17


Generated by 1.12.0