| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/item.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <string> |
| 7 | |
| 8 | class Itemcxx . . $ Item# |
| 9 | { |
| 10 | public: |
| 11 | virtual stdcxx . . $ std/::stringcxx . . $ std/string# const &IDcxx . . $ Item#ID(f4fff0029955a25f).() 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 stdcxx . . $ std/::stringcxx . . $ std/string# const &instanceIDcxx . . $ Item#instanceID(f4fff0029955a25f).() const |
| 19 | { |
| 20 | return IDcxx . . $ Item#ID(f4fff0029955a25f).(); |
| 21 | } |
| 22 | |
| 23 | virtual ~cxx . . $ Item#`~Item`(ced63f7c635d850d).Itemcxx . . $ Item#() = default; |
| 24 | }; |