[DEV] continue removing STL

This commit is contained in:
Edouard DUPIN 2017-09-14 00:59:21 +02:00
parent d4b5ae43b1
commit 0f84790c85
7 changed files with 7 additions and 10 deletions

View File

@ -9,7 +9,6 @@
#include <eproperty/PropertyType.hpp>
#include <etk/Map.hpp>
#include <typeinfo>
namespace eproperty {
/**
@ -60,7 +59,7 @@ namespace eproperty {
it->second = _value;
return;
}
m_list.insert(etk::makePair(_name, _value));
m_list.add(_name, _value);
}
/**
* @brief Remove a value of the element availlable

View File

@ -9,8 +9,8 @@
#include <eproperty/Interface.hpp>
#include <etk/String.hpp>
#include <typeinfo>
#include <functional>
#include <etk/typeTrait.hpp>
#include <etk/Function.hpp>
/**
* @brief eproperty global interface for all property implementation

View File

@ -58,7 +58,7 @@ namespace eproperty {
return "eproperty::Value";
}
etk::String getType() const override {
return typeid(TYPE).name();
return "?TODO?";// TODO: typeid(TYPE).name();
}
etk::String getString() const override {
return getValueSpecific(m_value);

View File

@ -9,7 +9,6 @@
#include <eproperty/Interface.hpp>
#include <eproperty/Value.hpp>
#include <typeinfo>
namespace eproperty {
/**

View File

@ -30,7 +30,7 @@ etk::String eproperty::Range<TYPE>::getPropertyType() const {
template<class TYPE>
void eproperty::Range<TYPE>::setString(const etk::String& _newVal) {
TYPE val;
// when you want to set an element in parameter you will implement the function template std::from_string
// when you want to set an element in parameter you will implement the function template etk::from_string
etk::from_string(val, _newVal);
set(val);
}

View File

@ -23,7 +23,7 @@ etk::String eproperty::Value<TYPE>::getValueSpecific(const TYPE& _valueRequested
template<class TYPE>
void eproperty::Value<TYPE>::setString(const etk::String& _newVal) {
// when you want to set an element in parameter you will implement the function template std::from_string
// when you want to set an element in parameter you will implement the function template etk::from_string
etk::from_string(eproperty::PropertyType<TYPE>::m_value, _newVal);
// TODO : Do it better ...
eproperty::PropertyType<TYPE>::notifyChange();

View File

@ -13,8 +13,7 @@
#include <etest/etest.hpp>
int main(int _argc, const char *_argv[]) {
::testing::InitGoogleTest(&_argc, const_cast<char **>(_argv));
etk::init(_argc, _argv);
etest::init(_argc, _argv);
for (int32_t iii=0; iii<_argc ; ++iii) {
etk::String data = _argv[iii];
if ( data == "-h"