refs #325, refs #330 fixed apply method to return list of changed properties

* changed CValueObject apply
* created CIndexPropertyList
* renamed CIndexVariantMap to CPropertyIndexVariantMap
This commit is contained in:
Klaus Basan
2014-10-02 15:57:33 +02:00
parent 88951318de
commit 4b50134d2a
26 changed files with 276 additions and 132 deletions

View File

@@ -37,7 +37,7 @@ namespace BlackSim
CFsxSimulatorSetup() : BlackSim::CSimulatorSetup() {}
//! Constructor
CFsxSimulatorSetup(const BlackMisc::CIndexVariantMap &map) : BlackSim::CSimulatorSetup(map) {}
CFsxSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &map) : BlackSim::CSimulatorSetup(map) {}
//! Init, to be used where FSX runs
void init();

View File

@@ -28,7 +28,7 @@ namespace BlackSim
return qv.toString();
}
void CSimulatorInfo::setSimulatorSetup(const BlackMisc::CIndexVariantMap &setup)
void CSimulatorInfo::setSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &setup)
{
this->m_simsetup = setup;
}

View File

@@ -1,7 +1,7 @@
#ifndef BLACKSIM_SIMULATORINFO_H
#define BLACKSIM_SIMULATORINFO_H
#include "blackmisc/indexvariantmap.h"
#include "blackmisc/propertyindexvariantmap.h"
#include "blackmisc/valueobject.h"
namespace BlackSim
@@ -32,7 +32,7 @@ namespace BlackSim
QString getSimulatorSetupValueAsString(int index) const;
//! Set single settings
void setSimulatorSetup(const BlackMisc::CIndexVariantMap &setup);
void setSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &setup);
//! Short name
const QString &getShortName() const { return m_shortName; }
@@ -112,7 +112,7 @@ namespace BlackSim
BLACK_ENABLE_TUPLE_CONVERSION(CSimulatorInfo)
QString m_fullName;
QString m_shortName;
BlackMisc::CIndexVariantMap m_simsetup; //!< allows to access simulator keys requried on remote side
BlackMisc::CPropertyIndexVariantMap m_simsetup; //!< allows to access simulator keys requried on remote side
};
}

View File

@@ -2,7 +2,7 @@
namespace BlackSim
{
void CSimulatorSetup::setSettings(const BlackMisc::CIndexVariantMap &map)
void CSimulatorSetup::setSettings(const BlackMisc::CPropertyIndexVariantMap &map)
{
this->m_setup = map;
}

View File

@@ -12,7 +12,7 @@
#ifndef BLACKSIM_SIMSETUP_H
#define BLACKSIM_SIMSETUP_H
#include "blackmisc/indexvariantmap.h"
#include "blackmisc/propertyindexvariantmap.h"
#include <QMap>
#include <QString>
@@ -26,14 +26,14 @@ namespace BlackSim
class CSimulatorSetup
{
protected:
BlackMisc::CIndexVariantMap m_setup; //!< values describing the simulator setup (path, config files)
BlackMisc::CPropertyIndexVariantMap m_setup; //!< values describing the simulator setup (path, config files)
protected:
//! Default constructor
CSimulatorSetup() {}
//! Constructor
CSimulatorSetup(const BlackMisc::CIndexVariantMap &map) : m_setup(map) {}
CSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &map) : m_setup(map) {}
public:
//! Specific values
@@ -43,10 +43,10 @@ namespace BlackSim
};
//! Settings
BlackMisc::CIndexVariantMap getSettings() const { return this->m_setup;}
BlackMisc::CPropertyIndexVariantMap getSettings() const { return this->m_setup;}
//! Settings
void setSettings(const BlackMisc::CIndexVariantMap &map);
void setSettings(const BlackMisc::CPropertyIndexVariantMap &map);
//! Init, to be used where simulator runs
void init();