1 #ifndef PARAMETER_WRAPPER
2 #define PARAMETER_WRAPPER
7 * check whether integer data exists.
8 * @param[in] comp section TAG
9 * @param[in] *key key string
10 * @return 1 = exist setting value / 0 = non exist setting value
12 inline int parameter_is_int_exist(const PARAMETER_COMPONENT_TAG comp, const char* key)
14 if (l7vs::Parameter::getInstance().isIntExist(comp, key)) {
21 * check whether character data exists.
22 * @param[in] comp section TAG
23 * @param[in] *key key string
24 * @return 1 = exist setting value / 0 = non exist setting value
26 inline int parameter_is_char_exist(const PARAMETER_COMPONENT_TAG comp, const char* key)
28 if (l7vs::Parameter::getInstance().isStringExist(comp, key)) {
36 * @param[in] comp section TAG
37 * @param[in] *key key string
40 inline int parameter_get_int_value(const PARAMETER_COMPONENT_TAG comp, const char* key)
42 return l7vs::Parameter::getInstance().getIntValue(comp, key);
47 * @param[in] comp section TAG
48 * @param[in] *key key string
51 inline const char* parameter_get_char_value(const PARAMETER_COMPONENT_TAG comp, const char* key)
53 return (l7vs::Parameter::getInstance().getStringValue(comp, key)).c_str();
58 * @param[in] comp section TAG
59 * @return 0 = success read file / -1 = failure read file
61 inline int parameter_reread_file(const PARAMETER_COMPONENT_TAG comp)
63 if (l7vs::Parameter::getInstance().rereadFile(comp)) {
70 * set-parameter function pointer relates component-tag
71 * @param[in] comp section TAG
72 * @param[in] p_func function pointer
74 inline void parameter_register_function_pointer(const PARAMETER_COMPONENT_TAG comp, void(*p_func)())
76 l7vs::Parameter::getInstance().registerFunctionPointer(comp, p_func);
79 #endif //PARAMETER_WRAPPER