Choreonoid  1.8
SceneItemFileIO.h
Go to the documentation of this file.
1 #ifndef CNOID_BASE_SCENE_ITEM_FILE_IO_H
2 #define CNOID_BASE_SCENE_ITEM_FILE_IO_H
3 
4 #include "SceneItem.h"
5 #include <cnoid/ItemFileIO>
6 
7 namespace cnoid {
8 
9 class StdSceneWriter;
10 
11 class CNOID_EXPORT SceneItemStdSceneFileExporter : public ItemFileIoBase<SceneItem>
12 {
13 public:
15 
16 protected:
17  virtual bool save(SceneItem* item, const std::string& filename) override;
18 
19 private:
20  StdSceneWriter* ensureSceneWriter();
21 
22  std::unique_ptr<StdSceneWriter> sceneWriter_;
23 };
24 
25 }
26 
27 #endif
cnoid::ItemFileIoBase
Definition: ItemFileIO.h:142
SceneItem.h
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::SceneItemStdSceneFileExporter
Definition: SceneItemFileIO.h:11
cnoid::StdSceneWriter
Definition: StdSceneWriter.h:15
cnoid::SceneItem
Definition: SceneItem.h:18