• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef API_RENDER_IRENDER_NODE_INTERFACE_H
17 #define API_RENDER_IRENDER_NODE_INTERFACE_H
18 
19 #include <base/containers/string_view.h>
20 #include <base/util/uid.h>
21 #include <render/namespace.h>
22 
RENDER_BEGIN_NAMESPACE()23 RENDER_BEGIN_NAMESPACE()
24 /** @ingroup group_render_irendernodeinterface */
25 /**
26  * Base interface for render node interfaces.
27  */
28 class IRenderNodeInterface {
29 public:
30     /** Get the type name of the render node interface.
31      */
32     virtual BASE_NS::string_view GetTypeName() const = 0;
33 
34     /** Get Uid of the interface.
35      */
36     virtual BASE_NS::Uid GetUid() const = 0;
37 
38 protected:
39     IRenderNodeInterface() = default;
40     virtual ~IRenderNodeInterface() = default;
41 
42     IRenderNodeInterface(const IRenderNodeInterface&) = delete;
43     IRenderNodeInterface& operator=(const IRenderNodeInterface&) = delete;
44     IRenderNodeInterface(IRenderNodeInterface&&) = delete;
45     IRenderNodeInterface& operator=(IRenderNodeInterface&&) = delete;
46 };
47 RENDER_END_NAMESPACE()
48 
49 #endif // API_RENDER_IRENDER_NODE_INTERFACE_H
50