Debian Codegraph @

src/core/item.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include <string>
7
8 class Item
9 {
10 public:
11 virtual std::string const &ID() const = 0;
12
13 /// Returns the instance ID.
14 ///
15 /// When there are multiple instances of the same item, an unique
16 /// instance ID will be returned for each item. Otherwise, the
17 /// returned instance ID will be the value of the item ID.
18 virtual std::string const &instanceID() const
19 {
20 return ID();
21 }
22
23 virtual ~Item() = default;
24 };