fba9a0860002a88ee75a7f414e1bfb9a8b4a0f52
[platform/upstream/iotivity.git] / service / resource-manipulation / include / BundleInfo.h
1 //******************************************************************
2 //
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
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
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
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.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 #ifndef BUNDLEINFO_H_
22 #define BUNDLEINFO_H_
23
24 #include <string>
25
26 using namespace std;
27
28 namespace OIC
29 {
30     namespace Service
31     {
32         /*
33          * Describes a bundle with resources, that can be loaded dynamically.
34          */
35         class BundleInfo
36         {
37         public:
38             BundleInfo();
39             virtual ~BundleInfo();
40             virtual void setID(string name) = 0;
41             virtual string getID() = 0;
42             virtual void setPath(string path) = 0;
43             virtual string getPath() = 0;
44             virtual void setActivatorName(string activator) = 0;
45             virtual string getActivatorName() = 0;
46             virtual void setLibraryPath(string libpath) = 0;
47             virtual string getLibraryPath() = 0;
48             virtual void setVersion(string version) = 0;
49             virtual string getVersion() = 0;
50             static BundleInfo* build();
51         protected:
52             string m_ID, m_path, m_version;
53         };
54     }
55 }
56
57 #endif /* BUNDLEINFO_H_ */