##// END OF EJS Templates
Separate the initialization of the properties of the graph of the update of the units of the graph....
Separate the initialization of the properties of the graph of the update of the units of the graph. The initialization of the properties is carried out when adding a variable in the graph, the update of the units is carried out when loading the data of this variable

File last commit:

r537:8c1ac858caa5
r1254:41b7c6aab8be
Show More
VariableSynchronizationGroup.cpp
32 lines | 824 B | text/x-c | CppLexer
/ core / src / Variable / VariableSynchronizationGroup.cpp
Add VariableSynchronizationGroup
r537 #include "Variable/VariableSynchronizationGroup.h"
#include "Variable/Variable.h"
Q_LOGGING_CATEGORY(LOG_VariableSynchronizationGroup, "VariableSynchronizationGroup")
struct VariableSynchronizationGroup::VariableSynchronizationGroupPrivate {
std::set<QUuid> m_VariableIdSet;
};
VariableSynchronizationGroup::VariableSynchronizationGroup(QObject *parent)
: QObject{parent}, impl{spimpl::make_unique_impl<VariableSynchronizationGroupPrivate>()}
{
}
void VariableSynchronizationGroup::addVariableId(QUuid vIdentifier)
{
impl->m_VariableIdSet.insert(vIdentifier);
}
void VariableSynchronizationGroup::removeVariableId(QUuid vIdentifier)
{
impl->m_VariableIdSet.erase(vIdentifier);
}
const std::set<QUuid> &VariableSynchronizationGroup::getIds() const noexcept
{
return impl->m_VariableIdSet;
}