[DEV] some coding style update
This commit is contained in:
parent
1127ed0543
commit
96b0b68ac8
2
external/etk
vendored
2
external/etk
vendored
@ -1 +1 @@
|
||||
Subproject commit 5ceab908cf8d069404e62c107db2807bad486925
|
||||
Subproject commit a8462354d803970b15fc0df5f16ca737c817ed54
|
@ -26,7 +26,7 @@ void ewol::SimpleConfigElement::parse(const etk::UString& value) {
|
||||
|
||||
|
||||
|
||||
ewol::ConfigFile::ConfigFile(const etk::UString& _filename):
|
||||
ewol::ConfigFile::ConfigFile(const etk::UString& _filename) :
|
||||
ewol::Resource(_filename) {
|
||||
EWOL_DEBUG("SFP : load \"" << _filename << "\"");
|
||||
reload();
|
||||
@ -44,7 +44,6 @@ ewol::ConfigFile::~ConfigFile(void) {
|
||||
m_list.clear();
|
||||
}
|
||||
|
||||
|
||||
void ewol::ConfigFile::reload(void) {
|
||||
// reset all parameters
|
||||
for (int32_t iii=0; iii<m_list.size(); iii++){
|
||||
|
@ -47,9 +47,24 @@ namespace ewol {
|
||||
|
||||
int32_t request(const etk::UString& _paramName);
|
||||
|
||||
int32_t getInteger(int32_t _id) { if (_id<0) { return 0; } return m_list[_id]->getInteger(); };
|
||||
float getFloat(int32_t _id) { if (_id<0) { return 0; } return m_list[_id]->getFloat(); };
|
||||
etk::UString& getString(int32_t _id) { if (_id<0) { return m_errorString; } return m_list[_id]->getString(); };
|
||||
int32_t getInteger(int32_t _id) {
|
||||
if (_id<0) {
|
||||
return 0;
|
||||
}
|
||||
return m_list[_id]->getInteger();
|
||||
};
|
||||
float getFloat(int32_t _id) {
|
||||
if (_id<0) {
|
||||
return 0;
|
||||
}
|
||||
return m_list[_id]->getFloat();
|
||||
};
|
||||
etk::UString& getString(int32_t _id) {
|
||||
if (_id<0) {
|
||||
return m_errorString;
|
||||
}
|
||||
return m_list[_id]->getString();
|
||||
};
|
||||
public:
|
||||
/**
|
||||
* @brief keep the resource pointer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user