Blender V4.3
spreadsheet_data_source.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "BLI_function_ref.hh"
8
11
13
20 public:
21 virtual ~DataSource();
22
32 FunctionRef<void(const SpreadsheetColumnID &, bool is_extra)> /*fn*/) const
33 {
34 }
35
40 virtual std::unique_ptr<ColumnValues> get_column_values(
41 const SpreadsheetColumnID & /*column_id*/) const
42 {
43 return {};
44 }
45
50 virtual bool has_selection_filter() const
51 {
52 return false;
53 }
54
58 virtual int tot_rows() const
59 {
60 return 0;
61 }
62};
63
64} // namespace blender::ed::spreadsheet
virtual void foreach_default_column_ids(FunctionRef< void(const SpreadsheetColumnID &, bool is_extra)>) const
virtual std::unique_ptr< ColumnValues > get_column_values(const SpreadsheetColumnID &) const