Choreonoid  1.8
SubProjectItem.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_SUB_PROJECT_ITEM_H
6 #define CNOID_BASE_SUB_PROJECT_ITEM_H
7 
8 #include "Item.h"
9 #include "exportdecl.h"
10 
11 namespace cnoid {
12 
13 class SubProjectItemImpl;
14 
15 class CNOID_EXPORT SubProjectItem : public Item
16 {
17 public:
18  static void initializeClass(ExtensionManager* ext);
19 
21  SubProjectItem(const SubProjectItem& org);
22  virtual ~SubProjectItem();
23 
24  bool isSavingSubProject() const;
25 
26  enum SaveMode { MANUAL_SAVE, AUTOMATIC_SAVE, N_SAVE_MODE };
27  void setSaveMode(int mode);
28  int saveMode() const;
29 
30 protected:
31  virtual Item* doDuplicate() const override;
32  virtual void onConnectedToRoot() override;
33  virtual void doPutProperties(PutPropertyFunction& putProperty) override;
34  virtual bool store(Archive& archive) override;
35  virtual bool restore(const Archive& archive) override;
36 
37 private:
38  SubProjectItemImpl* impl;
39 };
40 
42 }
43 
44 #endif
Item.h
cnoid::SubProjectItem
Definition: SubProjectItem.h:15
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::PutPropertyFunction
Definition: PutPropertyFunction.h:51
cnoid::Archive
Definition: Archive.h:22
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid::SubProjectItemPtr
ref_ptr< SubProjectItem > SubProjectItemPtr
Definition: SubProjectItem.h:41
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::SubProjectItem::SaveMode
SaveMode
Definition: SubProjectItem.h:26