Choreonoid  1.8
MultiDeviceStateSeqItem.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_BODY_PLUGIN_MULTI_DEVICE_STATE_SEQ_ITEM_H
7 #define CNOID_BODY_PLUGIN_MULTI_DEVICE_STATE_SEQ_ITEM_H
8 
9 #include <cnoid/MultiDeviceStateSeq>
10 #include <cnoid/AbstractSeqItem>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
16 {
17 public:
18  static void initializeClass(ExtensionManager* ext);
19 
21  MultiDeviceStateSeqItem(std::shared_ptr<MultiDeviceStateSeq> seq);
23  virtual ~MultiDeviceStateSeqItem();
24  virtual std::shared_ptr<AbstractMultiSeq> abstractMultiSeq() override;
25  std::shared_ptr<MultiDeviceStateSeq> seq() { return seq_; }
26 
27 protected:
28  virtual Item* doDuplicate() const override;
29  virtual bool store(Archive& archive) override;
30  virtual bool restore(const Archive& archive) override;
31 
32 private:
33  std::shared_ptr<MultiDeviceStateSeq> seq_;
34 };
35 
37 }
38 
39 #endif
cnoid::MultiDeviceStateSeqItem::store
virtual bool store(Archive &archive) override
Definition: MultiDeviceStateSeqItem.cpp:139
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::MultiDeviceStateSeqItem::restore
virtual bool restore(const Archive &archive) override
Definition: MultiDeviceStateSeqItem.cpp:145
cnoid::MultiDeviceStateSeqItem
Definition: MultiDeviceStateSeqItem.h:15
cnoid::Archive
Definition: Archive.h:22
cnoid::MultiDeviceStateSeqItem::abstractMultiSeq
virtual std::shared_ptr< AbstractMultiSeq > abstractMultiSeq() override
Definition: MultiDeviceStateSeqItem.cpp:127
cnoid::MultiDeviceStateSeqItem::~MultiDeviceStateSeqItem
virtual ~MultiDeviceStateSeqItem()
Definition: MultiDeviceStateSeqItem.cpp:121
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid::MultiDeviceStateSeqItem::seq
std::shared_ptr< MultiDeviceStateSeq > seq()
Definition: MultiDeviceStateSeqItem.h:25
cnoid::MultiDeviceStateSeqItem::MultiDeviceStateSeqItem
MultiDeviceStateSeqItem()
Definition: MultiDeviceStateSeqItem.cpp:99
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::MultiDeviceStateSeqItemPtr
ref_ptr< MultiDeviceStateSeqItem > MultiDeviceStateSeqItemPtr
Definition: MultiDeviceStateSeqItem.h:36
cnoid::MultiDeviceStateSeqItem::initializeClass
static void initializeClass(ExtensionManager *ext)
Definition: MultiDeviceStateSeqItem.cpp:82
cnoid::AbstractMultiSeqItem
Definition: AbstractSeqItem.h:35
cnoid::MultiDeviceStateSeqItem::doDuplicate
virtual Item * doDuplicate() const override
Override this function to allow duplication of an instance.
Definition: MultiDeviceStateSeqItem.cpp:133