IMP  2.2.1
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 kernel::Model data from/to files.
4  *
5  * Copyright 2007-2014 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 <boost/unordered_set.hpp>
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  boost::unordered_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 
28  public:
29  RMFWriter(RMF::FileHandle rh);
30  IMP_WRITER(RMFWriter);
31 };
32 #endif
33 IMPRMF_END_NAMESPACE
34 
35 #endif /* IMPRMF_RMF_WRITER_H */
IMP::base::Vector< IMP::base::Pointer< Geometry > > Geometries
Base class for writing geometry to a file.
macros for display classes