2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @file plugin_path_builder.cpp
18 * @author Kamil Nować (k.nowac@partner.samgsung.com)
27 #include <dpl/string.h>
28 #include <dpl/utils/path.h>
30 class PluginPath: public DPL::Utils::Path{
32 std::string m_library;
35 PluginPath(const DPL::Utils::Path& fullPath);
36 PluginPath(const std::string& fullPath);
37 PluginPath(const DPL::String& fullPath);
40 //getMetafile() this function adds metafile to current path.
41 PluginPath getMetaFile() const;
43 //setLibraryCombinedName This function creates name for library by adding
44 //prefix and suffix to PluginPath object filename.
45 void setLibraryCombinedName(const std::string& prefix, const std::string& sufix)
47 this->m_library = prefix + this->Filename() + sufix;
50 //getLibraryName returns library name
51 const std::string& getLibraryName() const
55 //getLibraryPath returns full path to the library
56 const PluginPath getLibraryPath() const
58 return this->operator /(m_library);
62 #endif // PLUGIN_PATH_H