19 #ifndef OST_IO_ENTITY_IO_PLUGIN_CRD_H
20 #define OST_IO_ENTITY_IO_PLUGIN_CRD_H
28 #include <boost/iostreams/filtering_stream.hpp>
29 #include <boost/filesystem/fstream.hpp>
31 namespace ost {
namespace io {
35 CRDReader(
const boost::filesystem::path& loc);
39 std::vector<mol::AtomHandle> GetSequentialAtoms()
const;
46 std::vector<mol::AtomHandle> sequential_atom_list_;
52 boost::filesystem::ifstream infile_;
53 boost::iostreams::filtering_stream<boost::iostreams::input> in_;
60 CRDWriter(
const boost::filesystem::path& filename);
68 std::ofstream outfile_;
69 std::ostream& outstream_;
79 const boost::filesystem::path& loc)
const;
83 virtual void Export(
const mol::EntityView& ent, std::ostream& stream)
const;
85 static bool ProvidesImport(
const boost::filesystem::path& loc,
86 const String& format=
"auto");
87 static bool ProvidesExport(
const boost::filesystem::path& loc,
88 const String& format=
"auto");
89 virtual bool RequiresBuilder()
const;