Blender V4.5
libocio_view.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#if defined(WITH_OPENCOLORIO)
8
9# include "MEM_guardedalloc.h"
10
11# include "OCIO_view.hh"
12
13# include "BLI_string_ref.hh"
14
15namespace blender::ocio {
16
17class LibOCIOView : public View {
18 StringRefNull name_;
19
20 public:
21 LibOCIOView(const int index, const StringRefNull name) : name_(name)
22 {
23 this->index = index;
24 }
25
26 StringRefNull name() const override
27 {
28 return name_;
29 }
30
31 MEM_CXX_CLASS_ALLOC_FUNCS("LibOCIOView");
32};
33
34} // namespace blender::ocio
35
36#endif
Read Guarded memory(de)allocation.