39 #define STAT_FMT_COMPONENT_NAME "windowmasker-statistics-format-version"
40 #define STAT_FMT_VER_MAJOR 1
41 #define STAT_FMT_VER_MINOR 1
42 #define STAT_FMT_VER_PATCH 0
43 #define STAT_FMT_VER_PFX "binary "
56 const string & name,
string const & metadata )
76 out_stream.write(
reinterpret_cast< const char *
>(&word),
sizeof(
Uint4 ) );
92 for(
size_t i( 0 );
i <
counts.size(); ++
i ) {
virtual void doFinalize()
Write data to output file.
void write_word(Uint4 word)
CSeqMaskerOstatBin(const string &name, string const &metadata)
Object constructor.
virtual void doSetUnitCount(Uint4 unit, Uint4 count)
Write count information for the unit to the binary output.
static CSeqMaskerVersion FormatVersion
Format version.
virtual ~CSeqMaskerOstatBin()
Object destructor.
Base class for computing and saving unit counts data.
void WriteBinMetaData(std::ostream &os) const
Write metadata in binary format.
vector< pair< Uint4, Uint4 > > counts
Unit counts.
CNcbiOstream & out_stream
Refers to the C++ stream that should be used to write out the unit counts data.
static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ofstream CNcbiOfstream
Portable alias for ofstream.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
#define STAT_FMT_COMPONENT_NAME
#define STAT_FMT_VER_MAJOR
#define STAT_FMT_VER_PATCH
#define STAT_FMT_VER_MINOR