4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: JuHyun Kim <jh8212.kim@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
25 #if !defined(_CATALOG_CLASS_H_)
26 #define _CATALOG_CLASS_H_
30 class ccatalog : public ctype
33 enum ccatalog_splitter_id {
34 SPLITTER_FOR_CONF_FILE = 0x00,
35 SPLITTER_FOR_CPU_INFO = 0x01,
41 bool load(const char *conf_file , char splitter_id = SPLITTER_FOR_CONF_FILE);
45 char *value(char *group, char *name);
46 char *value(char *group, char *name, int idx);
47 int count_of_values(char *group, char *name);
49 void *iterate_init(void);
50 void *iterate_next(void *handle);
51 void *iterate_prev(void *handle);
52 char *iterate_get_name(void *handle);
55 struct desc_t : public clist {
60 struct group_t : public clist {