actually open stream (to be called by constructor)
Definition at line 81 of file writeany.cc.
References datrw::anyID(), datrw::util::clipstring(), DATRW_abort, DATRW_expect_no_modifier, debug(), datrw::odatstream::debug(), datrw::Fascii, datrw::Fbinary, datrw::Fgse, datrw::Fseife, datrw::Fsff, datrw::Fsu, Mformat, and Mos.
Referenced by oanystream().
85 std::string& modifiers=format;
89 Mos=
new osffstream(os, modifiers);
94 Mos=
new ogsestream(os);
98 Mos=
new osustream(os, modifiers);
102 Mos=
new oseifestream(os, modifiers);
106 Mos=
new oasciistream(os, modifiers);
111 Mos=
new obinarystream(os);
115 DATRW_abort(
"ERROR (oanystream): unsupported format!");
Eformat anyID(std::string formatstring)
convert identifier from and to string representation
bool debug()
indicate debug mode
bool debug()
indicate debug mode
#define DATRW_abort(M)
Abort and give a message.
std::string clipstring(std::string &s, const std::string &delim)
strip substringStrips off first substring up to given delimiter. The string is passed as a reference ...