1 /*
2  * Copyright (c) 2024 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 #ifndef INTF_RESOURCE_CONTAINER_H
16 #define INTF_RESOURCE_CONTAINER_H
17 
18 #include <scene_plugin/namespace.h>
19 
20 #include <meta/base/types.h>
21 #include <meta/interface/intf_container.h>
22 
23 SCENE_BEGIN_NAMESPACE()
24 
25 REGISTER_INTERFACE(IResourceContainer, "48d408d7-92aa-44b1-b80b-85902ace3808")
26 class IResourceContainer : public CORE_NS::IInterface {
27     META_INTERFACE(CORE_NS::IInterface, IResourceContainer, InterfaceId::IResourceContainer)
28 public:
29     /**
30      * @brief Get resources in this container.
31      * @return A container object for all resources in this instance.
32      */
33     virtual META_NS::IContainer::Ptr GetResources() = 0;
34 };
35 SCENE_END_NAMESPACE()
36 
37 META_TYPE(SCENE_NS::IResourceContainer::WeakPtr);
38 META_TYPE(SCENE_NS::IResourceContainer::Ptr);
39 
40 #endif // INTF_RESOURCE_CONTAINER_H
41