1 #ifndef __DALI_INTERNAL_RESOURCE_TYPE_PATH_H__
2 #define __DALI_INTERNAL_RESOURCE_TYPE_PATH_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <dali/integration-api/resource-types.h>
33 * A resource Type & Path pair. This is used by ResourceManager when creating tickets.
34 * A new ticket will only be needed, if the same resource Type & Path has not already been requested.
36 class ResourceTypePath
41 * Create a resource Type and Path pair.
42 * @param[in] requestType The type of resource.
43 * @param[in] requestPath The path of the resource.
45 ResourceTypePath(const Integration::ResourceType& requestType,
46 const std::string& requestPath)
47 : type(requestType.Clone()),
54 * @param[in] typePath The Type & Path to copy.
56 ResourceTypePath(const ResourceTypePath& typePath)
57 : type(typePath.type->Clone()),
69 * @param[in] rhs The request to compare with.
71 bool operator<(const ResourceTypePath& rhs) const;
76 * Undefined assignment operator.
77 * @param[in] rhs The resource request to copy.
79 ResourceTypePath& operator=(const ResourceTypePath& rhs);
83 const Integration::ResourceType* type;
84 const std::string path;
87 } // namespace Internal
91 #endif // __DALI_INTERNAL_RESOURCE_TYPE_PATH_H__