Blender V5.0
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
10
12
19 public:
20 virtual ~DataSource();
21
31 FunctionRef<void(const SpreadsheetColumnID &, bool is_extra)> /*fn*/) const
32 {
33 }
34
39 virtual std::unique_ptr<ColumnValues> get_column_values(
40 const SpreadsheetColumnID & /*column_id*/) const
41 {
42 return {};
43 }
44
49 virtual bool has_selection_filter() const
50 {
51 return false;
52 }
53
57 virtual int tot_rows() const
58 {
59 return 0;
60 }
61};
62
63} // 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