23 #ifndef OST_IO_ENTITY_IO_PLUGIN_CRD_H
24 #define OST_IO_ENTITY_IO_PLUGIN_CRD_H
32 #include <boost/iostreams/filtering_stream.hpp>
33 #include <boost/filesystem/fstream.hpp>
35 namespace ost {
namespace io {
40 CRDReader(
const boost::filesystem::path& loc);
44 std::vector<mol::AtomHandle> GetSequentialAtoms()
const;
51 std::vector<mol::AtomHandle> sequential_atom_list_;
57 boost::filesystem::ifstream infile_;
58 boost::iostreams::filtering_stream<boost::iostreams::input> in_;
65 CRDWriter(
const boost::filesystem::path& filename,
bool ext=
false);
66 CRDWriter(std::ostream& outstream,
bool ext=
false);
79 std::ofstream outfile_;
80 std::ostream& outstream_;
92 const boost::filesystem::path& loc)
const;
96 virtual void Export(
const mol::EntityView& ent, std::ostream& stream)
const;
98 static bool ProvidesImport(
const boost::filesystem::path& loc,
99 const String& format=
"auto");
100 static bool ProvidesExport(
const boost::filesystem::path& loc,
101 const String& format=
"auto");
102 virtual bool RequiresProcessor()
const;
EntityIOHandlerFactory< EntityIOCRDHandler > EntityIOCRDHandlerFactory
CHARMM coordinate file import.
CHARMM coordinate file export.
static String GetFormatName()
pure abstract base class for entity io handlers
static String GetFormatDescription()
mol::EntityHandle DLLEXPORT_OST_IO LoadCRD(const String &file_name)