12#ifndef MODEREFERENCEINTERFACE_H
13#define MODEREFERENCEINTERFACE_H
15#include <KactusAPI/KactusAPIGlobal.h>
18#include <QSharedPointer>
37 void setModeReferences(std::vector<std::pair<unsigned int, std::string> >
const& modeReferences);
177 std::vector<std::pair<unsigned int, std::string> > getModeReferencesInUse(
int modeReferenceIndex)
const;
180 std::vector<std::pair<unsigned int, std::string> > containingElementModeReferences_;
183 std::vector<std::pair<unsigned int, std::string> > modeReferences_;
186 QSharedPointer<QList<QSharedPointer<Mode> > > componentModes_;
189 bool containingElementIsRemap_ =
false;
bool addModeReference(int row)
std::vector< std::string > getComponentModes() const
int getModeReferenceCount() const
void setComponentModes(QSharedPointer< QList< QSharedPointer< Mode > > > newModes)
virtual ~ModeReferenceInterface()=default
std::vector< std::pair< unsigned int, std::string > > getModeReferences() const
void setContainingElementModeReferences(std::vector< std::pair< unsigned int, std::string > > const &modeReferences)
bool setModeReferenceValue(int modeReferenceIndex, std::string const &newValue)
bool setModeReferencePriority(int modeReferenceIndex, unsigned int newPriority)
void setModeReferences(std::vector< std::pair< unsigned int, std::string > > const &modeReferences)
void setContainingElementIsRemap(bool isRemap)
std::string getModeReferenceValue(int modeReferenceIndex) const
std::vector< std::string > getModeReferencesString() const
bool removeModeReference(int modeReferenceIndex)
bool areAllModeReferencesValid()
ModeReferenceInterface()=default
bool modeReferencePriorityIsValid(int modeReferenceIndex) const
int getModeReferencePriority(int modeReferenceIndex) const
bool modeReferenceValueIsValid(int modeReferenceIndex) const