Choreonoid  1.8
MprMultiVariableListItem.h
Go to the documentation of this file.
1 #ifndef CNOID_MANIPULATOR_PLUGIN_MPR_MULTI_VARIABLE_LIST_ITEM_H
2 #define CNOID_MANIPULATOR_PLUGIN_MPR_MULTI_VARIABLE_LIST_ITEM_H
3 
4 #include "MprVariableList.h"
5 #include <cnoid/Item>
6 #include "exportdecl.h"
7 
8 namespace cnoid {
9 
10 class MprVariableList;
11 
12 class CNOID_EXPORT MprMultiVariableListItem : public Item
13 {
14 public:
15  static void initializeClass(ExtensionManager* ext);
16 
19  virtual ~MprMultiVariableListItem();
20 
21  void clearVariableLists();
22  void setNumVariableList(int n);
23  void setVariableList(int index, MprVariableList* list);
24 
25  int numVariableLists() const;
26  MprVariableList* variableListAt(int index);
27  MprVariableList* findVariableList(MprVariableList::VariableType variableType);
28 
29  virtual bool store(Archive& archive) override;
30  virtual bool restore(const Archive& archive) override;
31 
32 protected:
33  virtual Item* doDuplicate() const override;
34  virtual void doPutProperties(PutPropertyFunction& putProperty) override;
35 
36 private:
37  class Impl;
38  Impl* impl;
39 };
40 
42 
43 }
44 
45 #endif
cnoid::MprMultiVariableListItem
Definition: MprMultiVariableListItem.h:12
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::PutPropertyFunction
Definition: PutPropertyFunction.h:51
cnoid::MprVariableList::VariableType
VariableType
Definition: MprVariableList.h:15
cnoid::Archive
Definition: Archive.h:22
cnoid::ref_ptr< MprMultiVariableListItem >
MprVariableList.h
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::MprMultiVariableListItemPtr
ref_ptr< MprMultiVariableListItem > MprMultiVariableListItemPtr
Definition: MprMultiVariableListItem.h:41
cnoid::MprVariableList
Definition: MprVariableList.h:12