Go to the documentation of this file. 1 #ifndef CNOID_MANIPULATOR_PLUGIN_MPR_VARIABLE_LIST_H
2 #define CNOID_MANIPULATOR_PLUGIN_MPR_VARIABLE_LIST_H
5 #include <cnoid/ClonableReferenced>
6 #include <cnoid/Signal>
8 #include "exportdecl.h"
16 GeneralVariable, IntVariable, DoubleVariable, BoolVariable, StringVariable };
32 void setVariableType(VariableType type);
33 void setGeneralVariableValueTypeUnchangeable(
bool on);
34 void setNumberIdEnabled(
bool on);
35 void setStringIdEnabled(
bool on);
39 return isGeneralVariableValueTypeUnchangeable_;
45 int numVariables()
const;
53 bool removeAt(
int index);
57 SignalProxy<void(
int index,
int flags)> sigVariableUpdated();
65 void resetIdCounter();
77 void notifyVariableUpdate(
MprVariable* variable,
int flags);
82 VariableType variableType_;
83 bool isGeneralVariableValueTypeUnchangeable_;
84 bool isNumberIdEnabled_;
85 bool isStringIdEnabled_;
MprVariableList * clone(CloneMap &cloneMap) const
Definition: MprVariableList.h:26
Definition: MprVariable.h:15
Definition: ValueTree.h:253
Definition: GeneralId.h:11
Listing * write(Mapping *mapping, const std::string &key, const Eigen::MatrixBase< Derived > &x)
Definition: EigenArchive.h:145
VariableType
Definition: MprVariableList.h:15
bool read(const Mapping *mapping, const std::string &key, Eigen::MatrixBase< Derived > &x)
Definition: EigenArchive.h:43
ref_ptr< MprVariableList > MprVariableListPtr
Definition: MprVariableList.h:90
stdx::variant< int, double, bool, std::string > Value
Definition: MprVariable.h:18
MprVariableList * clone() const
Definition: MprVariableList.h:23
Definition: AbstractSceneLoader.h:11
Definition: ClonableReferenced.h:10
Definition: CloneMap.h:13
VariableType variableType() const
Definition: MprVariableList.h:37
bool isStringIdEnabled() const
Definition: MprVariableList.h:42
Definition: MprVariableList.h:12
Definition: Referenced.h:54
bool isNumberIdEnabled() const
Definition: MprVariableList.h:41
bool isGeneralVariableValueTypeUnchangeable() const
Definition: MprVariableList.h:38