remove hard coded path into CMake files
[profile/ivi/ico-vic-amb-plugin.git] / src / abstractconfig.h
1 /*
2  * Copyright (c) 2013 TOYOTA MOTOR CORPORATION.
3  *
4  * Contact: shibata@mac.tec.toyota.co.jp
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #ifndef ABSTRACTCONFIG_H_
19 #define ABSTRACTCONFIG_H_
20 #include <string>
21
22 class AbstractConfig {
23 public:
24     /**
25      * Constructor.
26      */
27     AbstractConfig();
28
29     /**
30      * Destructor.
31      */
32     virtual
33     ~AbstractConfig();
34
35     /**
36      * Read configuration file.
37      *
38      * @param confpath Path to the configuration file.
39      */
40     bool
41     readConfig(std::string confpath);
42 protected:
43     virtual bool
44     parseJson(std::string config) = 0;
45
46     bool readflag;
47 };
48 #endif //  ABSTRACTCONFIG_H_
49