Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include "DNA_space_types.h"
|
|
|
|
#include "BLI_hash.hh"
|
|
|
|
namespace blender {
|
|
template<> struct DefaultHash<SpreadsheetColumnID> {
|
|
uint64_t operator()(const SpreadsheetColumnID &column_id) const
|
|
{
|
|
return get_default_hash(StringRef(column_id.name));
|
|
}
|
|
};
|
|
} // namespace blender
|
|
|
|
inline bool operator==(const SpreadsheetColumnID &a, const SpreadsheetColumnID &b)
|
|
{
|
|
using blender::StringRef;
|
|
return StringRef(a.name) == StringRef(b.name);
|
|
}
|
|
|
|
namespace blender::ed::spreadsheet {
|
|
|
|
SpreadsheetColumnID *spreadsheet_column_id_new();
|
|
SpreadsheetColumnID *spreadsheet_column_id_copy(const SpreadsheetColumnID *src_column_id);
|
|
void spreadsheet_column_id_free(SpreadsheetColumnID *column_id);
|
|
|
|
SpreadsheetColumn *spreadsheet_column_new(SpreadsheetColumnID *column_id);
|
|
SpreadsheetColumn *spreadsheet_column_copy(const SpreadsheetColumn *src_column);
|
|
void spreadsheet_column_assign_runtime_data(SpreadsheetColumn *column,
|
|
eSpreadsheetColumnValueType data_type,
|
|
const StringRefNull display_name);
|
|
void spreadsheet_column_free(SpreadsheetColumn *column);
|
|
|
|
} // namespace blender::ed::spreadsheet
|