45 if (
format ==
"seqloc_asn1_bin") {
47 }
else if (
format ==
"seqloc_asn1_text") {
49 }
else if (
format ==
"seqloc_xml") {
52 throw runtime_error(
"Invalid output format: " +
format);
66 masked_ranges.reserve(
mask.size());
68 masked_ranges.push_back
86 throw runtime_error(
"Invalid output format!");
ESerialDataFormat m_OutputFormat
Seq-loc output format.
CMaskWriterSeqLoc(CNcbiOstream &arg_os, const string &format)
Object constructor.
virtual void Print(objects::CBioseq_Handle &bsh, const TMaskList &mask, bool parsed_id=false)
Send the masking data to the output stream.
A base class for winmasker output writers.
CNcbiOstream & os
the standard C++ ostream object
vector< TMaskedInterval > TMaskList
A type representing the total of masking information about a sequence.
vector< CRange< TSeqPos > > TRanges
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define MSerial_AsnBinary
#define MSerial_AsnText
I/O stream manipulators –.
@ eSerial_AsnText
ASN.1 text.
@ eSerial_AsnBinary
ASN.1 binary.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
double value_type
The numeric datatype used by the parser.