Commit 35fff0f2 authored by jan.koester's avatar jan.koester
Browse files

inital support regedit

parent f1e6904f
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -366,12 +366,6 @@ int confplus::Config::getIntValue(confplus::Config::ConfigData* key, size_t pos)
}

void confplus::Config::setValue(confplus::Config::ConfigData *key, size_t pos, const std::string& value) {
    if (key->haveChild) {
        ConfException err;
        err[ConfException::Error] << "setValue it is a path not key";
        throw err;
    }

    for (ConfigValue* cur = key->Value.get(); cur; cur = cur->_nextValue.get()) {
        if (cur->_Pos == pos) {
            cur->_Value = value;
+4 −8
Original line number Diff line number Diff line
@@ -73,14 +73,10 @@ namespace confplus {
            size_t       Elements;

            bool         haveChild=false;
#ifndef  MSVC
            union {
#endif //  MSVC   

            std::unique_ptr<ConfigValue>Value;
            std::unique_ptr<ConfigData> Child;
#ifndef  MSVC
            };
#endif //  MSVC 

            std::unique_ptr<ConfigData> nextData=nullptr ;
            friend class Config;
        };