//! @param[in] component tag
//! @param[in] keystring
//! @param[out] errorcode
+ //! @param[in] file name
//! @return int value
int get_int( const PARAMETER_COMPONENT_TAG,
const std::string&,
- error_code& );
+ error_code&,
+ const std::string& );
+
+ //! string value getter
+ //! @param[in] component tag
+ //! @param[in] keystring
+ //! @param[out] errorcode
+ //! @param[in] file name
+ //! @return string value
+ std::string get_string( const PARAMETER_COMPONENT_TAG,
+ const std::string&,
+ error_code&,
+ const std::string& );
+
+ //! multistring value getter
+ //! @param[in] component tag
+ //! @param[in] keystring
+ //! @param[inout] string vector
+ //! @param[out] errorcode
+ //! @param[in] file name
+ //! @return void
+ void get_multistring( const PARAMETER_COMPONENT_TAG,
+ const std::string&,
+ std::vector<std::string>&,
+ error_code&,
+ const std::string& );
+
+
void set_int( const l7vs::PARAMETER_COMPONENT_TAG comp,
const std::string& key,
add_para.first = str_key;
add_para.second = set_value;
intMap.insert(add_para);
-// std::cout << "Parameter set Error" << std::endl;
+
}
};
intMap.erase(section_table_iterator->second + "." + key);
}
};
-
- //! string value getter
- //! @param[in] component tag
- //! @param[in] keystring
- //! @param[out] errorcode
- //! @return string value
- std::string get_string( const PARAMETER_COMPONENT_TAG,
- const std::string&,
- error_code& );
-
- //! multistring value getter
- //! @param[in] component tag
- //! @param[in] keystring
- //! @param[inout] string vector
- //! @param[out] errorcode
- //! @return void
- void get_multistring( const PARAMETER_COMPONENT_TAG,
- const std::string&,
- std::vector<std::string>&,
- error_code& );
};
}
//! @param[in] parametercategory
//! @param[in] parameter key
//! @param[out] error code
+ //! @param[in] configuration filename
+ //! default:PARAMETER_FILE
//! @return int value
int get_int(const PARAMETER_COMPONENT_TAG,
const std::string&,
- error_code& );
+ error_code&,
+ const std::string& = PARAMETER_FILE );
//! parameter string value getter
//! @param[in] parametercategory
//! @param[in] parameter key
//! @param[out] error code
+ //! @param[in] configuration filename
+ //! default:PARAMETER_FILE
//! @return string value
std::string get_string(const PARAMETER_COMPONENT_TAG,
const std::string&,
- error_code& );
+ error_code&,
+ const std::string& = PARAMETER_FILE );
//! parameter multistring value getter
//! @param[in] parametercategory
//! @param[in] parameter key
//! @param[inout] string vector
//! @param[out] error code
+ //! @param[in] configuration filename
+ //! default:PARAMETER_FILE
//! @return string value
void get_multistring(const PARAMETER_COMPONENT_TAG,
const std::string&,
std::vector<std::string>&,
- error_code& );
+ error_code&,
+ const std::string& = PARAMETER_FILE );
+
+
+
void set_int( const l7vs::PARAMETER_COMPONENT_TAG comp,
const std::string& key,
ParameterImpl& impl = ParameterImpl::get_instance();
impl.rm_int_parameter( comp, key, err );
};
+
+
};
} //namespace l7vs