IMP  2.0.0
The Integrative Modeling Platform
RMFWriter.h
Go to the documentation of this file.
1 /**
2  * \file IMP/rmf/RMFWriter.h
3  * \brief Handle read/write of Model data from/to files.
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPRMF_RMF_WRITER_H
10 #define IMPRMF_RMF_WRITER_H
11 
12 #include <IMP/rmf/rmf_config.h>
13 #include <RMF/FileHandle.h>
14 #include <IMP/display/Writer.h>
16 #include <IMP/base/set.h>
17 
18 IMPRMF_BEGIN_NAMESPACE
19 #if 0
20 /** Only one frame is handled. Sorry. Kind of hard to fix.*/
21 class IMPRMFEXPORT RMFWriter: public display::Writer {
22  RMF::FileHandle rh_;
23  base::set<display::Geometry*> added_;
24  void do_add_geometry(Geometry* g);
25  void do_add_geometry(const Geometries &g);
26  void on_set_frame();
27  public:
28  RMFWriter(RMF::FileHandle rh);
29  IMP_WRITER(RMFWriter);
30 };
31 #endif
32 IMPRMF_END_NAMESPACE
33 
34 #endif /* IMPRMF_RMF_WRITER_H */